GenericURLFileNameParser
as it doesn't depend on Http Client v3 API directly.@Deprecated public class URLFileNameParser extends HostFileNameParser
Parses the url into user/password/host/port/path/queryString.
HostFileNameParser.Authority
Constructor and Description |
---|
URLFileNameParser(int defaultPort)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
encodeCharacter(char ch)
Deprecated.
Check if a character needs encoding (%nn).
|
FileName |
parseUri(VfsComponentContext context,
FileName base,
String fileName)
Deprecated.
Parses a String into a file name.
|
extractHostName, extractPort, extractToPath, extractToPath, extractUserInfo, getDefaultPort
public boolean encodeCharacter(char ch)
FileNameParser
encodeCharacter
in interface FileNameParser
encodeCharacter
in class AbstractFileNameParser
ch
- the characterpublic FileName parseUri(VfsComponentContext context, FileName base, String fileName) throws FileSystemException
FileNameParser
parseUri
in interface FileNameParser
parseUri
in class HostFileNameParser
context
- The component context.base
- The base FileName.fileName
- The target file name.FileSystemException
- if an error occurs parsing the URI.Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.