org.apache.struts2.dispatcher.ng
Class InitOperations

java.lang.Object
  extended by org.apache.struts2.dispatcher.ng.InitOperations

public class InitOperations
extends Object

Contains initialization operations


Constructor Summary
InitOperations()
           
 
Method Summary
 List<Pattern> buildExcludedPatternsList(Dispatcher dispatcher)
          Extract a list of patterns to exclude from request filtering
private  List<Pattern> buildExcludedPatternsList(String patterns)
           
 void cleanup()
           
private  Dispatcher createDispatcher(HostConfig filterConfig)
          Create a Dispatcher
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InitOperations

public InitOperations()
Method Detail

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()
Returns:
The dispatcher on the thread.
Throws:
IllegalStateException - If there is no dispatcher available

createDispatcher

private Dispatcher createDispatcher(HostConfig filterConfig)
Create a Dispatcher


cleanup

public void cleanup()

buildExcludedPatternsList

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

Parameters:
dispatcher - The dispatcher to check for exclude pattern configuration
Returns:
a List of Patterns for request to exclude if apply, or null
See Also:
StrutsConstants.STRUTS_ACTION_EXCLUDE_PATTERN

buildExcludedPatternsList

private List<Pattern> buildExcludedPatternsList(String patterns)


Copyright © 2000-2009 Apache Software Foundation. All Rights Reserved.