org.apache.struts2.impl
Class PrefixBasedActionProxyFactory
java.lang.Object
com.opensymphony.xwork2.DefaultActionProxyFactory
org.apache.struts2.impl.PrefixBasedActionProxyFactory
- All Implemented Interfaces:
- ActionProxyFactory
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="..."/>
PrefixBasedActionProxyFactory
public PrefixBasedActionProxyFactory()
setContainer
public void setContainer(Container container)
- Overrides:
setContainer
in class DefaultActionProxyFactory
setActionProxyFactory
public void setActionProxyFactory(ActionProxyFactory factory)
setPrefixBasedActionProxyFactories
public void setPrefixBasedActionProxyFactories(String list)
createActionProxy
public ActionProxy createActionProxy(String namespace,
String actionName,
String methodName,
Map<String,Object> extraContext,
boolean executeResult,
boolean cleanupContext)
- Specified by:
createActionProxy
in interface ActionProxyFactory
- Overrides:
createActionProxy
in class DefaultActionProxyFactory
Copyright © 2000–2017 Apache Software Foundation. All rights reserved.