public class URLUtils extends Object
Constructor and Description |
---|
URLUtils() |
Modifier and Type | Method and Description |
---|---|
static Map<String,String> |
toMap(String text,
Charset encoding)
Converts URL encoded string to a Map.
|
static String |
urlDecode(String text,
Charset encoding)
URLDecodes a String using the specified character encoding.
|
static String |
urlDecode(String text,
String encoding)
URLDecodes a String using the specified character encoding.
|
static String |
urlEncode(String text,
Charset encoding)
URLEncodes a String using the specified character encoding.
|
static String |
urlEncode(String text,
String encoding)
URLEncodes a String using the specified character encoding.
|
public static String urlEncode(String text, String encoding) throws UnsupportedEncodingException
text
- The String to URLEncodeencoding
- The character encodingUnsupportedEncodingException
public static String urlEncode(String text, Charset encoding)
text
- The String to URLEncodeencoding
- The character encodingpublic static String urlDecode(String text, String encoding) throws UnsupportedEncodingException
text
- The String to URLDecodeencoding
- The character encodingUnsupportedEncodingException
public static String urlDecode(String text, Charset encoding)
text
- The String to URLDecodeencoding
- The character encodingCopyright © 2017 Nets Branch Norway. All Rights Reserved.