Package org.apache.struts2.dispatcher
Class InitOperations
java.lang.Object
org.apache.struts2.dispatcher.InitOperations
Contains initialization operations
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
cleanup()
protected Dispatcher
createDispatcher
(HostConfig filterConfig) Create aDispatcher
initDispatcher
(HostConfig filterConfig) Creates and initializes the dispatcherinitStaticContentLoader
(HostConfig filterConfig, Dispatcher dispatcher) Initializes the static content loader with the filter configuration
-
Constructor Details
-
InitOperations
public InitOperations()
-
-
Method Details
-
initDispatcher
Creates and initializes the dispatcher- Parameters:
filterConfig
- host configuration- Returns:
- the dispatcher
-
initStaticContentLoader
Initializes the static content loader with the filter configuration- Parameters:
filterConfig
- host configurationdispatcher
- the dispatcher- Returns:
- the static content loader
-
findDispatcherOnThread
- Returns:
- The dispatcher on the thread.
- Throws:
IllegalStateException
- If there is no dispatcher available
-
createDispatcher
Create aDispatcher
- Parameters:
filterConfig
- host configuration- Returns:
- The dispatcher on the thread.
-
cleanup
public void cleanup()
-