Edit online

Adding Support to Insert References from a WebDAV Connection

Predefined actions that insert references, such as the Insert Image action, includes a URL chooser field with a drop-down menu that allows you to select a Browse Data Source Explorer action. This action opens the Data Source Explorer that allows you to view a WebDAV connection.

To use a WebDAV connection in the Oxygen XML Author Component, follow these steps:

  1. Open a standalone Oxygen XML Editor 26.1 and configure a WebDAV connection.
  2. Pack the fixed set of options from the standalone application to use them with the Oxygen XML Author Component project.
  3. In the Oxygen XML Author Component, the defined connection still does not work when expanded because the additional JAR libraries used to browse the WebDAV repository are missing. By default, the httpclient dependency of the Oxygen SDK artifact is excluded. You can enable it by commenting the following lines:
    <exclusion>
        <artifactId>httpclient</artifactId>
        <groupId>org.apache.httpcomponents</groupId>
    </exclusion> 
    If you want to have multiple WebDAV connection URLs, user names, and passwords (depending on the user who started the component), you can use a more flexible approach by using the following API:
        //DBConnectionInfo(String id, String driverName, String url, String user, 
    String passwd, String host, String port) 
        DBConnectionInfo info = new DBConnectionInfo("WEBDAV", "WebDAV FTP", 
    "http://host/webdav-user-root", "userName", "password", null, null);
        AuthorComponentFactory.getInstance().setObjectProperty
    ("database.stored.sessions1", new DBConnectionInfo[] {info});