|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An ActionInvocation represents the execution state of an Action. It holds the Interceptors and the Action instance. By repeated re-entrant execution of the invoke() method, initially by the ActionProxy, then by the Interceptors, the Interceptors are all executed, and then the Action and the Result.
ActionProxy
Method Summary | |
void |
addPreResultListener(PreResultListener listener)
Register a com.opensymphony.xwork.interceptor.PreResultListener to be notified after the Action is executed and before the Result is executed. |
Object |
getAction()
Get the Action associated with this ActionInvocation |
ActionContext |
getInvocationContext()
Gets the ActionContext associated with this ActionInvocation. |
ActionProxy |
getProxy()
Get the ActionProxy holding this ActionInvocation |
Result |
getResult()
If the ActionInvocation has been executed before and the Result is an instance of ActionChainResult, this method will walk down the chain of ActionChainResults until it finds a non-chain result, which will be returned. |
String |
getResultCode()
Gets the result code returned from this ActionInvocation |
OgnlValueStack |
getStack()
|
String |
invoke()
Invokes the next step in processing this ActionInvocation. |
String |
invokeActionOnly()
Invokes only the action (not interceptors or results). |
boolean |
isExecuted()
|
void |
setResultCode(String resultCode)
Sets the result code, possibly overriding the one returned by the action. |
Method Detail |
public Object getAction()
public boolean isExecuted()
public ActionContext getInvocationContext()
public ActionProxy getProxy()
public Result getResult() throws Exception
Exception
public String getResultCode()
public void setResultCode(String resultCode)
IllegalStateException
- if called after the Result has been
executed.isExecuted()
public OgnlValueStack getStack()
public void addPreResultListener(PreResultListener listener)
public String invoke() throws Exception
Exception
public String invokeActionOnly() throws Exception
Exception
|
XWork Project Page | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |