Class URLFileName
java.lang.Object
org.apache.commons.vfs.provider.AbstractFileName
org.apache.commons.vfs.provider.GenericFileName
org.apache.commons.vfs.provider.URLFileName
- All Implemented Interfaces:
Comparable, FileName
- Direct Known Subclasses:
UrlFileName
-
Field Summary
Fields inherited from interface FileName
ROOT_PATH, SEPARATOR, SEPARATOR_CHAR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateName(String absPath, FileType type) Factory method for creating name instances.protected Stringappend query string to the uriget the path and query string e.g.getPathQueryEncoded(String charset) get the path encoded suitable for url like filesystem e.g.get the query stringgetURIEncoded(String charset) Methods inherited from class GenericFileName
appendCredentials, appendRootUri, getDefaultPort, getHostName, getPassword, getPort, getUserNameMethods inherited from class AbstractFileName
checkName, compareTo, equals, getBaseName, getDepth, getExtension, getFriendlyURI, getParent, getPath, getPathDecoded, getRelativeName, getRoot, getRootURI, getScheme, getType, getURI, getUriTrailer, hashCode, isAncestor, isDescendent, isDescendent, toString
-
Constructor Details
-
URLFileName
-
-
Method Details
-
getQueryString
-
getPathQuery
get the path and query string e.g. /path/servlet?param1=true- Returns:
- the path and its query string
-
getPathQueryEncoded
public String getPathQueryEncoded(String charset) throws org.apache.commons.httpclient.URIException, FileSystemException get the path encoded suitable for url like filesystem e.g. (http, webdav)- Parameters:
charset- the charset used for the path encoding- Throws:
org.apache.commons.httpclient.URIExceptionFileSystemException
-
createName
Description copied from class:AbstractFileNameFactory method for creating name instances.- Overrides:
createNamein classGenericFileName
-
createURI
append query string to the uri- Overrides:
createURIin classAbstractFileName- Returns:
- the uri
-
getURIEncoded
public String getURIEncoded(String charset) throws FileSystemException, org.apache.commons.httpclient.URIException - Throws:
FileSystemExceptionorg.apache.commons.httpclient.URIException
-