-
- 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
-
urlEncode
static String urlEncode(String unencodedString)
Encodes an URL given as
String.- Parameters:
unencodedString- nullable String value to be encoded
-
extractQueryParameters
static Map<String, String> extractQueryParameters(String uri)
Extras query parameters as a
Map- Parameters:
uri- the URI string to extract parameters
-
-
-
-