## Uses of Class
org.apache.struts2.dispatcher.Dispatcher

- Packages that use Dispatcher
  Package | Description
  --- | ---
  org.apache.struts2.dispatcher | This package contains a reimagining of the traditional Struts filter dispatchers.
  org.apache.struts2.dispatcher.filter |
  org.apache.struts2.util |

- - ### Uses of Dispatcher in org.apache.struts2.dispatcher

    Methods in org.apache.struts2.dispatcher that return Dispatcher
    Modifier and Type | Method and Description
    --- | ---
    `protected Dispatcher` | InitOperations.`createDispatcher(HostConfig filterConfig)` Create a `Dispatcher`
    `Dispatcher` | InitOperations.`findDispatcherOnThread()`
    `static Dispatcher` | Dispatcher.`getInstance()` Provide the dispatcher instance for the current thread.
    `static Dispatcher` | Dispatcher.`getInstance(javax.servlet.ServletContext servletContext)`
    `Dispatcher` | InitOperations.`initDispatcher(HostConfig filterConfig)` Creates and initializes the dispatcher

    Methods in org.apache.struts2.dispatcher with parameters of type Dispatcher
    Modifier and Type | Method and Description
    --- | ---
    `List<Pattern>` | InitOperations.`buildExcludedPatternsList(Dispatcher dispatcher)` Deprecated. since 6.4.0, use `getActionExcludedPatterns()` instead.
    `void` | DispatcherListener.`dispatcherDestroyed(Dispatcher du)` Called when the dispatcher is destroyed
    `void` | DispatcherListener.`dispatcherInitialized(Dispatcher du)` Called when the dispatcher is initialized
    `StaticContentLoader` | InitOperations.`initStaticContentLoader(HostConfig filterConfig, Dispatcher dispatcher)` Initializes the static content loader with the filter configuration
    `static void` | Dispatcher.`setInstance(Dispatcher instance)` Store the dispatcher instance for this thread.

    Constructors in org.apache.struts2.dispatcher with parameters of type Dispatcher
    Constructor and Description
    `ExecuteOperations(Dispatcher dispatcher)`
    `PrepareOperations(Dispatcher dispatcher)`

  - ### Uses of Dispatcher in org.apache.struts2.dispatcher.filter

    Methods in org.apache.struts2.dispatcher.filter with parameters of type Dispatcher
    Modifier and Type | Method and Description
    --- | ---
    `protected ExecuteOperations` | StrutsPrepareAndExecuteFilter.`createExecuteOperations(Dispatcher dispatcher)` Creates a new instance of `ExecuteOperations` to be used during initialising `Dispatcher`
    `protected ExecuteOperations` | StrutsExecuteFilter.`createExecuteOperations(Dispatcher dispatcher)` Creates a new instance of `ExecuteOperations` to be used during initialising `Dispatcher`
    `protected PrepareOperations` | StrutsPrepareAndExecuteFilter.`createPrepareOperations(Dispatcher dispatcher)` Creates a new instance of `PrepareOperations` to be used during initialising `Dispatcher`
    `protected PrepareOperations` | StrutsExecuteFilter.`createPrepareOperations(Dispatcher dispatcher)` Creates a new instance of `PrepareOperations` to be used during initialising `Dispatcher`
    `protected PrepareOperations` | StrutsPrepareFilter.`createPrepareOperations(Dispatcher dispatcher)` Creates a new instance of `PrepareOperations` to be used during initialising `Dispatcher`
    `protected void` | StrutsPrepareAndExecuteFilter.`postInit(Dispatcher dispatcher, javax.servlet.FilterConfig filterConfig)` Callback for post initialization
    `protected void` | StrutsPrepareFilter.`postInit(Dispatcher dispatcher, javax.servlet.FilterConfig filterConfig)` Callback for post initialization

  - ### Uses of Dispatcher in org.apache.struts2.util

    Methods in org.apache.struts2.util that return Dispatcher
    Modifier and Type | Method and Description
    --- | ---
    `static Dispatcher` | StrutsTestCaseHelper.`initDispatcher(javax.servlet.ServletContext ctx, Map<String,String> params)`

    Methods in org.apache.struts2.util with parameters of type Dispatcher
    Modifier and Type | Method and Description
    --- | ---
    `static void` | StrutsTestCaseHelper.`tearDown(Dispatcher dispatcher)`

Copyright © 2000–2026 Apache Software Foundation. All rights reserved.