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
ActionProxy
execute
in interface ActionProxy
Exception
- can be thrown.ActionInvocation
public void setReturnedResult(String returnedResult)
public boolean isExecutedCalled()
public Object getAction()
ActionProxy
getAction
in interface ActionProxy
public void setAction(Object action)
public String getActionName()
ActionProxy
getActionName
in interface ActionProxy
public void setActionName(String actionName)
public ActionConfig getConfig()
ActionProxy
getConfig
in interface ActionProxy
public void setConfig(ActionConfig config)
public boolean getExecuteResult()
ActionProxy
getExecuteResult
in interface ActionProxy
public void setExecuteResult(boolean executeResult)
ActionProxy
setExecuteResult
in interface ActionProxy
executeResult
- true to also execute the Result.public ActionInvocation getInvocation()
ActionProxy
getInvocation
in interface ActionProxy
public void setInvocation(ActionInvocation invocation)
public String getNamespace()
ActionProxy
getNamespace
in interface ActionProxy
public void setNamespace(String namespace)
public String getMethod()
ActionProxy
execute
will be invoked).getMethod
in interface ActionProxy
public void setMethod(String method)
public boolean isMethodSpecified()
ActionProxy
isMethodSpecified
in interface ActionProxy
public void setMethodSpecified(boolean methodSpecified)
Copyright © 2000–2020 Apache Software Foundation. All rights reserved.