URIs, to workaround
bugs within the class or for ease-of-use features.
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static URI | create(final HttpHost host, final String path)
Deprecated
Use
Convenience factory method for URIBuilder.
URI instances.
|
| public static URI | create(final String scheme, final URIAuthority host, final String path)
Deprecated
Use
Convenience factory method for URIBuilder.
URI instances.
|
| public static HttpHost | Returns: the target host if the URI is absolute ornull if the URI is
relative or does not contain a valid host name.Extracts target host from the given |
| pack-priv static URI | Returns: the URI without dot segmentsthe original URI uri)Removes dot segments and performs Syntax-Based Normalization. |
| public static URI | |
| public static URI | |
| public static URI | Returns: interpreted (absolute) URIoriginal request before any redirects originalURI, final HttpHost if the last URI is relative, it is resolved against this target,
or target, final List<URI> null if not available.collection of redirect locations since the original request
or redirects)null if not available.Derives the interpreted (absolute) URI that was used to generate the last request. |
| public static URI | rewriteURI(final URI
Contains the path, query and fragment to use. uri, final HttpHost Contains the scheme, host and port to use. target, final boolean True if the fragment should not be copied. dropFragment)
Deprecated
Use
A convenience method for creating a new URIBuilder.
URI whose scheme, host
and port are taken from the target host, but whose path, query and
fragment are taken from the existing URI.
|
| public static URI | rewriteURI(final URI uri, final HttpHost target)
Deprecated
Use
A convenience method for
URIBuilder.
URIUtils#rewriteURI(URI, HttpHost, boolean) that always keeps the
fragment.
|
| public static URI | rewriteURI(final URI
original URI. uri)
Deprecated
Use
A convenience method that creates a new URIBuilder.
URI whose scheme, host, port, path,
query are taken from the existing URI, dropping any fragment or user-information.
|
| URIUtils | back to summary |
|---|---|
| private URIUtils() This class should not be instantiated. | |
| create | back to summary |
|---|---|
| public static URI create(final HttpHost host, final String path) throws URISyntaxException
Deprecated Use Convenience factory method for
| |
| create | back to summary |
|---|---|
| public static URI create(final String scheme, final URIAuthority host, final String path) throws URISyntaxException
Deprecated Use Convenience factory method for
| |
| extractHost | back to summary |
|---|---|
| public static HttpHost extractHost(final URI uri) Extracts target host from the given
| |
| normalizeSyntax | back to summary |
|---|---|
| pack-priv static URI normalizeSyntax(final URI uri) throws URISyntaxException Removes dot segments and performs Syntax-Based Normalization. | |
| resolve | back to summary |
|---|---|
| public static URI resolve(final URI baseURI, final String reference) Resolves a URI reference against a base URI. Work-around for bug in java.net.URI (http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4708535) | |
| resolve | back to summary |
|---|---|
| public static URI resolve(final URI baseURI, final URI reference) Resolves a URI reference against a base URI. Work-around for bugs in java.net.URI (e.g. http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4708535) | |
| resolve | back to summary |
|---|---|
| public static URI resolve(final URI originalURI, final HttpHost target, final List<URI> redirects) throws URISyntaxException Derives the interpreted (absolute) URI that was used to generate the last
request. This is done by extracting the request-uri and target origin for
the last request and scanning all the redirect locations for the last
fragment identifier, then combining the result into a
| |
| rewriteURI | back to summary |
|---|---|
| public static URI rewriteURI(final URI uri, final HttpHost target, final boolean dropFragment) throws URISyntaxException
Deprecated Use A convenience method for creating a new
| |
| rewriteURI | back to summary |
|---|---|
| public static URI rewriteURI(final URI uri, final HttpHost target) throws URISyntaxException
Deprecated Use A convenience method for
| |
| rewriteURI | back to summary |
|---|---|
| public static URI rewriteURI(final URI uri) throws URISyntaxException
Deprecated Use A convenience method that creates a new
| |