|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ActionInvocation
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.xwork2.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 |
ValueStack |
getStack()
|
String |
invoke()
Invokes the next step in processing this ActionInvocation. |
String |
invokeActionOnly()
Invokes only the action (not interceptors or results). |
boolean |
isExecuted()
|
void |
setActionEventListener(ActionEventListener listener)
Sets the action event listener to respond to key action events |
void |
setResultCode(String resultCode)
Sets the result code, possibly overriding the one returned by the action. |
Method Detail |
---|
Object getAction()
boolean isExecuted()
ActionContext getInvocationContext()
ActionProxy getProxy()
Result getResult() throws Exception
Exception
String getResultCode()
void setResultCode(String resultCode)
IllegalStateException
- if called after the Result has been
executed.isExecuted()
ValueStack getStack()
void addPreResultListener(PreResultListener listener)
String invoke() throws Exception
Exception
String invokeActionOnly() throws Exception
Exception
void setActionEventListener(ActionEventListener listener)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |