Class Escape


  • public class Escape
    extends Object
    • Constructor Detail

      • Escape

        public Escape()
    • Method Detail

      • escapeURL

        public static String escapeURL​(String surl)
      • escapeURLQuery

        public static String escapeURLQuery​(String ce)
        Define the DEFINITIVE URL constraint expression escape function.
        Parameters:
        ce - The expression to modify.
        Returns:
        The escaped expression.
      • unescapeURLQuery

        public static String unescapeURLQuery​(String ce)
        Define the DEFINITIVE URL constraint expression unescape function.
        Parameters:
        ce - The expression to unescape.
        Returns:
        The unescaped expression.
      • urlEncode

        public static String urlEncode​(String s)
        Define the DEFINITIVE URL escape function. Note that the whole string is escaped, so be careful what you pass into this procedure.
        Parameters:
        s - The string to modify.
        Returns:
        The escaped expression.
      • urlDecode

        public static String urlDecode​(String s)
        Define the DEFINITIVE URL unescape function.
        Parameters:
        s - The string to unescape.
        Returns:
        The unescaped expression.
      • backslashDecode

        public static String backslashDecode​(String s)
        Define the DEFINITIVE URL BACKSLASH unescape function.
        Parameters:
        s - The string to unescape.
        Returns:
        The unescaped expression.
      • backslashEncode

        public static String backslashEncode​(String s)
        Define the DEFINITIVE URL BACKSLASH escape function.
        Parameters:
        s - The string to escape.
        Returns:
        The escaped expression.