|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.vfs2.provider.AbstractFileName
org.apache.commons.vfs2.provider.GenericFileName
org.apache.commons.vfs2.provider.URLFileName
public class URLFileName
Field Summary |
---|
Fields inherited from interface org.apache.commons.vfs2.FileName |
---|
ROOT_PATH, SEPARATOR, SEPARATOR_CHAR |
Constructor Summary | |
---|---|
URLFileName(String scheme,
String hostName,
int port,
int defaultPort,
String userName,
String password,
String path,
FileType type,
String queryString)
|
Method Summary | |
---|---|
FileName |
createName(String absPath,
FileType type)
Create a FileName. |
protected String |
createURI()
Append query string to the uri. |
String |
getPathQuery()
Get the path and query string e.g. |
String |
getPathQueryEncoded(String charset)
Get the path encoded suitable for url like filesystem e.g. |
String |
getQueryString()
Get the query string. |
String |
getURIEncoded(String charset)
Encode a URI. |
Methods inherited from class org.apache.commons.vfs2.provider.GenericFileName |
---|
appendCredentials, appendRootUri, getDefaultPort, getHostName, getPassword, getPort, getUserName |
Methods inherited from class org.apache.commons.vfs2.provider.AbstractFileName |
---|
checkName, compareTo, equals, getBaseName, getDepth, getExtension, getFriendlyURI, getParent, getPath, getPathDecoded, getRelativeName, getRoot, getRootURI, getScheme, getType, getURI, getUriTrailer, hashCode, isAncestor, isDescendent, isDescendent, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public URLFileName(String scheme, String hostName, int port, int defaultPort, String userName, String password, String path, FileType type, String queryString)
Method Detail |
---|
public String getQueryString()
public String getPathQuery()
public String getPathQueryEncoded(String charset) throws org.apache.commons.httpclient.URIException, FileSystemException
charset
- the charset used for the path encoding
org.apache.commons.httpclient.URIException
- If an error occurs encoding the URI.
FileSystemException
- If some other error occurs.public FileName createName(String absPath, FileType type)
createName
in class GenericFileName
absPath
- The absolute path.type
- The FileType.
protected String createURI()
createURI
in class AbstractFileName
public String getURIEncoded(String charset) throws FileSystemException, org.apache.commons.httpclient.URIException
charset
- The character set.
FileSystemException
- if some other exception occurs.
org.apache.commons.httpclient.URIException
- if an exception occurs encoding the URI.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |