com.opensymphony.xwork
Class DefaultActionProxy
java.lang.Object
com.opensymphony.xwork.DefaultActionProxy
- All Implemented Interfaces:
- ActionProxy, Serializable
- public class DefaultActionProxy
- extends Object
- implements ActionProxy, Serializable
The Default ActionProxy implementation
- Version:
- $Revision: 1.12 $
- Author:
- $Author: mbogaert $
- See Also:
- Serialized Form
Constructor Summary |
protected |
DefaultActionProxy(String namespace,
String actionName,
Map extraContext,
boolean executeResult)
This constructor is private so the builder methods (create*) should be used to create an DefaultActionProxy. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
config
protected ActionConfig config
invocation
protected ActionInvocation invocation
extraContext
protected Map extraContext
actionName
protected String actionName
namespace
protected String namespace
executeResult
protected boolean executeResult
DefaultActionProxy
protected DefaultActionProxy(String namespace,
String actionName,
Map extraContext,
boolean executeResult)
throws Exception
- This constructor is private so the builder methods (create*) should be used to create an DefaultActionProxy.
The reason for the builder methods is so that you can use a subclass to create your own DefaultActionProxy instance
(like a RMIActionProxy).
getAction
public Action getAction()
- Specified by:
getAction
in interface ActionProxy
- Returns:
- the Action instance for this Proxy
getActionName
public String getActionName()
- Specified by:
getActionName
in interface ActionProxy
- Returns:
- the alias name this ActionProxy is mapped to
getConfig
public ActionConfig getConfig()
- Specified by:
getConfig
in interface ActionProxy
- Returns:
- the ActionConfig this ActionProxy is built from
setExecuteResult
public void setExecuteResult(boolean executeResult)
- Description copied from interface:
ActionProxy
- Sets whether this ActionProxy should also execute the Result after executing the Action
- Specified by:
setExecuteResult
in interface ActionProxy
- Parameters:
executeResult
-
getExecuteResult
public boolean getExecuteResult()
- Specified by:
getExecuteResult
in interface ActionProxy
- Returns:
- the status of whether the ActionProxy is set to execute the Result after the Action is executed
getInvocation
public ActionInvocation getInvocation()
- Specified by:
getInvocation
in interface ActionProxy
- Returns:
- the ActionInvocation associated with this ActionProxy
getNamespace
public String getNamespace()
- Specified by:
getNamespace
in interface ActionProxy
- Returns:
- the namespace the ActionConfig for this ActionProxy is mapped to
execute
public String execute()
throws Exception
- Description copied from interface:
ActionProxy
- Execute this ActionProxy. This will set the ActionContext from the ActionInvocation into the ActionContext
ThreadLocal before invoking the ActionInvocation, then set the old ActionContext back into the ThreadLocal.
- Specified by:
execute
in interface ActionProxy
- Returns:
- the result code returned from executing the ActionInvocation
- Throws:
Exception
- See Also:
ActionInvocation
prepare
protected void prepare()
throws Exception
- Throws:
Exception