UriUtil
@UnstableApi
class UriUtil
Utility methods for manipulating URIs.
Summary
Public functions |
|
|---|---|
java-static String! |
@UnstableApiCalculates the relative path from a base URI to a target URI. |
java-static Boolean |
isAbsolute(uri: String?)Returns true if the URI is starting with a scheme component, false otherwise. |
java-static Uri! |
removeQueryParameter(uri: Uri!, queryParameterName: String!)Removes query parameter from a URI, if present. |
java-static String! |
Performs relative resolution of a |
java-static Uri! |
resolveToUri(baseUri: String?, referenceUri: String?) |
Public functions
getRelativePath
@UnstableApi
java-static fun getRelativePath(baseUri: Uri!, targetUri: Uri!): String!
Calculates the relative path from a base URI to a target URI.
| Returns | |
|---|---|
String! |
The relative path from the base URI to the target URI, or |
isAbsolute
java-static fun isAbsolute(uri: String?): Boolean
Returns true if the URI is starting with a scheme component, false otherwise.
removeQueryParameter
java-static fun removeQueryParameter(uri: Uri!, queryParameterName: String!): Uri!
Removes query parameter from a URI, if present.
| Returns | |
|---|---|
Uri! |
The URI without the query parameter. |