public class GenericURLFileName extends GenericFileName
EMPTY_ARRAY, ROOT_PATH, SEPARATOR, SEPARATOR_CHAR| Constructor and Description |
|---|
GenericURLFileName(String scheme,
String hostName,
int port,
int defaultPort,
String userName,
String password,
String path,
FileType type,
String queryString) |
| Modifier and Type | Method and Description |
|---|---|
FileName |
createName(String absPath,
FileType type)
Creates a FileName.
|
protected String |
createURI()
Appends query string to the uri.
|
String |
getPathQuery()
Gets the path and query string e.g.
|
String |
getPathQueryEncoded(String charset)
Gets the path encoded suitable for url like file system e.g.
|
String |
getQueryString()
Gets the query string.
|
String |
getURIEncoded(String charset)
Encodes a URI.
|
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, isFile, toStringpublic String getQueryString()
public String getPathQuery()
public String getPathQueryEncoded(String charset) throws FileSystemException
charset - the charset used for the path encodingFileSystemException - If some other error occurs.public FileName createName(String absPath, FileType type)
createName in class GenericFileNameabsPath - The absolute path.type - The FileType.protected String createURI()
createURI in class AbstractFileNamepublic String getURIEncoded(String charset) throws FileSystemException
charset - The character set.FileSystemException - if some other exception occurs.Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.