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)
Constructs a new instance.
|
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, getUserName
checkName, compareTo, equals, getBaseName, getDepth, getExtension, getFriendlyURI, getParent, getPath, getPathDecoded, getRelativeName, getRoot, getRootURI, getScheme, getType, getURI, getUriTrailer, hashCode, isAncestor, isDescendent, isDescendent, isFile, toString
public GenericURLFileName(String scheme, String hostName, int port, int defaultPort, String userName, String password, String path, FileType type, String queryString)
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.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 getPathQuery()
public String getPathQueryEncoded(String charset) throws FileSystemException
charset
- the charset used for the path encodingFileSystemException
- If some other error occurs.public String getQueryString()
public String getURIEncoded(String charset) throws FileSystemException
charset
- The character set.FileSystemException
- if some other exception occurs.Copyright © 2002–2025 The Apache Software Foundation. All rights reserved.