org.jasig.portal.utils
Class URLUtil
java.lang.Object
org.jasig.portal.utils.URLUtil
public class URLUtil
- extends Object
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.
- Version:
- $Revision: 19776 $
- Author:
- Andreas Christoforides, achristoforides@unicon.net, Nick Bolton, nbolton@unicon.net
|
Method Summary |
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. |
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. |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
REDIRECT_URL_LIMIT
public static final int REDIRECT_URL_LIMIT
- See Also:
- Constant Field Values
HTTP_GET_REQUEST
public static final String HTTP_GET_REQUEST
- See Also:
- Constant Field Values
HTTP_POST_REQUEST
public static final String HTTP_POST_REQUEST
- See Also:
- Constant Field Values
URLUtil
public URLUtil()
redirect
public static void redirect(HttpServletRequest req,
HttpServletResponse res,
String targetNodeId,
boolean asRoot,
String[] ignoreParams,
String charset)
throws PortalException
- 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.res - An HttpServletResponse object.targetNodeId - The target node Id of a channel.ignoreParams - An array of String objects containing
the parameters to be ignored.
- Throws:
PortalException
redirectGet
public static void redirectGet(HttpServletRequest req,
HttpServletResponse res,
UPFileSpec up,
String[] ignoreParams)
throws PortalException
- Performs a HTTP GET redirect using the specified UPFileSpec
and parameters to be ignored.
- Parameters:
req - An HttpServletRequest object.res - An HttpServletResponse object.up - the uPortal file spec.ignoreParams - An array of String objects containing
the parameters to be ignored.
- Throws:
PortalException
redirectPost
public static void redirectPost(HttpServletRequest req,
HttpServletResponse res,
UPFileSpec up,
String[] ignoreParams,
String charset)
throws PortalException
- Performs a HTTP POST redirect using the specified
UPFileSpec and parameters to be ignored.
- Parameters:
req - An HttpServletRequest object.res - An HttpServletResponse object.up - the uPortal file spec.ignoreParams - An array of String objects containing
the parameters to be ignored.
- Throws:
PortalException
Copyright © 2010 Jasig. All Rights Reserved.