| java.lang.Object org.jasig.portal.utils.URLUtil
URLUtil | public class URLUtil (Code) | | The URLUtil class offers static helper methods for manipulating the
request parameters and URLs of both HTTP GET and HTTP POST requests
and performing redirections based on the new parameters and URLs.
and request parameters.
author: Andreas Christoforides, achristoforides@unicon.net author: Nick Bolton, nbolton@unicon.net version: $Revision: 35492 $ |
Method Summary | |
public static void | redirect(HttpServletRequest req, HttpServletResponse res, String targetNodeId, boolean asRoot, String[] ignoreParams, String charset) Performs a redirect for both HTTP GET and HTTP POST requests
based on the the specified target channel and parameters to be ignored.
Parameters: req - An HttpServletRequest object. | public static void | redirectGet(HttpServletRequest req, HttpServletResponse res, UPFileSpec up, String[] ignoreParams) Performs a HTTP GET redirect using the specified UPFileSpec
and parameters to be ignored.
Parameters: req - An HttpServletRequest object. | public static void | redirectPost(HttpServletRequest req, HttpServletResponse res, UPFileSpec up, String[] ignoreParams, String charset) Performs a HTTP POST redirect using the specified
UPFileSpec and parameters to be ignored.
Parameters: req - An HttpServletRequest object. |
HTTP_GET_REQUEST | final public static String HTTP_GET_REQUEST(Code) | | |
HTTP_POST_REQUEST | final public static String HTTP_POST_REQUEST(Code) | | |
REDIRECT_URL_LIMIT | final public static int REDIRECT_URL_LIMIT(Code) | | |
redirect | public static void redirect(HttpServletRequest req, HttpServletResponse res, String targetNodeId, boolean asRoot, String[] ignoreParams, String charset) throws PortalException(Code) | | Performs a redirect for both HTTP GET and HTTP POST requests
based on the the specified target channel and parameters to be ignored.
Parameters: req - An HttpServletRequest object. Parameters: res - An HttpServletResponse object. Parameters: targetNodeId - The target node Id of a channel. Parameters: ignoreParams - An array of String objects containingthe parameters to be ignored. |
redirectGet | public static void redirectGet(HttpServletRequest req, HttpServletResponse res, UPFileSpec up, String[] ignoreParams) throws PortalException(Code) | | Performs a HTTP GET redirect using the specified UPFileSpec
and parameters to be ignored.
Parameters: req - An HttpServletRequest object. Parameters: res - An HttpServletResponse object. Parameters: up - the uPortal file spec. Parameters: ignoreParams - An array of String objects containingthe parameters to be ignored. |
redirectPost | public static void redirectPost(HttpServletRequest req, HttpServletResponse res, UPFileSpec up, String[] ignoreParams, String charset) throws PortalException(Code) | | Performs a HTTP POST redirect using the specified
UPFileSpec and parameters to be ignored.
Parameters: req - An HttpServletRequest object. Parameters: res - An HttpServletResponse object. Parameters: up - the uPortal file spec. Parameters: ignoreParams - An array of String objects containingthe parameters to be ignored. |
|
|