| Modifier and Type | Method and Description |
|---|---|
static URI |
createURI(String scheme,
String host,
int port,
String path,
String query,
String fragment)
Constructs a
URI using all the parameters. |
static URI |
resolve(URI baseURI,
String reference)
Resolves a URI reference against a base URI.
|
static URI |
resolve(URI baseURI,
URI reference)
Resolves a URI reference against a base URI.
|
public static URI createURI(String scheme, String host, int port, String path, String query, String fragment) throws 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 - FragmentURISyntaxException - 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 URI resolve(URI baseURI, String reference)
baseURI - the base URIreference - the URI referenceCopyright © 2014 Molindo GmbH. All Rights Reserved.