Class 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.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.apache.struts2.dispatcher.Dispatcher

        org.apache.struts2.dispatcher.Dispatcher.Locator
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String HTTP_REQUEST_ATTR_KEY_WEB_INTERFACE_CONTEXT  
      • 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 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
      void setValueStackFactory​(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 context
        initParams - The set of initialization parameters
    • Method Detail

      • setValueStackFactory

        public void setValueStackFactory​(com.opensymphony.xwork2.util.ValueStackFactory valueStackFactory)
        Overrides:
        setValueStackFactory 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