|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjodd.madvoc.ActionRequest
public class ActionRequest
Encapsulates single action invocation and acts as an action proxy. It invokes all assigned action interceptors during action invocation and specifies the result after action method invocation.
| Field Summary | |
|---|---|
protected java.lang.Object |
action
|
protected ActionConfig |
config
|
protected boolean |
executed
|
protected int |
interceptorIndex
|
protected java.lang.String |
nextActionPath
|
protected java.lang.Object[] |
params
|
protected ActionRequest |
previousActionRequest
|
protected javax.servlet.http.HttpServletRequest |
serlvetRequest
|
protected javax.servlet.http.HttpServletResponse |
servletResponse
|
protected int |
totalInterceptors
|
| Constructor Summary | |
|---|---|
ActionRequest(ActionConfig config,
java.lang.Object action,
javax.servlet.http.HttpServletRequest serlvetRequest,
javax.servlet.http.HttpServletResponse servletResponse)
Creates new action request and action object. |
|
| Method Summary | |
|---|---|
java.lang.Object |
getAction()
Returns action object. |
ActionConfig |
getActionConfig()
Returns action configuration. |
java.lang.String |
getActionPath()
Returns action path. |
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. |
java.lang.Object |
invoke()
Invokes the action and returns action result value object. |
protected java.lang.Object |
invokeAction()
Invokes action method after starting all interceptors. |
boolean |
isExecuted()
Returns true if action request was already executed. |
void |
setActionParams(java.lang.Object[] params)
Sets values for action method parameters. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final ActionConfig config
protected javax.servlet.http.HttpServletRequest serlvetRequest
protected javax.servlet.http.HttpServletResponse servletResponse
protected java.lang.Object[] params
protected final int totalInterceptors
protected int interceptorIndex
protected java.lang.Object action
protected boolean executed
protected java.lang.String nextActionPath
protected ActionRequest previousActionRequest
| Constructor Detail |
|---|
public ActionRequest(ActionConfig config,
java.lang.Object action,
javax.servlet.http.HttpServletRequest serlvetRequest,
javax.servlet.http.HttpServletResponse servletResponse)
| Method Detail |
|---|
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 boolean isExecuted()
true if action request was already executed.
public java.lang.String getNextActionPath()
public void setNextActionPath(java.lang.String nextActionPath)
public ActionRequest getPreviousActionRequest()
public void setPreviousActionRequest(ActionRequest previousActionRequest)
public void setActionParams(java.lang.Object[] params)
public java.lang.Object invoke()
throws java.lang.Exception
java.lang.Exception
protected java.lang.Object invokeAction()
throws java.lang.Exception
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||