Package org.apache.commons.vfs2.provider
Class URLFileNameParser
- java.lang.Object
-
- org.apache.commons.vfs2.provider.AbstractFileNameParser
-
- org.apache.commons.vfs2.provider.HostFileNameParser
-
- org.apache.commons.vfs2.provider.URLFileNameParser
-
- All Implemented Interfaces:
FileNameParser
- Direct Known Subclasses:
HttpFileNameParser,HttpsFileNameParser,SftpFileNameParser
@Deprecated public class URLFileNameParser extends HostFileNameParser
Deprecated.UseGenericURLFileNameParseras it doesn't depend on HTTP Client v3 API directly.Implementation for any url based file system.Parses the url into user/password/host/port/path/queryString.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.commons.vfs2.provider.HostFileNameParser
HostFileNameParser.Authority
-
-
Constructor Summary
Constructors Constructor Description URLFileNameParser(int defaultPort)Deprecated.Constructs a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanencodeCharacter(char ch)Deprecated.Check if a character needs encoding (%nn).FileNameparseUri(VfsComponentContext context, FileName base, java.lang.String fileName)Deprecated.Parses a String into a file name.-
Methods inherited from class org.apache.commons.vfs2.provider.HostFileNameParser
extractHostName, extractPort, extractToPath, extractToPath, extractUserInfo, getDefaultPort
-
-
-
-
Constructor Detail
-
URLFileNameParser
public URLFileNameParser(int defaultPort)
Deprecated.Constructs a new instance.- Parameters:
defaultPort- The default port.
-
-
Method Detail
-
encodeCharacter
public boolean encodeCharacter(char ch)
Deprecated.Description copied from interface:FileNameParserCheck if a character needs encoding (%nn).- Specified by:
encodeCharacterin interfaceFileNameParser- Overrides:
encodeCharacterin classAbstractFileNameParser- Parameters:
ch- the character- Returns:
- true if character should be encoded
-
parseUri
public FileName parseUri(VfsComponentContext context, FileName base, java.lang.String fileName) throws FileSystemException
Deprecated.Description copied from interface:FileNameParserParses a String into a file name.- Specified by:
parseUriin interfaceFileNameParser- Overrides:
parseUriin classHostFileNameParser- Parameters:
context- The component context.base- The base FileName.fileName- The target file name.- Returns:
- A FileName that represents the taret file.
- Throws:
FileSystemException- if an error occurs parsing the URI.
-
-