Package org.apache.struts2.rest
Class RestActionProxyFactory
java.lang.Object
org.apache.struts2.DefaultActionProxyFactory
org.apache.struts2.rest.RestActionProxyFactory
- All Implemented Interfaces:
ActionProxyFactory
Factory that creates the
RestActionInvocation-
Field Summary
FieldsFields inherited from class org.apache.struts2.DefaultActionProxyFactory
container -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateActionProxy(String namespace, String actionName, String methodName, Map<String, Object> extraContext, boolean executeResult, boolean cleanupContext) Creates anActionProxyfor the given namespace and action name by looking up the configuration.The ActionProxy should be fully initialized when it is returned, including having anActionInvocationinstance associated.voidsetNamespace(String namespace) Methods inherited from class org.apache.struts2.DefaultActionProxyFactory
createActionInvocation, createActionProxy, createActionProxy, createActionProxy, createActionProxy, createActionProxy, setContainer, toString
-
Field Details
-
namespace
-
-
Constructor Details
-
RestActionProxyFactory
public RestActionProxyFactory()
-
-
Method Details
-
setNamespace
-
createActionProxy
public ActionProxy createActionProxy(String namespace, String actionName, String methodName, Map<String, Object> extraContext, boolean executeResult, boolean cleanupContext) Description copied from interface:ActionProxyFactoryCreates anActionProxyfor the given namespace and action name by looking up the configuration.The ActionProxy should be fully initialized when it is returned, including having anActionInvocationinstance associated.- Specified by:
createActionProxyin interfaceActionProxyFactory- Overrides:
createActionProxyin classDefaultActionProxyFactory- Parameters:
namespace- the namespace of the action, can be nullactionName- the name of the actionmethodName- the name of the method to executeextraContext- a Map of extra parameters to be provided to the ActionProxy, can be nullexecuteResult- flag which tells whether the result should be executed after the actioncleanupContext- flag which tells whether the original context should be preserved during execution of the proxy.- Returns:
- ActionProxy the created action proxy
-