public class ParsedURLDefaultProtocolHandler extends AbstractParsedURLProtocolHandler
protocol
Modifier | Constructor and Description |
---|---|
|
ParsedURLDefaultProtocolHandler()
Default constructor sets no protocol so this becomes
default handler.
|
protected |
ParsedURLDefaultProtocolHandler(java.lang.String protocol)
Subclass constructor allows subclasses to provide protocol,
to be handled.
|
Modifier and Type | Method and Description |
---|---|
static int |
charToHex(int ch) |
protected ParsedURLData |
constructParsedURLData()
Subclasses can override these method to construct alternate
subclasses of ParsedURLData.
|
protected ParsedURLData |
constructParsedURLData(java.net.URL url)
Subclasses can override these method to construct alternate
subclasses of ParsedURLData.
|
ParsedURLData |
parseURL(ParsedURL baseURL,
java.lang.String urlStr)
Parses the string as a sub URL of baseURL, and returns the
results of parsing in the ParsedURLData object.
|
ParsedURLData |
parseURL(java.lang.String urlStr)
Parses the string and returns the results of parsing in the
ParsedURLData object.
|
static java.lang.String |
unescapeStr(java.lang.String str) |
getProtocolHandled
public ParsedURLDefaultProtocolHandler()
protected ParsedURLDefaultProtocolHandler(java.lang.String protocol)
protected ParsedURLData constructParsedURLData()
protected ParsedURLData constructParsedURLData(java.net.URL url)
url
- the java.net.URL class we reference.public ParsedURLData parseURL(java.lang.String urlStr)
urlStr
- the string to parse as a URL.public static java.lang.String unescapeStr(java.lang.String str)
public static int charToHex(int ch)
public ParsedURLData parseURL(ParsedURL baseURL, java.lang.String urlStr)
baseURL
- the base url for parsing.urlStr
- the string to parse as a URL.Copyright © 2022 Apache Software Foundation. All Rights Reserved.