org.apache.struts2.dispatcher.ng
类 InitOperations

java.lang.Object
  继承者 org.apache.struts2.dispatcher.ng.InitOperations

public class InitOperations
extends Object

Contains initialization operations


构造方法摘要
InitOperations()
           
 
方法摘要
 List<Pattern> buildExcludedPatternsList(Dispatcher dispatcher)
          Extract a list of patterns to exclude from request filtering
 void cleanup()
           
 Dispatcher findDispatcherOnThread()
           
 Dispatcher initDispatcher(HostConfig filterConfig)
          Creates and initializes the dispatcher
 void initLogging(HostConfig filterConfig)
          Initializes the internal Struts logging
 StaticContentLoader initStaticContentLoader(HostConfig filterConfig, Dispatcher dispatcher)
          Initializes the static content loader with the filter configuration
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

InitOperations

public InitOperations()
方法详细信息

initLogging

public void initLogging(HostConfig filterConfig)
Initializes the internal Struts logging


initDispatcher

public Dispatcher initDispatcher(HostConfig filterConfig)
Creates and initializes the dispatcher


initStaticContentLoader

public StaticContentLoader initStaticContentLoader(HostConfig filterConfig,
                                                   Dispatcher dispatcher)
Initializes the static content loader with the filter configuration


findDispatcherOnThread

public Dispatcher findDispatcherOnThread()
返回:
The dispatcher on the thread.
抛出:
IllegalStateException - If there is no dispatcher available

cleanup

public void cleanup()

buildExcludedPatternsList

public List<Pattern> buildExcludedPatternsList(Dispatcher dispatcher)
Extract a list of patterns to exclude from request filtering

参数:
dispatcher - The dispatcher to check for exclude pattern configuration
返回:
a List of Patterns for request to exclude if apply, or null
另请参见:
StrutsConstants.STRUTS_ACTION_EXCLUDE_PATTERN