Class UrlUtil


  • public class UrlUtil
    extends Object
    Url-related helper functionality.
    • Constructor Detail

      • UrlUtil

        public UrlUtil()
    • 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.
      • decode

        public static String decode​(String value)
        Uses URLDecoder to decode a application/x-www-form-urlencoded string, using UTF-8 as Charset.