public class PrefixBasedActionProxyFactory extends DefaultActionProxyFactory
Prefix based factory should be used with PrefixBasedActionMapper
to use appropriate ActionProxyFactory
connected with given
ActionMapper
Add below entry to struts.xml to enable the factory:
<constant name="struts.actionProxyFactory" value="prefix"/>
The factory will use the same set of patterns as defined with:
<constant name="struts.mapper.prefixMapping" value="..."/>
container
Constructor and Description |
---|
PrefixBasedActionProxyFactory() |
Modifier and Type | Method and Description |
---|---|
ActionProxy |
createActionProxy(String namespace,
String actionName,
String methodName,
Map<String,Object> extraContext,
boolean executeResult,
boolean cleanupContext)
Creates an
ActionProxy for the given namespace and action name by looking up the configuration.The ActionProxy
should be fully initialized when it is returned, including having an ActionInvocation instance associated. |
void |
setActionProxyFactory(ActionProxyFactory factory) |
void |
setContainer(Container container) |
void |
setPrefixBasedActionProxyFactories(String list) |
createActionInvocation, createActionProxy, createActionProxy, createActionProxy, createActionProxy, createActionProxy, toString
public void setContainer(Container container)
setContainer
in class DefaultActionProxyFactory
public void setActionProxyFactory(ActionProxyFactory factory)
public void setPrefixBasedActionProxyFactories(String list)
public ActionProxy createActionProxy(String namespace, String actionName, String methodName, Map<String,Object> extraContext, boolean executeResult, boolean cleanupContext)
ActionProxyFactory
ActionProxy
for the given namespace and action name by looking up the configuration.The ActionProxy
should be fully initialized when it is returned, including having an ActionInvocation
instance associated.createActionProxy
in interface ActionProxyFactory
createActionProxy
in class DefaultActionProxyFactory
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.Copyright © 2000–2016 Apache Software Foundation. All rights reserved.