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 provide additional context for SiteMesh.
-
-
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.ConfigurationManager
createConfigurationManager(String name)
protected com.opensymphony.xwork2.ActionProxy
prepareActionProxy(Map<String,Object> extraContext, String actionNamespace, String actionName, String actionMethod)
void
serviceAction(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 byConfluenceSitemeshDecorator
-
Methods inherited from class org.apache.struts2.dispatcher.Dispatcher
addDispatcherListener, cleanup, cleanUpAfterInit, cleanUpRequest, clearInstance, createActionProxy, createContextMap, createContextMap, createJavaConfigurationProvider, createStrutsXmlConfigurationProvider, createStrutsXmlConfigurationProvider, getActionMapper, getActionProxyFactory, getConfigurationManager, getContainer, getInstance, getInstance, getLocale, getMultiPartRequest, getSaveDir, getStaticContentLoader, getValueStackFactory, init, isDevMode, isHandleException, isMultipartRequest, isMultipartSupportEnabled, isSameAction, logConfigurationException, prepare, removeDispatcherListener, sendError, setActionMapper, setActionProxyFactory, setDefaultEncoding, setDefaultLocale, setDevMode, setDisableRequestAttributeValueStackLookup, setDispatcherErrorHandler, setDispatchersParametersWorkaround, setHandleException, setInstance, setLocaleProviderFactory, setMultipartHandler, setMultipartSaveDir, setMultipartSupportEnabled, setMultipartValidationRegex, setObjectFactory, setStaticContentLoader, setThreadAllowlist, setValueStackFactory, wrapRequest
-
-
-
-
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
-
createConfigurationManager
protected com.opensymphony.xwork2.config.ConfigurationManager createConfigurationManager(String name)
- Overrides:
createConfigurationManager
in 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.ServletException
Modifies super to place WebInterfaceContext into request, for use byConfluenceSitemeshDecorator
- Overrides:
serviceAction
in classorg.apache.struts2.dispatcher.Dispatcher
- Throws:
javax.servlet.ServletException
-
-