Package org.sakaiproject.portal.util
Class URLUtils
- java.lang.Object
-
- org.sakaiproject.portal.util.URLUtils
-
public class URLUtils extends Object
- Since:
- Sakai 2.4
- Version:
- $Rev$
- Author:
- ieb
-
-
Field Summary
Fields Modifier and Type Field Description static StringBAD_PATH_URL_CHARSThe sanitize the req.getPathInfo() information.
-
Constructor Summary
Constructors Constructor Description URLUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringaddParameter(String URL, String name, String value)static StringencodeUrl(String url)The same behaviour as Web.escapeUrl, only without the "funky encoding" of the characters ?static StringgetSafePathInfo(HttpServletRequest req)static StringsanitisePath(String path)
-
-
-
Field Detail
-
BAD_PATH_URL_CHARS
public static String BAD_PATH_URL_CHARS
The sanitize the req.getPathInfo() information.
-
-
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:
toencodefully escaped using URL rules.
-
getSafePathInfo
public static String getSafePathInfo(HttpServletRequest req)
-
-