org.jboss.portal.core.controller.handler
Class ResponseHandlerSelector

java.lang.Object
  extended by org.jboss.portal.core.controller.handler.ResponseHandlerSelector
All Implemented Interfaces:
ResponseHandler

public class ResponseHandlerSelector
extends java.lang.Object
implements ResponseHandler

Version:
$Revision: 8786 $
Author:
Julien Viet

Constructor Summary
ResponseHandlerSelector()
           
 
Method Summary
 ResponseHandler getAjaxResponseHandler()
           
 ResponseHandler getClassicResponseHandler()
           
 HandlerResponse processCommandResponse(ControllerContext controllerContext, ControllerCommand controllerCommand, ControllerResponse controllerResponse)
          Process the command response and provides an handler response.
 void setAjaxResponseHandler(ResponseHandler ajaxResponseHandler)
           
 void setClassicResponseHandler(ResponseHandler classicResponseHandler)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResponseHandlerSelector

public ResponseHandlerSelector()
Method Detail

getClassicResponseHandler

public ResponseHandler getClassicResponseHandler()

setClassicResponseHandler

public void setClassicResponseHandler(ResponseHandler classicResponseHandler)

getAjaxResponseHandler

public ResponseHandler getAjaxResponseHandler()

setAjaxResponseHandler

public void setAjaxResponseHandler(ResponseHandler ajaxResponseHandler)

processCommandResponse

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

Specified by:
processCommandResponse in interface ResponseHandler
Parameters:
controllerContext - the controller context
controllerCommand - the controller command
controllerResponse - the controller response
Returns:
the handler response
Throws:
ResponseHandlerException