public class ActionRequest
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.Object |
action |
protected java.lang.String |
actionPath |
protected java.lang.String[] |
actionPathChunks |
protected java.lang.Object |
actionResult |
protected ActionRuntime |
actionRuntime |
protected ActionWrapper[] |
executionArray |
protected int |
executionIndex |
protected MadvocController |
madvocController |
protected java.lang.String |
nextActionPath |
protected javax.servlet.http.HttpServletRequest |
servletRequest |
protected javax.servlet.http.HttpServletResponse |
servletResponse |
protected Targets |
targets |
Constructor and Description |
---|
ActionRequest(MadvocController madvocController,
java.lang.String actionPath,
java.lang.String[] actionPathChunks,
ActionRuntime actionRuntime,
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 |
---|---|
void |
bind(javax.servlet.http.HttpServletRequest request)
Specifies new servlet request, in case of wrapping it.
|
void |
bind(javax.servlet.http.HttpServletResponse response)
Specifies new servlet response, in case of wrapping it.
|
void |
bindActionResult(java.lang.Object actionResult)
Sets action result object.
|
protected ActionWrapper[] |
createExecutionArray()
Creates execution array that will invoke all filters, actions and results
in correct order.
|
java.lang.Object |
getAction()
Returns action object.
|
java.lang.String |
getActionPath()
Returns action path.
|
java.lang.String[] |
getActionPathChunks()
Returns chunks of action path.
|
java.lang.Object |
getActionResult()
Returns action result object.
|
ActionRuntime |
getActionRuntime()
Returns
action runtime configuration. |
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.
|
Targets |
getTargets()
Returns all injection targets.
|
java.lang.Object |
invoke()
Invokes the action and returns action result value object.
|
protected java.lang.Object |
invokeActionMethod()
Invokes action method after starting all interceptors.
|
java.lang.String |
readRequestBody()
Reads request body only once and returns it to user.
|
void |
setNextActionPath(java.lang.String nextActionPath)
Specifies the next action path, that will be chained to current action request.
|
protected final MadvocController madvocController
protected final ActionRuntime actionRuntime
protected final java.lang.String actionPath
protected final java.lang.String[] actionPathChunks
protected javax.servlet.http.HttpServletRequest servletRequest
protected javax.servlet.http.HttpServletResponse servletResponse
protected final Targets targets
protected final ActionWrapper[] executionArray
protected int executionIndex
protected java.lang.Object action
protected java.lang.Object actionResult
protected java.lang.String nextActionPath
public ActionRequest(MadvocController madvocController, java.lang.String actionPath, java.lang.String[] actionPathChunks, ActionRuntime actionRuntime, java.lang.Object action, javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
public javax.servlet.http.HttpServletRequest getHttpServletRequest()
public void bind(javax.servlet.http.HttpServletRequest request)
public javax.servlet.http.HttpServletResponse getHttpServletResponse()
public void bind(javax.servlet.http.HttpServletResponse response)
public ActionRuntime getActionRuntime()
action runtime
configuration.public java.lang.Object getAction()
public java.lang.String getActionPath()
public java.lang.String getNextActionPath()
public void setNextActionPath(java.lang.String nextActionPath)
public Targets getTargets()
public java.lang.Object getActionResult()
public void bindActionResult(java.lang.Object actionResult)
public java.lang.String[] getActionPathChunks()
/
. For example,
the path "/hello/world"
would return 2 chunks: hello
and world
.protected ActionWrapper[] createExecutionArray()
public java.lang.Object invoke() throws java.lang.Exception
java.lang.Exception
protected java.lang.Object invokeActionMethod() throws java.lang.Exception
java.lang.Exception
public java.lang.String readRequestBody()
Copyright © 2003-present Jodd Team