Class Webdav4FileName

All Implemented Interfaces:
Comparable<FileName>, FileName

public class Webdav4FileName extends GenericURLFileName
WebDAV 4 file name that represents a URL.
Since:
2.10.0
  • Constructor Details

    • Webdav4FileName

      public Webdav4FileName(String scheme, String hostName, int port, int defaultPort, String userName, String password, String path, FileType type, String queryString)
      Constructs a new instance.
      Parameters:
      scheme - Host scheme.
      hostName - Host name or IP address.
      port - Host port.
      defaultPort - Default host port.
      userName - user name.
      password - user password.
      path - Path on the host.
      type - File type on the host.
      queryString - Query string for the path.
    • Webdav4FileName

      public Webdav4FileName(String scheme, String hostName, int port, int defaultPort, String userName, String password, String path, FileType type, String queryString, boolean appendTrailingSlash)
      Constructs a new instance.
      Parameters:
      scheme - Host scheme.
      hostName - Host name or IP address.
      port - Host port.
      defaultPort - Default host port.
      userName - user name.
      password - user password.
      path - Path on the host.
      type - File type on the host.
      queryString - Query string for the path.
      appendTrailingSlash - Append trailing slash to path.
  • Method Details

    • getPathQueryEncoded

      Gets the path encoded suitable for url like file system e.g. (http, webdav). Reappend the trailing slash ( / ) if this FileName is a directory and not ROOT because many WEBDav-Servers require the trailing slash if the request access a directory
      Overrides:
      getPathQueryEncoded in class GenericURLFileName
      Parameters:
      charset - the charset used for the path encoding
      Returns:
      The encoded path.
      Throws:
      FileSystemException - If some other error occurs.