Class UrlUtil

java.lang.Object
de.galan.commons.net.UrlUtil

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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    decode(String value)
    Uses URLDecoder to decode a application/x-www-form-urlencoded string, using UTF-8 as Charset.
    static String
    decode(String value, Charset charset)
    Uses URLDecoder to decode a application/x-www-form-urlencoded string, using the given Charset.
    static String
    encode(String value)
    Uses URLEncoder to translate a string into application/x-www-form-urlencoded format, using UTF-8 as Charset.
    static String
    encode(String value, Charset charset)
    Uses URLEncoder to translate a string into application/x-www-form-urlencoded format, using the given Charset.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • UrlUtil

      public UrlUtil()
  • Method Details

    • 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.