com.acciente.induction.dispatcher.controller
Class ControllerExecutor
java.lang.Object
com.acciente.induction.dispatcher.controller.ControllerExecutor
public class ControllerExecutor
- extends java.lang.Object
Internal.
This class executes a specified method on a specified controller instance
Method Summary |
java.lang.Object |
execute(ControllerResolver.Resolution oResolution,
javax.servlet.http.HttpServletRequest oRequest,
javax.servlet.http.HttpServletResponse oResponse)
Executes the controller specified in the oResolution parameter |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ControllerExecutor
public ControllerExecutor(ControllerPool oControllerPool,
ParamResolver oParamResolver)
- Creates a new controller executor instance
- Parameters:
oControllerPool
- a controller pooloParamResolver
- a parameter value resolver
execute
public java.lang.Object execute(ControllerResolver.Resolution oResolution,
javax.servlet.http.HttpServletRequest oRequest,
javax.servlet.http.HttpServletResponse oResponse)
throws ControllerExecutorException
- Executes the controller specified in the oResolution parameter
- Parameters:
oResolution
- specifies the controller to executeoRequest
- passed thru to the controller if the controller so requestsoResponse
- passed thru to the controller if the controller so requests
- Returns:
- the value returned by the controller
- Throws:
ControllerExecutorException
- if an error was encountered during controller loading, executing,
or post post processing, the exception's cause will always contain the actual underlying cause of the error
Copyright (c) 2008 Acciente, LLC. All rights reserved.