Modifier and Type | Method and Description |
---|---|
static URI |
create(String uriStr)
Creates a
URI from a string. |
static URI |
create(String scheme,
Authority authority,
String path,
String query)
Creates a
URI from components. |
static URI |
create(URI baseUri,
String newPath,
boolean checkNormalization) |
static URI |
create(URI parent,
URI child)
|
static Pair<String,String> |
getSchemeComponents(String scheme)
Returns a
Pair of components of the given scheme. |
public static URI create(String scheme, Authority authority, String path, String query)
URI
from components.scheme
- the scheme string of the URIauthority
- the authority of the URIpath
- the path component of the URIquery
- the query component of the URIURI
public static URI create(URI parent, URI child)
parent
- the parentchild
- the childURI
public static URI create(URI baseUri, String newPath, boolean checkNormalization)
baseUri
- the base URInewPath
- the new path componentcheckNormalization
- if true, will check if the path requires normalizationpublic static Pair<String,String> getSchemeComponents(String scheme)
Pair
of components of the given scheme. A given scheme may have have two
components if it has the ':' character to specify a sub-protocol of the scheme. If the
scheme does not have multiple components, the first component will be the empty string, and
the second component will be the given scheme. If the given scheme is null, both components
in the Pair
will be null.scheme
- the scheme stringPair
with the scheme componentsCopyright © 2023. All Rights Reserved.