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
-
- Direct Known Subclasses:
UrlFileName
@Deprecated public class URLFileName extends GenericFileName
Deprecated.UseGenericURLFileName
as it doesn't depend on Http Client v3 API directly.A file name that represents URL.
-
-
Field Summary
Fields Modifier and Type Field Description private static int
BUFFER_SIZE
Deprecated.private java.lang.String
queryString
Deprecated.-
Fields inherited from interface org.apache.commons.vfs2.FileName
EMPTY_ARRAY, ROOT_PATH, SEPARATOR, SEPARATOR_CHAR
-
-
Constructor Summary
Constructors Constructor Description URLFileName(java.lang.String scheme, java.lang.String hostName, int port, int defaultPort, java.lang.String userName, java.lang.String password, java.lang.String path, FileType type, java.lang.String queryString)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description FileName
createName(java.lang.String absPath, FileType type)
Deprecated.Create a FileName.protected java.lang.String
createURI()
Deprecated.Appends query string to the URI.java.lang.String
getPathQuery()
Deprecated.Gets the path and query string e.g.java.lang.String
getPathQueryEncoded(java.lang.String charset)
Deprecated.Gets the path encoded suitable for url like file system e.g.java.lang.String
getQueryString()
Deprecated.Gets the query string.java.lang.String
getURIEncoded(java.lang.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 Detail
-
BUFFER_SIZE
private static final int BUFFER_SIZE
Deprecated.- See Also:
- Constant Field Values
-
queryString
private final java.lang.String queryString
Deprecated.
-
-
Constructor Detail
-
URLFileName
public URLFileName(java.lang.String scheme, java.lang.String hostName, int port, int defaultPort, java.lang.String userName, java.lang.String password, java.lang.String path, FileType type, java.lang.String queryString)
Deprecated.
-
-
Method Detail
-
getQueryString
public java.lang.String getQueryString()
Deprecated.Gets the query string.- Returns:
- the query string part of the file name
-
getPathQuery
public java.lang.String getPathQuery()
Deprecated.Gets the path and query string e.g. /path/servlet?param1=true.- Returns:
- the path and its query string
-
getPathQueryEncoded
public java.lang.String getPathQueryEncoded(java.lang.String charset) throws java.net.URISyntaxException, FileSystemException
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:
java.net.URISyntaxException
- If an error occurs encoding the URI.FileSystemException
- If some other error occurs.
-
createName
public FileName createName(java.lang.String absPath, FileType type)
Deprecated.Create a FileName.- Overrides:
createName
in classGenericFileName
- Parameters:
absPath
- The absolute path.type
- The FileType.- Returns:
- The FileName
-
createURI
protected java.lang.String createURI()
Deprecated.Appends query string to the URI.- Overrides:
createURI
in classAbstractFileName
- Returns:
- the URI
-
getURIEncoded
public java.lang.String getURIEncoded(java.lang.String charset) throws FileSystemException, java.net.URISyntaxException
Deprecated.Encodes a URI.- Parameters:
charset
- The character set.- Returns:
- The encoded URI
- Throws:
FileSystemException
- if some other exception occurs.java.net.URISyntaxException
- if an exception occurs encoding the URI.
-
-