Class Webdav4FileName
java.lang.Object
org.apache.commons.vfs2.provider.AbstractFileName
org.apache.commons.vfs2.provider.GenericFileName
org.apache.commons.vfs2.provider.GenericURLFileName
org.apache.commons.vfs2.provider.webdav4.Webdav4FileName
- All Implemented Interfaces:
- Comparable<FileName>,- FileName
WebDAV 4 file name that represents a URL.
- Since:
- 2.10.0
- 
Field SummaryFields inherited from interface org.apache.commons.vfs2.FileNameEMPTY_ARRAY, ROOT_PATH, SEPARATOR, SEPARATOR_CHAR
- 
Constructor SummaryConstructorsConstructorDescriptionWebdav4FileName(String scheme, String hostName, int port, int defaultPort, String userName, String password, String path, FileType type, String queryString) Constructs a new instance.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.
- 
Method SummaryModifier and TypeMethodDescriptiongetPathQueryEncoded(String charset) Gets the path encoded suitable for url like file system e.g.Methods inherited from class org.apache.commons.vfs2.provider.GenericURLFileNamecreateName, createURI, getPathQuery, getQueryString, getURIEncodedMethods inherited from class org.apache.commons.vfs2.provider.GenericFileNameappendCredentials, appendRootUri, getDefaultPort, getHostName, getPassword, getPort, getUserNameMethods inherited from class org.apache.commons.vfs2.provider.AbstractFileNamecheckName, compareTo, equals, getBaseName, getDepth, getExtension, getFriendlyURI, getParent, getPath, getPathDecoded, getRelativeName, getRoot, getRootURI, getScheme, getType, getURI, getUriTrailer, hashCode, isAncestor, isDescendent, isDescendent, isFile, toString
- 
Constructor Details- 
Webdav4FileNamepublic 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.
 
- 
Webdav4FileNamepublic 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- 
getPathQueryEncodedGets 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:
- getPathQueryEncodedin class- GenericURLFileName
- Parameters:
- charset- the charset used for the path encoding
- Returns:
- The encoded path.
- Throws:
- FileSystemException- If some other error occurs.
 
 
-