org.jboss.portal.portlet.test
Class PortletController

java.lang.Object
  extended by org.jboss.portal.portlet.test.PortletController
All Implemented Interfaces:
RequestController
Direct Known Subclasses:
TCKPortletController

public class PortletController
extends java.lang.Object
implements RequestController

Version:
$Revision$
Author:
Julien Viet

Nested Class Summary
protected  class PortletController.ActionContextImpl
           
protected  class PortletController.InstanceContextImpl
          An instance context implementation that stores the cloned context in the HTTP session of the user.
protected  class PortletController.PortletInvocationContextImpl
           
protected  class PortletController.RenderContextImpl
           
 
Field Summary
protected  Logger log
          .
protected  PortletInvoker portletInvoker
          .
protected  boolean redirectAfterAction
          .
 
Constructor Summary
PortletController()
           
 
Method Summary
 ActionInvocation createAction(ServerInvocation serverInvocation, ActionContext actionContext)
           
 RenderInvocation createRender(ServerInvocation serverInvocation, RenderContext renderContext)
           
protected  void endRender(ServerInvocation invocation)
           
 PortletInvoker getPortletInvoker()
           
 boolean getRedirectAfterAction()
           
protected  java.util.Collection getRenderList(ServerInvocation invocation)
           
 void handle(ServerInvocation invocation)
          Handle the invocation.
 void setPortletInvoker(PortletInvoker portletInvoker)
           
 void setRedirectAfterAction(boolean redirectAfterAction)
           
protected  void startRender(ServerInvocation invocation)
           
 void update(ServerInvocation serverInvocation, PortletInvocation invocation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

redirectAfterAction

protected boolean redirectAfterAction
.


portletInvoker

protected PortletInvoker portletInvoker
.


log

protected Logger log
.

Constructor Detail

PortletController

public PortletController()
Method Detail

getPortletInvoker

public PortletInvoker getPortletInvoker()

setPortletInvoker

public void setPortletInvoker(PortletInvoker portletInvoker)

getRedirectAfterAction

public boolean getRedirectAfterAction()

setRedirectAfterAction

public void setRedirectAfterAction(boolean redirectAfterAction)

handle

public void handle(ServerInvocation invocation)
            throws ServerException
Description copied from interface: RequestController
Handle the invocation.

Specified by:
handle in interface RequestController
Parameters:
invocation - the server invocation
Throws:
ServerException

getRenderList

protected java.util.Collection getRenderList(ServerInvocation invocation)
                                      throws PortletInvokerException
Throws:
PortletInvokerException

startRender

protected void startRender(ServerInvocation invocation)
                    throws ServletException,
                           java.io.IOException
Throws:
ServletException
java.io.IOException

endRender

protected void endRender(ServerInvocation invocation)
                  throws ServletException,
                         java.io.IOException
Throws:
ServletException
java.io.IOException

createAction

public ActionInvocation createAction(ServerInvocation serverInvocation,
                                     ActionContext actionContext)

createRender

public RenderInvocation createRender(ServerInvocation serverInvocation,
                                     RenderContext renderContext)

update

public void update(ServerInvocation serverInvocation,
                   PortletInvocation invocation)