public class Resolver extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
gsServerIndicator |
| Modifier and Type | Method and Description |
|---|---|
static String |
canonUrl(String sScheme,
String sHost,
String sPort,
String sPath)
Canon(ize) an url into its constituent parts.
|
static void |
crackUrl(String sUrl,
StringHolder sScheme,
StringHolder sUser,
StringHolder sPwd,
StringHolder sHost,
StringHolder sPort,
StringHolder sPath)
Crack an url into its constituent parts.
|
static Protocol |
getProtocol(String sScheme)
Get the currently installed protocol handler associated
with the given scheme.
|
static void |
resetProtocols()
Uninstall all protocol handlers.
|
static void |
setProtocol(Protocol oProtocol)
Sets (adds) the given protocol to the list of protocol handlers.
|
static String |
urlDecode(String sUrl)
Decode a URL encoded string
|
static String |
urlEncode(String sUrl)
URL encode a string
|
public static final String gsServerIndicator
public static void setProtocol(Protocol oProtocol)
oProtocol - a protocol handler.
Subsequent to this operation, the I/O of any URL whose scheme matches
the given protocol will be routed to the given protocol handler.public static void resetProtocols()
public static Protocol getProtocol(String sScheme)
sScheme - a URL's scheme.public static void crackUrl(String sUrl, StringHolder sScheme, StringHolder sUser, StringHolder sPwd, StringHolder sHost, StringHolder sPort, StringHolder sPath)
scheme://[user[:password]@]host[:port][/path]
sUrl - the URL to crack.sScheme - the cracked URL's scheme.sUser - the cracked URL's user, if any.sPwd - the cracked URL's password, if any.sHost - the cracked URL's host.sPort - the cracked URL's port, if any.sPath - the cracked URL's path, if any.public static String canonUrl(String sScheme, String sHost, String sPort, String sPath)
scheme://host[:port][/path]
sScheme - the URL's scheme.sHost - the URL's host.sPort - the URL's port, if any.sPath - the URL's path, if any.public static String urlEncode(String sUrl)
sUrl - string to be encodedCopyright © 2010 - 2020 Adobe. All Rights Reserved