Package org.apache.commons.vfs2.provider
Class URLFileName
java.lang.Object
org.apache.commons.vfs2.provider.AbstractFileName
org.apache.commons.vfs2.provider.GenericFileName
org.apache.commons.vfs2.provider.URLFileName
- All Implemented Interfaces:
Comparable<FileName>
,FileName
- Direct Known Subclasses:
UrlFileName
Deprecated.
A file name that represents URL.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
Deprecated.private final String
Deprecated.Fields inherited from interface org.apache.commons.vfs2.FileName
EMPTY_ARRAY, ROOT_PATH, SEPARATOR, SEPARATOR_CHAR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateName
(String absPath, FileType type) Deprecated.Create a FileName.protected String
Deprecated.Appends query string to the URI.Deprecated.Gets the path and query string e.g.getPathQueryEncoded
(String charset) Deprecated.Gets the path encoded suitable for url like file system e.g.Deprecated.Gets the query string.getURIEncoded
(String charset) Deprecated.Encodes 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, isFile, setType, toString
-
Field Details
-
BUFFER_SIZE
private static final int BUFFER_SIZEDeprecated.- See Also:
-
queryString
Deprecated.
-
-
Constructor Details
-
Method Details
-
getQueryString
Deprecated.Gets the query string.- Returns:
- the query string part of the file name
-
getPathQuery
Deprecated.Gets the path and query string e.g. /path/servlet?param1=true.- Returns:
- the path and its query string
-
getPathQueryEncoded
Deprecated.Gets the path encoded suitable for url like file system e.g. (http, webdav).- Parameters:
charset
- the charset used for the path encoding- Returns:
- The encoded path.
- Throws:
URISyntaxException
- If an error occurs encoding the URI.FileSystemException
- If some other error occurs.
-
createName
Deprecated.Create a FileName.- Overrides:
createName
in classGenericFileName
- Parameters:
absPath
- The absolute path.type
- The FileType.- Returns:
- The FileName
-
createURI
Deprecated.Appends query string to the URI.- Overrides:
createURI
in classAbstractFileName
- Returns:
- the URI
-
getURIEncoded
Deprecated.Encodes a URI.- Parameters:
charset
- The character set.- Returns:
- The encoded URI
- Throws:
FileSystemException
- if some other exception occurs.URISyntaxException
- if an exception occurs encoding the URI.
-
GenericURLFileName
as it doesn't depend on Http Client v3 API directly.