Home » xwork-2.1.5 » com.opensymphony » xwork2 » [javadoc | source]
public interface: ActionProxy [javadoc | source]

All Known Implementing Classes:
    DefaultActionProxy, MockActionProxy

ActionProxy is an extra layer between XWork and the action so that different proxies are possible.

An example of this would be a remote proxy, where the layer between XWork and the action might be RMI or SOAP.

Method from com.opensymphony.xwork2.ActionProxy Summary:
execute,   getAction,   getActionName,   getConfig,   getExecuteResult,   getInvocation,   getMethod,   getNamespace,   setExecuteResult
Method from com.opensymphony.xwork2.ActionProxy Detail:
 public String execute() throws Exception
    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.
 public Object getAction()
    Gets the Action instance for this Proxy.
 public String getActionName()
    Gets the alias name this ActionProxy is mapped to.
 public ActionConfig getConfig()
    Gets the ActionConfig this ActionProxy is built from.
 public boolean getExecuteResult()
    Gets the status of whether the ActionProxy is set to execute the Result after the Action is executed.
 public ActionInvocation getInvocation()
    Gets the ActionInvocation associated with this ActionProxy.
 public String getMethod()
    Gets the method name to execute, or null if no method has been specified (meaning execute will be invoked).
 public String getNamespace()
    Gets the namespace the ActionConfig for this ActionProxy is mapped to.
 public  void setExecuteResult(boolean executeResult)
    Sets whether this ActionProxy should also execute the Result after executing the Action.