类 org.apache.struts2.dispatcher.Dispatcher
的使用

使用 Dispatcher 的软件包
org.apache.struts2.dispatcher Classes for action dispatching in Struts (the Controller part of MVC). 
org.apache.struts2.dispatcher.ng This package contains a reimagining of the traditional Struts filter dispatchers. 
org.apache.struts2.util   
 

org.apache.struts2.dispatcherDispatcher 的使用
 

返回 Dispatcherorg.apache.struts2.dispatcher 中的方法
static Dispatcher Dispatcher.getInstance()
          Provide the dispatcher instance for the current thread.
 

参数类型为 Dispatcherorg.apache.struts2.dispatcher 中的方法
 void DispatcherListener.dispatcherDestroyed(Dispatcher du)
          Called when the dispatcher is destroyed
 void DispatcherListener.dispatcherInitialized(Dispatcher du)
          Called when the dispatcher is initialized
static void Dispatcher.setInstance(Dispatcher instance)
          Store the dispatcher instance for this thread.
 

org.apache.struts2.dispatcher.ngDispatcher 的使用
 

返回 Dispatcherorg.apache.struts2.dispatcher.ng 中的方法
 Dispatcher InitOperations.findDispatcherOnThread()
           
 Dispatcher InitOperations.initDispatcher(HostConfig filterConfig)
          Creates and initializes the dispatcher
 

参数类型为 Dispatcherorg.apache.struts2.dispatcher.ng 中的方法
 List<Pattern> InitOperations.buildExcludedPatternsList(Dispatcher dispatcher)
          Extract a list of patterns to exclude from request filtering
 StaticContentLoader InitOperations.initStaticContentLoader(HostConfig filterConfig, Dispatcher dispatcher)
          Initializes the static content loader with the filter configuration
 

参数类型为 Dispatcherorg.apache.struts2.dispatcher.ng 中的构造方法
ExecuteOperations(javax.servlet.ServletContext servletContext, Dispatcher dispatcher)
           
PrepareOperations(javax.servlet.ServletContext servletContext, Dispatcher dispatcher)
           
 

org.apache.struts2.utilDispatcher 的使用
 

返回 Dispatcherorg.apache.struts2.util 中的方法
static Dispatcher StrutsTestCaseHelper.initDispatcher(javax.servlet.ServletContext ctx, Map<String,String> params)