|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.opensymphony.xwork.DefaultActionProxy
The Default ActionProxy implementation
| Field Summary | |
protected String |
actionName
|
protected boolean |
cleanupContext
|
protected ActionConfig |
config
|
protected boolean |
executeResult
|
protected Map |
extraContext
|
protected ActionInvocation |
invocation
|
protected String |
method
|
protected String |
namespace
|
| Constructor Summary | |
protected |
DefaultActionProxy(String namespace,
String actionName,
Map extraContext,
boolean executeResult,
boolean cleanupContext)
This constructor is private so the builder methods (create*) should be used to create an DefaultActionProxy. |
| Method Summary | |
String |
execute()
Execute this ActionProxy. |
Object |
getAction()
|
String |
getActionName()
|
ActionConfig |
getConfig()
|
boolean |
getExecuteResult()
|
ActionInvocation |
getInvocation()
|
String |
getMethod()
Returns the method to execute, or null if no method has been specified (meaning "execute" will be invoked) |
String |
getNamespace()
|
protected void |
prepare()
|
void |
setExecuteResult(boolean executeResult)
Sets whether this ActionProxy should also execute the Result after executing the Action |
void |
setMethod(String method)
Sets the method to execute for the action invocation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected ActionConfig config
protected ActionInvocation invocation
protected Map extraContext
protected String actionName
protected String namespace
protected String method
protected boolean executeResult
protected boolean cleanupContext
| Constructor Detail |
protected DefaultActionProxy(String namespace,
String actionName,
Map extraContext,
boolean executeResult,
boolean cleanupContext)
throws Exception
| Method Detail |
public Object getAction()
getAction in interface ActionProxypublic String getActionName()
getActionName in interface ActionProxypublic ActionConfig getConfig()
getConfig in interface ActionProxypublic void setExecuteResult(boolean executeResult)
ActionProxy
setExecuteResult in interface ActionProxyexecuteResult - public boolean getExecuteResult()
getExecuteResult in interface ActionProxypublic ActionInvocation getInvocation()
getInvocation in interface ActionProxypublic String getNamespace()
getNamespace in interface ActionProxy
public String execute()
throws Exception
ActionProxy
execute in interface ActionProxyExceptionActionInvocationpublic String getMethod()
ActionProxy
getMethod in interface ActionProxypublic void setMethod(String method)
ActionProxy
setMethod in interface ActionProxymethod - the string name of the method to invoke
protected void prepare()
throws Exception
Exception
|
XWork Project Page | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||