Home » apache-tomcat-6.0.26-src » org.apache » catalina » startup » [javadoc | source]
org.apache.catalina.startup
public class: ContextConfig [javadoc | source]
java.lang.Object
   org.apache.catalina.startup.ContextConfig

All Implemented Interfaces:
    LifecycleListener

Startup event listener for a Context that configures the properties of that Context, and the associated defined servlets.
Nested Class Summary:
protected class  ContextConfig.ContextErrorHandler   
Field Summary
protected static  Log log     
protected  Map customAuthenticators    Custom mappings of login methods to authenticators 
protected static  Properties authenticators    The set of Authenticators that we know how to configure. The key is the name of the implemented authentication method, and the value is the fully qualified Java class name of the corresponding Valve. 
protected  Context context    The Context we are associated with. 
protected  String defaultContextXml    The default web application's context file location. 
protected  String defaultWebXml    The default web application's deployment descriptor location. 
protected  boolean ok    Track any fatal errors during startup configuration processing. 
protected  SAXParseException parseException    Any parse error which occurred while parsing XML descriptors. 
protected  String originalDocBase    Original docBase. 
protected static final  StringManager sm    The string resources for this package. 
protected static  Digester contextDigester    The Digester we will use to process web application context files. 
protected static  Digester webDigester    The Digester we will use to process web application deployment descriptor files. 
protected static  WebRuleSet webRuleSet    The Rule used to parse the web.xml 
protected static  boolean xmlValidation    Attribute value used to turn on/off XML validation 
protected static  boolean xmlNamespaceAware    Attribute value used to turn on/off XML namespace awarenes. 
protected static  long deploymentCount    Deployment count. 
protected static final  LoginConfig DUMMY_LOGIN_CONFIG     
Method from org.apache.catalina.startup.ContextConfig Summary:
antiLocking,   applicationAnnotationsConfig,   applicationWebConfig,   authenticatorConfig,   beforeStart,   contextConfig,   createContextDigester,   createWebDigester,   createWebXmlDigester,   defaultWebConfig,   destroy,   fixDocBase,   getBaseDir,   getConfigBase,   getDefaultContextXml,   getDefaultWebXml,   getHostConfigPath,   init,   lifecycleEvent,   processContextConfig,   processDefaultWebConfig,   setCustomAuthenticators,   setDefaultContextXml,   setDefaultWebXml,   start,   stop,   validateSecurityRoles
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.catalina.startup.ContextConfig Detail:
 protected  void antiLocking() throws IOException 
 protected  void applicationAnnotationsConfig() 
    Process the application classes annotations, if it exists.
 protected  void applicationWebConfig() 
    Process the application configuration file, if it exists.
 protected synchronized  void authenticatorConfig() 
    Set up an Authenticator automatically if required, and one has not already been configured.
 protected synchronized  void beforeStart() 
    Process a "before start" event for this Context.
 protected  void contextConfig() 
    Process the default configuration file, if it exists.
 protected Digester createContextDigester() 
    Create (if necessary) and return a Digester configured to process the context configuration descriptor for an application.
 protected static Digester createWebDigester() 
    Create (if necessary) and return a Digester configured to process the web application deployment descriptor (web.xml).
 public static Digester createWebXmlDigester(boolean namespaceAware,
    boolean validation) 
    Create (if necessary) and return a Digester configured to process the web application deployment descriptor (web.xml).
 protected  void defaultWebConfig() 
    Process the default configuration file, if it exists. The default config must be read with the container loader - so container servlets can be loaded
 protected synchronized  void destroy() 
    Process a "destroy" event for this Context.
 protected  void fixDocBase() throws IOException 
    Adjust docBase.
 protected String getBaseDir() 
 protected File getConfigBase() 
    Get config base.
 public String getDefaultContextXml() 
    Return the location of the default context file
 public String getDefaultWebXml() 
    Return the location of the default deployment descriptor
 protected String getHostConfigPath(String resourceName) 
 protected  void init() 
    Process a "init" event for this Context.
 public  void lifecycleEvent(LifecycleEvent event) 
    Process events for an associated Context.
 protected  void processContextConfig(File baseDir,
    String resourceName) 
    Process a context.xml.
 protected  void processDefaultWebConfig(Digester digester,
    InputStream stream,
    InputSource source) 
    Process a default web.xml.
 public  void setCustomAuthenticators(Map customAuthenticators) 
    Sets custom mappings of login methods to authenticators.
 public  void setDefaultContextXml(String path) 
    Set the location of the default context file
 public  void setDefaultWebXml(String path) 
    Set the location of the default deployment descriptor
 protected synchronized  void start() 
    Process a "start" event for this Context.
 protected synchronized  void stop() 
    Process a "stop" event for this Context.
 protected  void validateSecurityRoles() 
    Validate the usage of security role names in the web application deployment descriptor. If any problems are found, issue warning messages (for backwards compatibility) and add the missing roles. (To make these problems fatal instead, simply set the ok instance variable to false as well).