|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.opensymphony.xwork2.DefaultActionProxy
public class DefaultActionProxy
The Default ActionProxy implementation
| Field Summary | |
|---|---|
protected ActionEventListener |
actionEventListener
|
protected String |
actionName
|
protected boolean |
cleanupContext
|
protected ActionConfig |
config
|
protected Configuration |
configuration
|
protected boolean |
executeResult
|
protected Map |
extraContext
|
protected ActionInvocation |
invocation
|
protected String |
method
|
protected String |
namespace
|
protected ObjectFactory |
objectFactory
|
protected UnknownHandler |
unknownHandler
|
| Constructor Summary | |
|---|---|
protected |
DefaultActionProxy(ActionInvocation inv,
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()
Gets the Action instance for this Proxy. |
String |
getActionName()
Gets the alias name this ActionProxy is mapped to. |
ActionConfig |
getConfig()
Gets the ActionConfig this ActionProxy is built from. |
boolean |
getExecuteResult()
Gets the status of whether the ActionProxy is set to execute the Result after the Action is executed. |
ActionInvocation |
getInvocation()
Gets the ActionInvocation associated with this ActionProxy. |
String |
getMethod()
Gets the method name to execute, or null if no method has been specified (meaning execute will be invoked). |
String |
getNamespace()
Gets the namespace the ActionConfig for this ActionProxy is mapped to. |
void |
prepare()
Called after all dependencies are set. |
void |
setActionEventListener(ActionEventListener listener)
|
void |
setConfiguration(Configuration config)
|
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. |
void |
setObjectFactory(ObjectFactory factory)
|
void |
setUnknownHandler(UnknownHandler handler)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Configuration configuration
protected ActionConfig config
protected ActionInvocation invocation
protected UnknownHandler unknownHandler
protected Map extraContext
protected String actionName
protected String namespace
protected String method
protected boolean executeResult
protected boolean cleanupContext
protected ObjectFactory objectFactory
protected ActionEventListener actionEventListener
| Constructor Detail |
|---|
protected DefaultActionProxy(ActionInvocation inv,
String namespace,
String actionName,
Map extraContext,
boolean executeResult,
boolean cleanupContext)
throws Exception
Exception| Method Detail |
|---|
public void setObjectFactory(ObjectFactory factory)
public void setConfiguration(Configuration config)
public void setUnknownHandler(UnknownHandler handler)
public void setActionEventListener(ActionEventListener listener)
public Object getAction()
ActionProxy
getAction in interface ActionProxypublic String getActionName()
ActionProxy
getActionName in interface ActionProxypublic ActionConfig getConfig()
ActionProxy
getConfig in interface ActionProxypublic void setExecuteResult(boolean executeResult)
ActionProxy
setExecuteResult in interface ActionProxyexecuteResult - true to also execute the Result.public boolean getExecuteResult()
ActionProxy
getExecuteResult in interface ActionProxypublic ActionInvocation getInvocation()
ActionProxy
getInvocation in interface ActionProxypublic String getNamespace()
ActionProxy
getNamespace in interface ActionProxy
public String execute()
throws Exception
ActionProxy
execute in interface ActionProxyException - can be thrown.ActionInvocationpublic String getMethod()
ActionProxyexecute will be invoked).
getMethod in interface ActionProxypublic void setMethod(String method)
ActionProxy
setMethod in interface ActionProxymethod - the string name of the method to invoke
public void prepare()
throws Exception
ActionProxy
prepare in interface ActionProxyException - can be thrown.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||