Package org.apache.struts2
Class DefaultActionProxyFactory
java.lang.Object
org.apache.struts2.DefaultActionProxyFactory
- All Implemented Interfaces:
- ActionProxyFactory
- Direct Known Subclasses:
- StrutsActionProxyFactory
Default factory for 
ActionProxyFactory.- Author:
- Jason Carreira
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected ActionInvocationcreateActionInvocation(Map<String, Object> extraContext, boolean pushAction) createActionProxy(String namespace, String actionName, String methodName, Map<String, Object> extraContext) 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.createActionProxy(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.createActionProxy(String namespace, String actionName, Map<String, Object> extraContext, boolean executeResult, boolean cleanupContext) createActionProxy(ActionInvocation inv, String namespace, String actionName, boolean executeResult, boolean cleanupContext) createActionProxy(ActionInvocation inv, String namespace, String actionName, String methodName, 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 passedActionInvocationinstance.voidsetContainer(Container container) toString()
- 
Field Details- 
container
 
- 
- 
Constructor Details- 
DefaultActionProxyFactorypublic DefaultActionProxyFactory()
 
- 
- 
Method Details- 
setContainer
- 
createActionProxy
- 
createActionProxypublic ActionProxy createActionProxy(String namespace, String actionName, String methodName, Map<String, Object> extraContext) 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.Note: This is the most used create method. - Specified by:
- createActionProxyin interface- ActionProxyFactory
- Parameters:
- namespace- the namespace of the action, can be null
- actionName- the name of the action
- methodName- the name of the method to execute
- extraContext- a Map of extra parameters to be provided to the ActionProxy, can be null
- Returns:
- ActionProxy the created action proxy
 
- 
createActionProxy
- 
createActionProxypublic 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 interface- ActionProxyFactory
- Parameters:
- namespace- the namespace of the action, can be null
- actionName- the name of the action
- methodName- the name of the method to execute
- extraContext- a Map of extra parameters to be provided to the ActionProxy, can be null
- executeResult- flag which tells whether the result should be executed after the action
- cleanupContext- flag which tells whether the original context should be preserved during execution of the proxy.
- Returns:
- ActionProxy the created action proxy
 
- 
createActionInvocationprotected ActionInvocation createActionInvocation(Map<String, Object> extraContext, boolean pushAction) 
- 
createActionProxypublic ActionProxy createActionProxy(ActionInvocation inv, String namespace, String actionName, boolean executeResult, boolean cleanupContext) 
- 
createActionProxypublic ActionProxy createActionProxy(ActionInvocation inv, String namespace, String actionName, String methodName, 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 passedActionInvocationinstance.- Specified by:
- createActionProxyin interface- ActionProxyFactory
- Parameters:
- inv- the action invocation instance to associate with
- namespace- the namespace of the action, can be null
- actionName- the name of the action
- methodName- the name of the method to execute
- executeResult- flag which tells whether the result should be executed after the action
- cleanupContext- flag which tells whether the original context should be preserved during execution of the proxy.
- Returns:
- ActionProxy the created action proxy
 
- 
toString
 
-