com.opensymphony.xwork
Interface ActionProxy

All Known Implementing Classes:
DefaultActionProxy

public interface ActionProxy

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.

Author:
Jason Carreira Created Jun 9, 2003 11:27:55 AM

Method Summary
 String execute()
          Execute this ActionProxy.
 Action getAction()
           
 String getActionName()
           
 ActionConfig getConfig()
           
 boolean getExecuteResult()
           
 ActionInvocation getInvocation()
           
 String getNamespace()
           
 void setExecuteResult(boolean executeResult)
          Sets whether this ActionProxy should also execute the Result after executing the Action
 

Method Detail

getAction

public Action getAction()
Returns:
the Action instance for this Proxy

getActionName

public String getActionName()
Returns:
the alias name this ActionProxy is mapped to

getConfig

public ActionConfig getConfig()
Returns:
the ActionConfig this ActionProxy is built from

setExecuteResult

public void setExecuteResult(boolean executeResult)
Sets whether this ActionProxy should also execute the Result after executing the Action

Parameters:
executeResult -

getExecuteResult

public boolean getExecuteResult()
Returns:
the status of whether the ActionProxy is set to execute the Result after the Action is executed

getInvocation

public ActionInvocation getInvocation()
Returns:
the ActionInvocation associated with this ActionProxy

getNamespace

public String getNamespace()
Returns:
the namespace the ActionConfig for this ActionProxy is mapped to

execute

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.

Returns:
the result code returned from executing the ActionInvocation
Throws:
Exception
See Also:
ActionInvocation

XWork Project Page