org.jboss.portal.core.controller.classic
Class ClassicResponseHandler

java.lang.Object
  extended by ServiceMBeanSupport
      extended by org.jboss.portal.jems.as.system.AbstractJBossService
          extended by org.jboss.portal.core.controller.handler.AbstractResponseHandler
              extended by org.jboss.portal.core.controller.classic.ClassicResponseHandler
All Implemented Interfaces:
ResponseHandler

public class ClassicResponseHandler
extends AbstractResponseHandler

Version:
$Revision: 1.1 $
Author:
Julien Viet

Constructor Summary
ClassicResponseHandler()
           
 
Method Summary
 HandlerResponse processCommandResponse(ControllerContext controllerContext, ControllerCommand controllerCommand, ControllerResponse commandResponse)
          Process the command response and provides an handler response.
 boolean requiresRedirect(ControllerCommand currentCmd, URLContext currentURLCtx, CommandForward forward)
          Return true if the execution of the next command requires a redirect.
 
Methods inherited from class org.jboss.portal.jems.as.system.AbstractJBossService
create, destroy, getState, getStateString, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassicResponseHandler

public ClassicResponseHandler()
Method Detail

processCommandResponse

public HandlerResponse processCommandResponse(ControllerContext controllerContext,
                                              ControllerCommand controllerCommand,
                                              ControllerResponse commandResponse)
                                       throws ResponseHandlerException
Description copied from interface: ResponseHandler
Process the command response and provides an handler response.

Parameters:
controllerContext - the controller context
controllerCommand - the controller command
commandResponse - the controller response
Returns:
the handler response
Throws:
ResponseHandlerException

requiresRedirect

public boolean requiresRedirect(ControllerCommand currentCmd,
                                URLContext currentURLCtx,
                                CommandForward forward)
Return true if the execution of the next command requires a redirect.

Parameters:
currentCmd - the current command which has been executed
currentURLCtx - the request URL context
forward - the forward
Returns: