org.jasig.portal.url
Class PortalRequestUtilsImpl

java.lang.Object
  extended by org.jasig.portal.url.PortalRequestUtilsImpl
All Implemented Interfaces:
IPortalRequestUtils

public class PortalRequestUtilsImpl
extends Object
implements IPortalRequestUtils

Provides access to the original portal and portlet requests using the PortalHttpServletRequestWrapper.ATTRIBUTE__HTTP_SERVLET_REQUEST and PortletHttpServletRequestWrapper.ATTRIBUTE__HTTP_SERVLET_REQUEST

Version:
$Revision$
Author:
Eric Dalquist

Constructor Summary
PortalRequestUtilsImpl()
           
 
Method Summary
 HttpServletRequest getCurrentPortalRequest()
          Uses RequestContextHolder to retrieve the current portal HttpServletRequest
 HttpServletRequest getOriginalPortalRequest(HttpServletRequest portletRequest)
           
 HttpServletRequest getOriginalPortalRequest(PortletRequest portletRequest)
          Useful for container service callbacks and service portlets that are provided with the portlet's request but need access to the portal's HttpServletRequest.
 HttpServletResponse getOriginalPortalResponse(HttpServletRequest portletRequest)
           
 HttpServletResponse getOriginalPortalResponse(PortletRequest portletRequest)
          Useful for container service callbacks and service portlets that are provided with the portlet's request but need access to the portal's HttpServletResponse.
 HttpServletRequest getOriginalPortletAdaptorRequest(HttpServletRequest portletRequest)
           
 HttpServletRequest getOriginalPortletAdaptorRequest(PortletRequest portletRequest)
          Useful for container service callbacks that are provided with the portlet's request but need access to the HttpServletRequest passed into the portlet container.
 HttpServletRequest getPortletAdaptorParentRequest(HttpServletRequest portletRequest)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortalRequestUtilsImpl

public PortalRequestUtilsImpl()
Method Detail

getOriginalPortalRequest

public HttpServletRequest getOriginalPortalRequest(PortletRequest portletRequest)
Description copied from interface: IPortalRequestUtils
Useful for container service callbacks and service portlets that are provided with the portlet's request but need access to the portal's HttpServletRequest.

Specified by:
getOriginalPortalRequest in interface IPortalRequestUtils
Parameters:
portletRequest - The request targeted to the portlet
Returns:
The portal's request, not scoped to a particular portlet

getOriginalPortalRequest

public HttpServletRequest getOriginalPortalRequest(HttpServletRequest portletRequest)
Specified by:
getOriginalPortalRequest in interface IPortalRequestUtils
See Also:
IPortalRequestUtils.getOriginalPortalRequest(PortletRequest)

getOriginalPortalResponse

public HttpServletResponse getOriginalPortalResponse(PortletRequest portletRequest)
Description copied from interface: IPortalRequestUtils
Useful for container service callbacks and service portlets that are provided with the portlet's request but need access to the portal's HttpServletResponse.

Specified by:
getOriginalPortalResponse in interface IPortalRequestUtils
Parameters:
portletRequest - The request targeted to the portlet
Returns:
The portal's response, not scoped to a particular portlet

getOriginalPortalResponse

public HttpServletResponse getOriginalPortalResponse(HttpServletRequest portletRequest)
Specified by:
getOriginalPortalResponse in interface IPortalRequestUtils
See Also:
IPortalRequestUtils.getOriginalPortalResponse(PortletRequest)

getCurrentPortalRequest

public HttpServletRequest getCurrentPortalRequest()
Description copied from interface: IPortalRequestUtils
Uses RequestContextHolder to retrieve the current portal HttpServletRequest

Specified by:
getCurrentPortalRequest in interface IPortalRequestUtils

getOriginalPortletAdaptorRequest

public HttpServletRequest getOriginalPortletAdaptorRequest(PortletRequest portletRequest)
Description copied from interface: IPortalRequestUtils
Useful for container service callbacks that are provided with the portlet's request but need access to the HttpServletRequest passed into the portlet container.

Specified by:
getOriginalPortletAdaptorRequest in interface IPortalRequestUtils
Parameters:
portletRequest - The request targeted to the portlet
Returns:
The portlet scoped request passed to the portlet container

getOriginalPortletAdaptorRequest

public HttpServletRequest getOriginalPortletAdaptorRequest(HttpServletRequest portletRequest)
Specified by:
getOriginalPortletAdaptorRequest in interface IPortalRequestUtils
See Also:
IPortalRequestUtils.getOriginalPortletAdaptorRequest(PortletRequest)

getPortletAdaptorParentRequest

public HttpServletRequest getPortletAdaptorParentRequest(HttpServletRequest portletRequest)
Specified by:
getPortletAdaptorParentRequest in interface IPortalRequestUtils
Parameters:
portletRequest - The request targeted to the portlet
Returns:
The next request up the chain from a portlet adaptor request


Copyright © 2010 Jasig. All Rights Reserved.