Class EncodeUtil


  • public class EncodeUtil
    extends Object
    • Method Detail

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