Package com.adobe.marketing.mobile.util
Class UrlUtils
-
- All Implemented Interfaces:
public final class UrlUtils
-
-
Method Summary
Modifier and Type Method Description static booleanisValidUrl(String stringUrl)Check if the given Stringis a valid URL.static StringurlEncode(String unencodedString)Encodes an URL given as String.static Map<String, String>extractQueryParameters(String uri)Extras query parameters as a Map-
-
Method Detail
-
isValidUrl
static boolean isValidUrl(String stringUrl)
Check if the given
Stringis a valid URL.It uses URL class to identify that.
- Parameters:
stringUrl- URL that needs to be tested- Returns:
return a
booleanindicating if the given parameter is a valid URL
-
urlEncode
static String urlEncode(String unencodedString)
Encodes an URL given as
String.- Parameters:
unencodedString- nullable String value to be encoded- Returns:
the encoded
String
-
extractQueryParameters
static Map<String, String> extractQueryParameters(String uri)
Extras query parameters as a
Map- Parameters:
uri- the URI string to extract parameters- Returns:
a
Mapof query parameters
-
-
-
-