Package | Description |
---|---|
org.apache.clerezza.utils |
Modifier and Type | Method and Description |
---|---|
protected static String |
Uri.decode(char[] component,
String charset)
Decodes URI encoded string.
|
static String |
UriUtil.Coder.decode(char[] escapedComponent,
String charset)
Deprecated.
use org.apache.commons.codec.net.URLCodec
|
static String |
UriUtil.decode(String escaped)
Unescape and decode a given string regarded as an escaped string with the
default protocol charset.
|
protected static String |
Uri.decode(String component,
String charset)
Decodes URI encoded string.
|
static String |
UriUtil.decode(String escaped,
String charset)
Unescape and decode a given string regarded as an escaped string.
|
static String |
UriUtil.encode(String unescaped,
BitSet allowed)
Escape and encode a given string with allowed characters not to be
escaped and the default protocol charset.
|
protected static char[] |
Uri.encode(String original,
BitSet allowed,
String charset)
Encodes URI string.
|
static String |
UriUtil.encode(String unescaped,
BitSet allowed,
String charset)
Escape and encode a given string with allowed characters not to be
escaped and a given charset.
|
static char[] |
UriUtil.Coder.encode(String unescapedComponent,
BitSet allowed,
String charset)
Deprecated.
use org.apache.commons.codec.net.URLCodec
|
static String |
UriUtil.encodeAll(String unescaped)
Get the all escaped and encoded string with the default protocl charset.
|
static String |
UriUtil.encodeAll(String unescaped,
String charset)
Get the all escaped and encoded string with a given charset.
|
static String |
UriUtil.encodePartlyEncodedPath(String partlyEscaped,
String charset)
Get the all escaped and encoded string with a given charset.
|
static String |
UriUtil.encodePath(String unescaped)
Escape and encode a string regarded as the path component of an URI with
the default protocol charset.
|
static String |
UriUtil.encodePath(String unescaped,
String charset)
Escape and encode a string regarded as the path component of an URI with
a given charset.
|
static String |
UriUtil.encodePathQuery(String unescaped)
Escape and encode a string regarded as the path and query components of
an URI with the default protocol charset.
|
static String |
UriUtil.encodePathQuery(String unescaped,
String charset)
Escape and encode a string regarded as the path and query components of
an URI with a given charset.
|
static String |
UriUtil.encodeQuery(String unescaped)
Escape and encode a string regarded as the query component of an URI with
the default protocol charset.
|
static String |
UriUtil.encodeQuery(String unescaped,
String charset)
Escape and encode a string regarded as the query component of an URI with
a given charset.
|
static String |
UriUtil.encodeWithinAuthority(String unescaped)
Escape and encode a string regarded as within the authority component of
an URI with the default protocol charset.
|
static String |
UriUtil.encodeWithinAuthority(String unescaped,
String charset)
Escape and encode a string regarded as within the authority component of
an URI with a given charset.
|
static String |
UriUtil.encodeWithinPath(String unescaped)
Escape and encode a string regarded as within the path component of an
URI with the default protocol charset.
|
static String |
UriUtil.encodeWithinPath(String unescaped,
String charset)
Escape and encode a string regarded as within the path component of an
URI with a given charset.
|
static String |
UriUtil.encodeWithinQuery(String unescaped)
Escape and encode a string regarded as within the query component of an
URI with the default protocol charset.
|
static String |
UriUtil.encodeWithinQuery(String unescaped,
String charset)
Escape and encode a string regarded as within the query component of an
URI with a given charset.
|
String |
Uri.getAboveHierPath()
Get the level above the this hierarchy level.
|
String |
Uri.getAuthority()
Get the authority.
|
String |
Uri.getCurrentHierPath()
Get the current hierarchy level.
|
String |
Uri.getEscapedAboveHierPath()
Get the level above the this hierarchy level.
|
String |
Uri.getEscapedCurrentHierPath()
Get the escaped current hierarchy level.
|
String |
Uri.getFragment()
Get the fragment.
|
String |
Uri.getHost()
Get the host.
|
String |
Uri.getName()
Get the basename of the path.
|
String |
Uri.getPath()
Get the path.
|
String |
Uri.getPathQuery()
Get the path and query.
|
String |
Uri.getQuery()
Get the query.
|
char[] |
Uri.getRawAboveHierPath()
Get the level above the this hierarchy level.
|
char[] |
Uri.getRawCurrentHierPath()
Get the raw-escaped current hierarchy level.
|
protected char[] |
Uri.getRawCurrentHierPath(char[] path)
Get the raw-escaped current hierarchy level in the given path.
|
String |
Uri.getURI()
It can be gotten the URI character sequence.
|
String |
Uri.getURIReference()
Get the original URI reference string.
|
String |
Uri.getUserinfo()
Get the userinfo.
|
void |
Uri.normalize()
Normalizes the path part of this URI.
|
protected char[] |
Uri.normalize(char[] path)
Normalize the given hier path part.
|
protected void |
Uri.parseAuthority(String original,
boolean escaped)
Parse the authority component.
|
protected void |
Uri.parseUriReference(String original,
boolean escaped)
In order to avoid any possilbity of conflict with non-ASCII characters,
Parse a URI reference as a
String with the character
encoding of the local system or the document. |
protected char[] |
Uri.resolvePath(char[] basePath,
char[] relPath)
Resolve the base and relative path.
|
void |
Uri.setEscapedAuthority(String escapedAuthority)
Set the authority.
|
void |
Uri.setEscapedFragment(String escapedFragment)
Set the escaped fragment string.
|
void |
Uri.setEscapedPath(String escapedPath)
Set the escaped path.
|
void |
Uri.setEscapedQuery(String escapedQuery)
Set the escaped query string.
|
void |
Uri.setFragment(String fragment)
Set the fragment.
|
void |
Uri.setPath(String path)
Set the path.
|
void |
Uri.setQuery(String query)
Set the query.
|
void |
Uri.setRawAuthority(char[] escapedAuthority)
Set the authority.
|
void |
Uri.setRawFragment(char[] escapedFragment)
Set the raw-escaped fragment.
|
void |
Uri.setRawPath(char[] escapedPath)
Set the raw-escaped path.
|
void |
Uri.setRawQuery(char[] escapedQuery)
Set the raw-escaped query.
|
Constructor and Description |
---|
Uri(char[] escaped)
Deprecated.
Use #URI(String, boolean)
|
Uri(char[] escaped,
String charset)
Deprecated.
Use #URI(String, boolean, String)
|
Uri(String original)
Deprecated.
Use #URI(String, boolean)
|
Uri(String s,
boolean escaped)
Construct a URI from a string with the given charset.
|
Uri(String s,
boolean escaped,
String charset)
Construct a URI from a string with the given charset.
|
Uri(String original,
String charset)
Deprecated.
Use #URI(String, boolean, String)
|
Uri(String scheme,
String schemeSpecificPart,
String fragment)
Construct a general URI from the given components.
|
Uri(String scheme,
String userinfo,
String host,
int port)
Construct a general URI from the given components.
|
Uri(String scheme,
String userinfo,
String host,
int port,
String path)
Construct a general URI from the given components.
|
Uri(String scheme,
String userinfo,
String host,
int port,
String path,
String query)
Construct a general URI from the given components.
|
Uri(String scheme,
String userinfo,
String host,
int port,
String path,
String query,
String fragment)
Construct a general URI from the given components.
|
Uri(String scheme,
String host,
String path,
String fragment)
Construct a general URI from the given components.
|
Uri(String scheme,
String authority,
String path,
String query,
String fragment)
Construct a general URI from the given components.
|
Uri(Uri base,
String relative)
Deprecated.
Use #URI(URI, String, boolean)
|
Uri(Uri base,
String relative,
boolean escaped)
Construct a general URI with the given relative URI string.
|
Uri(Uri base,
Uri relative)
Construct a general URI with the given relative URI.
|
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.