public class MockActionProxy extends Object implements ActionProxy
ActionProxy.| Constructor and Description |
|---|
MockActionProxy() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
boolean |
isExecutedCalled() |
boolean |
isMethodSpecified()
Gets status of the method value's initialization.
|
void |
prepare() |
void |
setAction(Object action) |
void |
setActionName(String actionName) |
void |
setConfig(ActionConfig config) |
void |
setExecuteResult(boolean executeResult)
Sets whether this ActionProxy should also execute the Result after executing the Action.
|
void |
setInvocation(ActionInvocation invocation) |
void |
setMethod(String method) |
void |
setMethodSpecified(boolean methodSpecified) |
void |
setNamespace(String namespace) |
void |
setReturnedResult(String returnedResult) |
public String execute() throws Exception
ActionProxyexecute in interface ActionProxyException - can be thrown.ActionInvocationpublic void setReturnedResult(String returnedResult)
public boolean isExecutedCalled()
public Object getAction()
ActionProxygetAction in interface ActionProxypublic void setAction(Object action)
public String getActionName()
ActionProxygetActionName in interface ActionProxypublic void setActionName(String actionName)
public ActionConfig getConfig()
ActionProxygetConfig in interface ActionProxypublic void setConfig(ActionConfig config)
public boolean getExecuteResult()
ActionProxygetExecuteResult in interface ActionProxypublic void setExecuteResult(boolean executeResult)
ActionProxysetExecuteResult in interface ActionProxyexecuteResult - true to also execute the Result.public ActionInvocation getInvocation()
ActionProxygetInvocation in interface ActionProxypublic void setInvocation(ActionInvocation invocation)
public String getNamespace()
ActionProxygetNamespace in interface ActionProxypublic void setNamespace(String namespace)
public String getMethod()
ActionProxyexecute will be invoked).getMethod in interface ActionProxypublic void setMethod(String method)
public boolean isMethodSpecified()
ActionProxyisMethodSpecified in interface ActionProxypublic void setMethodSpecified(boolean methodSpecified)
Copyright © 2000–2023 Apache Software Foundation. All rights reserved.