GenericURLFileName
as it doesn't depend on HTTP Client v3 API directly.@Deprecated public class URLFileName extends GenericFileName
EMPTY_ARRAY, ROOT_PATH, SEPARATOR, SEPARATOR_CHAR
Constructor and Description |
---|
URLFileName(String scheme,
String hostName,
int port,
int defaultPort,
String userName,
String password,
String path,
FileType type,
String queryString)
Deprecated.
Constructs a new instance.
|
Modifier and Type | Method and Description |
---|---|
FileName |
createName(String absPath,
FileType type)
Deprecated.
Create a FileName.
|
protected String |
createURI()
Deprecated.
Appends query string to the URI.
|
String |
getPathQuery()
Deprecated.
Gets the path and query string e.g.
|
String |
getPathQueryEncoded(String charset)
Deprecated.
Gets the path encoded suitable for url like file system e.g.
|
String |
getQueryString()
Deprecated.
Gets the query string.
|
String |
getURIEncoded(String charset)
Deprecated.
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 URLFileName(String scheme, String hostName, int port, int defaultPort, String userName, String password, String path, FileType type, String queryString)
scheme
- The host scheme.hostName
- The host name or IP address.port
- The host port.defaultPort
- The default host port.userName
- The user name.password
- The user password.path
- The host path.type
- The file type on the host.queryString
- The query after 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 org.apache.commons.httpclient.URIException, FileSystemException
charset
- the charset used for the path encodingorg.apache.commons.httpclient.URIException
- If an error occurs encoding the URI.FileSystemException
- If some other error occurs.public String getQueryString()
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.Copyright © 2002–2025 The Apache Software Foundation. All rights reserved.