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.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.struts2.dispatcher.Dispatcher
org.apache.struts2.dispatcher.Dispatcher.Locator -
Field Summary
Fields inherited from class org.apache.struts2.dispatcher.Dispatcher
configurationManager, initParams, MULTIPART_FORM_DATA_REGEX, REQUEST_POST_METHOD, servletContext -
Constructor Summary
ConstructorsConstructorDescriptionConfluenceStrutsDispatcher(javax.servlet.ServletContext servletContext, Map<String, String> initParams) Create the Dispatcher instance for a given ServletContext and set of initialization parameters. -
Method Summary
Modifier and TypeMethodDescriptionprotected com.opensymphony.xwork2.config.ConfigurationManagervoidinit()protected com.opensymphony.xwork2.ActionProxyprepareActionProxy(Map<String, Object> extraContext, String actionNamespace, String actionName, String actionMethod) 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 byConfluenceSitemeshDecoratorMethods inherited from class org.apache.struts2.dispatcher.Dispatcher
addDispatcherListener, cleanup, cleanUpAfterInit, cleanUpRequest, clearInstance, createActionProxy, createContextMap, createContextMap, createJavaConfigurationProvider, createStrutsXmlConfigurationProvider, createStrutsXmlConfigurationProvider, getActionExcludedPatterns, getActionMapper, getActionProxyFactory, getConfigurationManager, getContainer, getInstance, getInstance, getLocale, getMultiPartRequest, getSaveDir, getStaticContentLoader, getValueStackFactory, isDevMode, isHandleException, isMultipartRequest, isMultipartSupportEnabled, isSameAction, logConfigurationException, prepare, removeDispatcherListener, sendError, setActionExcludedPatterns, setActionExcludedPatternsSeparator, setActionMapper, setActionProxyFactory, setDefaultEncoding, setDefaultLocale, setDevMode, setDisableRequestAttributeValueStackLookup, setDispatcherErrorHandler, setDispatchersParametersWorkaround, setHandleException, setInstance, setLocaleProviderFactory, setMultipartHandler, setMultipartSaveDir, setMultipartSupportEnabled, setMultipartValidationRegex, setObjectFactory, setStaticContentLoader, setThreadAllowlist, setValueStackFactory, wrapRequest
-
Constructor Details
-
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 Details
-
init
public void init()- Overrides:
initin 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.ServletException Modifies super to place WebInterfaceContext into request, for use byConfluenceSitemeshDecorator- Overrides:
serviceActionin classorg.apache.struts2.dispatcher.Dispatcher- Throws:
javax.servlet.ServletException
-
prepareActionProxy
protected com.opensymphony.xwork2.ActionProxy prepareActionProxy(Map<String, Object> extraContext, String actionNamespace, String actionName, String actionMethod) - Overrides:
prepareActionProxyin classorg.apache.struts2.dispatcher.Dispatcher
-