Class URLUtils


  • public class URLUtils
    extends Object
    Since:
    Sakai 2.4
    Version:
    $Rev$
    Author:
    ieb
    • Field Detail

      • BAD_PATH_URL_CHARS

        public static String BAD_PATH_URL_CHARS
        The sanitize the req.getPathInfo() information.
    • Constructor Detail

      • URLUtils

        public URLUtils()
    • Method Detail

      • encodeUrl

        public static String encodeUrl​(String url)
        The same behaviour as Web.escapeUrl, only without the "funky encoding" of the characters ? and ; (uses JDK URLEncoder directly).
        Parameters:
        toencode - The string to encode.
        Returns:
        toencode fully escaped using URL rules.
      • sanitisePath

        public static String sanitisePath​(String path)