public class URLFileName extends GenericFileName
ROOT_PATH, SEPARATOR, SEPARATOR_CHAR| Constructor and Description |
|---|
URLFileName(java.lang.String scheme,
java.lang.String hostName,
int port,
int defaultPort,
java.lang.String userName,
java.lang.String password,
java.lang.String path,
FileType type,
java.lang.String queryString) |
| Modifier and Type | Method and Description |
|---|---|
FileName |
createName(java.lang.String absPath,
FileType type)
Factory method for creating name instances.
|
protected java.lang.String |
createURI()
append query string to the uri
|
java.lang.String |
getPathQuery()
get the path and query string e.g.
|
java.lang.String |
getPathQueryEncoded(java.lang.String charset)
get the path encoded suitable for url like filesystem e.g.
|
java.lang.String |
getQueryString()
get the query string
|
java.lang.String |
getURIEncoded(java.lang.String charset) |
appendCredentials, appendRootUri, getDefaultPort, getHostName, getPassword, getPort, getUserNamecheckName, compareTo, equals, getBaseName, getDepth, getExtension, getFriendlyURI, getParent, getPath, getPathDecoded, getRelativeName, getRoot, getRootURI, getScheme, getType, getURI, getUriTrailer, hashCode, isAncestor, isDescendent, isDescendent, toStringpublic URLFileName(java.lang.String scheme,
java.lang.String hostName,
int port,
int defaultPort,
java.lang.String userName,
java.lang.String password,
java.lang.String path,
FileType type,
java.lang.String queryString)
public java.lang.String getQueryString()
public java.lang.String getPathQuery()
public java.lang.String getPathQueryEncoded(java.lang.String charset)
throws org.apache.commons.httpclient.URIException,
FileSystemException
charset - the charset used for the path encodingorg.apache.commons.httpclient.URIExceptionFileSystemExceptionpublic FileName createName(java.lang.String absPath, FileType type)
AbstractFileNamecreateName in class GenericFileNameprotected java.lang.String createURI()
createURI in class AbstractFileNamepublic java.lang.String getURIEncoded(java.lang.String charset)
throws FileSystemException,
org.apache.commons.httpclient.URIException
FileSystemExceptionorg.apache.commons.httpclient.URIException