Class EncodeUtil

java.lang.Object
org.duracloud.common.web.EncodeUtil

public class EncodeUtil extends Object
  • Field Details

  • Method Details

    • urlEncode

      public static String urlEncode(String toEncode)
      Encodes characters within a string to allow them to be used within a URL. Note that the entire URL should not be passed to this method as it will encode characters like ':' and '/'.
      Parameters:
      toEncode - String to encode
      Returns:
      encoded string
    • urlDecode

      public static String urlDecode(String toDecode)