public class PrefixBasedActionProxyFactory extends StrutsActionProxyFactory implements Initializable
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 |
init()
Use this method to initialise your bean, the whole dependency graph was already built
|
void |
setContainer(Container container) |
void |
setPrefixBasedActionProxyFactories(String list) |
createActionProxy
createActionInvocation, createActionProxy, createActionProxy, createActionProxy, createActionProxy, toString
public void setContainer(Container container)
setContainer
in class DefaultActionProxyFactory
public void setPrefixBasedActionProxyFactories(String list)
public void init()
Initializable
init
in interface Initializable
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–2020 Apache Software Foundation. All rights reserved.