public class ActionRequest
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Object |
action |
protected ActionConfig |
actionConfig |
protected java.lang.String |
actionPath |
protected java.lang.Object |
actionResult |
protected int |
execState |
protected int |
filterIndex |
protected int |
interceptorIndex |
protected MadvocController |
madvocController |
protected java.lang.String |
nextActionPath |
protected ActionRequest |
previousActionRequest |
protected Result |
result |
protected javax.servlet.http.HttpServletRequest |
servletRequest |
protected javax.servlet.http.HttpServletResponse |
servletResponse |
protected Target[] |
targets |
protected int |
totalFilters |
protected int |
totalInterceptors |
| Constructor and Description |
|---|
ActionRequest(MadvocController madvocController,
java.lang.String actionPath,
ActionConfig actionConfig,
java.lang.Object action,
javax.servlet.http.HttpServletRequest servletRequest,
javax.servlet.http.HttpServletResponse servletResponse)
Creates new action request and initializes it.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Object |
createActionMethodArgument(java.lang.Class type)
Creates action method arguments.
|
protected java.lang.Object[] |
extractParametersFromTargets()
Collects all parameters from target into an array.
|
protected Result |
findResult()
Returns result field value if such exist.
|
java.lang.Object |
getAction()
Returns action object.
|
ActionConfig |
getActionConfig()
Returns
action configuration. |
java.lang.String |
getActionPath()
Returns action path.
|
java.lang.Object |
getActionResult()
Returns action result object.
|
javax.servlet.http.HttpServletRequest |
getHttpServletRequest()
Returns servlet request.
|
javax.servlet.http.HttpServletResponse |
getHttpServletResponse()
Returns servlet response.
|
java.lang.String |
getNextActionPath()
Returns next request string for action chaining.
|
ActionRequest |
getPreviousActionRequest()
Returns previous action request in chain, if there was one.
|
Result |
getResult()
Returns result object if exist in action, otherwise returns
null. |
Target[] |
getTargets()
Returns all injection targets.
|
java.lang.Object |
invoke()
Invokes the action and returns action result value object.
|
protected java.lang.Object |
invokeAction()
Invokes all
action interceptors
and the action method, returns action result object. |
protected java.lang.Object |
invokeActionMethod()
Invokes action method after starting all interceptors.
|
protected Target[] |
makeTargets()
Joins action and parameters into one array of Targets.
|
void |
setActionResult(java.lang.Object actionResult)
Sets action result object.
|
void |
setHttpServletRequest(javax.servlet.http.HttpServletRequest request)
Specifies new servlet request, in case of wrapping it.
|
void |
setHttpServletResponse(javax.servlet.http.HttpServletResponse response)
Specifies new servlet response, in case of wrapping it.
|
void |
setNextActionPath(java.lang.String nextActionPath)
Specifies the next action path, that will be chained to current action request.
|
void |
setPreviousActionRequest(ActionRequest previousActionRequest)
Sets previous action request in chain.
|
protected final MadvocController madvocController
protected final ActionConfig actionConfig
protected final java.lang.String actionPath
protected javax.servlet.http.HttpServletRequest servletRequest
protected javax.servlet.http.HttpServletResponse servletResponse
protected Result result
protected final Target[] targets
protected final int totalInterceptors
protected int interceptorIndex
protected int filterIndex
protected int totalFilters
protected int execState
protected java.lang.Object action
protected java.lang.Object actionResult
protected java.lang.String nextActionPath
protected ActionRequest previousActionRequest
public ActionRequest(MadvocController madvocController, java.lang.String actionPath, ActionConfig actionConfig, java.lang.Object action, javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
public javax.servlet.http.HttpServletRequest getHttpServletRequest()
public void setHttpServletRequest(javax.servlet.http.HttpServletRequest request)
public javax.servlet.http.HttpServletResponse getHttpServletResponse()
public void setHttpServletResponse(javax.servlet.http.HttpServletResponse response)
public ActionConfig getActionConfig()
action configuration.public java.lang.Object getAction()
public java.lang.String getActionPath()
public java.lang.String getNextActionPath()
public void setNextActionPath(java.lang.String nextActionPath)
public ActionRequest getPreviousActionRequest()
public void setPreviousActionRequest(ActionRequest previousActionRequest)
public Result getResult()
null.public Target[] getTargets()
public java.lang.Object getActionResult()
public void setActionResult(java.lang.Object actionResult)
protected Result findResult()
null it will be created.protected Target[] makeTargets()
protected java.lang.Object createActionMethodArgument(java.lang.Class type)
public java.lang.Object invoke()
throws java.lang.Exception
java.lang.Exceptionprotected java.lang.Object invokeAction()
throws java.lang.Exception
action interceptors
and the action method, returns action result object.java.lang.Exceptionprotected java.lang.Object invokeActionMethod()
throws java.lang.Exception
java.lang.Exceptionprotected java.lang.Object[] extractParametersFromTargets()
Copyright © 2003-2013 Jodd Team