Package de.galan.commons.net
Class UrlUtil
- java.lang.Object
-
- de.galan.commons.net.UrlUtil
-
public class UrlUtil extends Object
Url-related helper functionality.
-
-
Constructor Summary
Constructors Constructor Description UrlUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Stringdecode(String value)Uses URLDecoder to decode a application/x-www-form-urlencoded string, using UTF-8 as Charset.static Stringdecode(String value, Charset charset)Uses URLDecoder to decode a application/x-www-form-urlencoded string, using the given Charset.static Stringencode(String value)Uses URLEncoder to translate a string into application/x-www-form-urlencoded format, using UTF-8 as Charset.static Stringencode(String value, Charset charset)Uses URLEncoder to translate a string into application/x-www-form-urlencoded format, using the given Charset.
-
-
-
Method Detail
-
encode
public static String encode(String value, Charset charset)
Uses URLEncoder to translate a string into application/x-www-form-urlencoded format, using the given Charset.
-
encode
public static String encode(String value)
Uses URLEncoder to translate a string into application/x-www-form-urlencoded format, using UTF-8 as Charset.
-
decode
public static String decode(String value, Charset charset)
Uses URLDecoder to decode a application/x-www-form-urlencoded string, using the given Charset.
-
-