Class ConfluenceStrutsDispatcher
- java.lang.Object
-
- org.apache.struts2.dispatcher.Dispatcher
-
- com.atlassian.confluence.impl.struts.ConfluenceStrutsDispatcher
-
public class ConfluenceStrutsDispatcher extends org.apache.struts2.dispatcher.Dispatcher- Since:
- 8.0.0 A Struts dispatcher to hook in its configuration and control struts lifecycle.
-
-
Field Summary
Fields Modifier and Type Field Description static StringHTTP_REQUEST_ATTR_KEY_WEB_INTERFACE_CONTEXT
-
Constructor Summary
Constructors Constructor Description ConfluenceStrutsDispatcher(javax.servlet.ServletContext servletContext, Map<String,String> initParams)Create the Dispatcher instance for a given ServletContext and set of initialization parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.opensymphony.xwork2.config.ConfigurationManagercreateConfigurationManager(String name)voidserviceAction(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.apache.struts2.dispatcher.mapper.ActionMapping mapping)Modifies super to place WebInterfaceContext into request, for use byConfluenceSitemeshDecoratorvoidsetValueStackFactory(com.opensymphony.xwork2.util.ValueStackFactory valueStackFactory)-
Methods inherited from class org.apache.struts2.dispatcher.Dispatcher
addDispatcherListener, cleanup, cleanUpAfterInit, cleanUpRequest, createContextMap, createContextMap, createContextMap, createStrutsXmlConfigurationProvider, getConfigurationManager, getContainer, getInstance, getLocale, getMultiPartRequest, getSaveDir, init, isDevMode, isHandleException, isMultipartRequest, isMultipartSupportEnabled, logConfigurationException, prepare, removeDispatcherListener, sendError, setConfigurationManagerFactory, setDefaultEncoding, setDefaultLocale, setDevMode, setDisableRequestAttributeValueStackLookup, setDispatcherErrorHandler, setHandleException, setInstance, setMultipartHandler, setMultipartSaveDir, setMultipartSupportEnabled, setMultipartValidationRegex, wrapRequest
-
-
-
-
Field Detail
-
HTTP_REQUEST_ATTR_KEY_WEB_INTERFACE_CONTEXT
public static final String HTTP_REQUEST_ATTR_KEY_WEB_INTERFACE_CONTEXT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ConfluenceStrutsDispatcher
public ConfluenceStrutsDispatcher(javax.servlet.ServletContext servletContext, Map<String,String> initParams)Create the Dispatcher instance for a given ServletContext and set of initialization parameters.- Parameters:
servletContext- Our servlet contextinitParams- The set of initialization parameters
-
-
Method Detail
-
setValueStackFactory
public void setValueStackFactory(com.opensymphony.xwork2.util.ValueStackFactory valueStackFactory)
- Overrides:
setValueStackFactoryin classorg.apache.struts2.dispatcher.Dispatcher
-
createConfigurationManager
protected com.opensymphony.xwork2.config.ConfigurationManager createConfigurationManager(String name)
- Overrides:
createConfigurationManagerin classorg.apache.struts2.dispatcher.Dispatcher
-
serviceAction
public void serviceAction(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.apache.struts2.dispatcher.mapper.ActionMapping mapping) throws javax.servlet.ServletExceptionModifies super to place WebInterfaceContext into request, for use byConfluenceSitemeshDecorator- Overrides:
serviceActionin classorg.apache.struts2.dispatcher.Dispatcher- Throws:
javax.servlet.ServletException
-
-