org.jasig.portal.portlet.delegation
Class PortletDelegationDispatcherImpl

java.lang.Object
  extended by org.jasig.portal.portlet.delegation.PortletDelegationDispatcherImpl
All Implemented Interfaces:
PortletDelegationDispatcher

public class PortletDelegationDispatcherImpl
extends Object
implements PortletDelegationDispatcher

Version:
$Revision: 20599 $
Author:
Eric Dalquist

Field Summary
protected  org.apache.commons.logging.Log logger
           
 
Constructor Summary
PortletDelegationDispatcherImpl(IPortletWindow portletWindow, IPortletWindow parentPortletWindow, int userId, IPortalRequestUtils portalRequestUtils, IPersonManager personManager, IPortletRenderer portletRenderer, IPortletRequestParameterManager portletRequestParameterManager, IPortletDelegationManager portletDelegationManager)
           
 
Method Summary
 DelegationActionResponse doAction(ActionRequest actionRequest, ActionResponse actionResponse)
          Calls PortletDelegationDispatcher.doAction(ActionRequest, ActionResponse, DelegationRequest) with no DelegationRequest data
 DelegationActionResponse doAction(ActionRequest actionRequest, ActionResponse actionResponse, DelegationRequest delegationRequest)
          Executes a portlet action request on the delegate window.
 DelegationResponse doRender(RenderRequest renderRequest, RenderResponse renderResponse)
          Calls PortletDelegationDispatcher.doRender(RenderRequest, RenderResponse, DelegationRequest, Writer) with no DelegationRequest data and uses RenderResponse.getWriter() for the writer.,
 DelegationResponse doRender(RenderRequest renderRequest, RenderResponse renderResponse, DelegationRequest delegationRequest)
          Calls PortletDelegationDispatcher.doRender(RenderRequest, RenderResponse, DelegationRequest, Writer) using RenderResponse.getWriter() for the writer.,
 DelegationResponse doRender(RenderRequest renderRequest, RenderResponse renderResponse, DelegationRequest delegationRequest, Writer writer)
          Executes a portlet render request on the delegate window.
 DelegationResponse doRender(RenderRequest renderRequest, RenderResponse renderResponse, Writer writer)
          Calls PortletDelegationDispatcher.doRender(RenderRequest, RenderResponse, DelegationRequest, Writer) with no DelegationRequest data.
 DelegateState getDelegateState()
           
 IPortletWindowId getPortletWindowId()
           
protected  void setupDelegateRequestInfo(HttpServletRequest request, DelegationRequest delegationRequest)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected final org.apache.commons.logging.Log logger
Constructor Detail

PortletDelegationDispatcherImpl

public PortletDelegationDispatcherImpl(IPortletWindow portletWindow,
                                       IPortletWindow parentPortletWindow,
                                       int userId,
                                       IPortalRequestUtils portalRequestUtils,
                                       IPersonManager personManager,
                                       IPortletRenderer portletRenderer,
                                       IPortletRequestParameterManager portletRequestParameterManager,
                                       IPortletDelegationManager portletDelegationManager)
Method Detail

doAction

public DelegationActionResponse doAction(ActionRequest actionRequest,
                                         ActionResponse actionResponse)
                                  throws IOException
Description copied from interface: PortletDelegationDispatcher
Calls PortletDelegationDispatcher.doAction(ActionRequest, ActionResponse, DelegationRequest) with no DelegationRequest data

Specified by:
doAction in interface PortletDelegationDispatcher
Throws:
IOException
See Also:
PortletDelegationDispatcher.doAction(ActionRequest, ActionResponse, DelegationRequest)

doAction

public DelegationActionResponse doAction(ActionRequest actionRequest,
                                         ActionResponse actionResponse,
                                         DelegationRequest delegationRequest)
                                  throws IOException
Description copied from interface: PortletDelegationDispatcher
Executes a portlet action request on the delegate window. The state, mode and parameters in the delegation request (if set) are used by the delegate.

Specified by:
doAction in interface PortletDelegationDispatcher
Parameters:
actionRequest - The current portlet's action request
actionResponse - The current portlet's action response
delegationRequest - The state to set for the delegate and the basis for generated URLs
Returns:
The delegation response state, will indicate if the delegate sent a redirect
Throws:
IOException

doRender

public DelegationResponse doRender(RenderRequest renderRequest,
                                   RenderResponse renderResponse)
                            throws IOException
Description copied from interface: PortletDelegationDispatcher
Calls PortletDelegationDispatcher.doRender(RenderRequest, RenderResponse, DelegationRequest, Writer) with no DelegationRequest data and uses RenderResponse.getWriter() for the writer.,

Specified by:
doRender in interface PortletDelegationDispatcher
Throws:
IOException
See Also:
PortletDelegationDispatcher.doRender(RenderRequest, RenderResponse, DelegationRequest, Writer)

doRender

public DelegationResponse doRender(RenderRequest renderRequest,
                                   RenderResponse renderResponse,
                                   Writer writer)
                            throws IOException
Description copied from interface: PortletDelegationDispatcher
Calls PortletDelegationDispatcher.doRender(RenderRequest, RenderResponse, DelegationRequest, Writer) with no DelegationRequest data.

Specified by:
doRender in interface PortletDelegationDispatcher
Throws:
IOException
See Also:
PortletDelegationDispatcher.doRender(RenderRequest, RenderResponse, DelegationRequest, Writer)

doRender

public DelegationResponse doRender(RenderRequest renderRequest,
                                   RenderResponse renderResponse,
                                   DelegationRequest delegationRequest)
                            throws IOException
Description copied from interface: PortletDelegationDispatcher
Calls PortletDelegationDispatcher.doRender(RenderRequest, RenderResponse, DelegationRequest, Writer) using RenderResponse.getWriter() for the writer.,

Specified by:
doRender in interface PortletDelegationDispatcher
Throws:
IOException
See Also:
PortletDelegationDispatcher.doRender(RenderRequest, RenderResponse, DelegationRequest, Writer)

doRender

public DelegationResponse doRender(RenderRequest renderRequest,
                                   RenderResponse renderResponse,
                                   DelegationRequest delegationRequest,
                                   Writer writer)
                            throws IOException
Description copied from interface: PortletDelegationDispatcher
Executes a portlet render request on the delegate window. The state, mode and parameters in the delegation request (if set) are used by the delegate. The output of the portlet's rendering is written to the provided Writer

Specified by:
doRender in interface PortletDelegationDispatcher
Parameters:
renderRequest - The current portlet's render request
renderResponse - The current portlet's render response
delegationRequest - The state to set for the delegate and the basis for generated URLs
writer - The Writer to send all content from the delegate portlet to
Returns:
The delegation response state, will indicate if the delegate sent a redirect
Throws:
IOException

getDelegateState

public DelegateState getDelegateState()
Specified by:
getDelegateState in interface PortletDelegationDispatcher
Returns:
The current sate of the delegate window

getPortletWindowId

public IPortletWindowId getPortletWindowId()
Specified by:
getPortletWindowId in interface PortletDelegationDispatcher
Returns:
The ID of the delegate portlet window, useful for retrieving this dispatcher again from the PortletDelegationLocator

setupDelegateRequestInfo

protected void setupDelegateRequestInfo(HttpServletRequest request,
                                        DelegationRequest delegationRequest)


Copyright © 2010 Jasig. All Rights Reserved.