Class 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

      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)  
      void init()  
      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 by ConfluenceSitemeshDecorator
      • 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, 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 context
        initParams - The set of initialization parameters
    • Method Detail

      • init

        public void init()
        Overrides:
        init in class org.apache.struts2.dispatcher.Dispatcher
      • createConfigurationManager

        protected com.opensymphony.xwork2.config.ConfigurationManager createConfigurationManager​(String name)
        Overrides:
        createConfigurationManager in class org.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 by ConfluenceSitemeshDecorator
        Overrides:
        serviceAction in class org.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:
        prepareActionProxy in class org.apache.struts2.dispatcher.Dispatcher