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