public final class UriUtil extends Object
| Modifier and Type | Method | Description |
|---|---|---|
static Uri |
removeQueryParameter(Uri uri,
String queryParameterName) |
Removes query parameter from an Uri, if present.
|
static String |
resolve(String baseUri,
String referenceUri) |
Performs relative resolution of a
referenceUri with respect to a baseUri. |
static Uri |
resolveToUri(String baseUri,
String referenceUri) |
public static Uri resolveToUri(@Nullable String baseUri, @Nullable String referenceUri)
baseUri - The base URI.referenceUri - The reference URI to resolve.public static String resolve(@Nullable String baseUri, @Nullable String referenceUri)
referenceUri with respect to a baseUri.
The resolution is performed as specified by RFC-3986.
baseUri - The base URI.referenceUri - The reference URI to resolve.