@Immutable
public class URIUtils
extends java.lang.Object
URIs, to workaround bugs within the
class or for ease-of-use features.| Modifier and Type | Method and Description |
|---|---|
static java.net.URI |
createURI(java.lang.String scheme,
java.lang.String host,
int port,
java.lang.String path,
java.lang.String query,
java.lang.String fragment)
Constructs a
URI using all the parameters. |
static java.net.URI |
resolve(java.net.URI baseURI,
java.lang.String reference)
Resolves a URI reference against a base URI.
|
static java.net.URI |
resolve(java.net.URI baseURI,
java.net.URI reference)
Resolves a URI reference against a base URI.
|
public static java.net.URI createURI(java.lang.String scheme,
java.lang.String host,
int port,
java.lang.String path,
java.lang.String query,
java.lang.String fragment)
throws java.net.URISyntaxException
URI using all the parameters. This should be used
instead of
URI.URI(String, String, String, int, String, String, String) or
any of the other URI multi-argument URI constructors.scheme - Scheme namehost - Host nameport - Port numberpath - Pathquery - Queryfragment - Fragmentjava.net.URISyntaxException - If both a scheme and a path are given but the path is
relative, if the URI string constructed from the given
components violates RFC 2396, or if the authority
component of the string is present but cannot be parsed as a
server-based authoritypublic static java.net.URI resolve(java.net.URI baseURI,
java.lang.String reference)
baseURI - the base URIreference - the URI referencepublic static java.net.URI resolve(java.net.URI baseURI,
java.net.URI reference)
baseURI - the base URIreference - the URI referenceCopyright © 2015 Molindo GmbH. All Rights Reserved.