| 
 | Apache Tomcat 6.0.53 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.catalina.startup.ContextConfig
public class ContextConfig
Startup event listener for a Context that configures the properties of that Context, and the associated defined servlets.
| Nested Class Summary | |
|---|---|
| protected  class | ContextConfig.ContextErrorHandlerDeprecated. Unused. Use XmlErrorHandler. Will be removed in
             Tomcat 7.0.x | 
| Field Summary | |
|---|---|
| protected static java.util.Properties | authenticatorsThe set of Authenticators that we know how to configure. | 
| protected  Context | contextThe Context we are associated with. | 
| protected static Digester | contextDigesterThe Digesterwe will use to process web application
 context files. | 
| protected  java.util.Map | customAuthenticatorsCustom mappings of login methods to authenticators | 
| protected  java.lang.String | defaultContextXmlThe default web application's context file location. | 
| protected  java.lang.String | defaultWebXmlThe default web application's deployment descriptor location. | 
| protected static long | deploymentCountDeployment count. | 
| protected static LoginConfig | DUMMY_LOGIN_CONFIG | 
| protected static Log | log | 
| protected  boolean | okTrack any fatal errors during startup configuration processing. | 
| protected  java.lang.String | originalDocBaseOriginal docBase. | 
| protected  org.xml.sax.SAXParseException | parseExceptionDeprecated. Unused. Will be removed in Tomcat 7.0.x. | 
| protected static StringManager | smThe string resources for this package. | 
| protected  Digester | webDigesterThe Digesterwe will use to process web application
 deployment descriptor files. | 
| protected  WebRuleSet | webRuleSet | 
| protected static boolean | xmlNamespaceAwareDeprecated. Unused. Will be removed in Tomcat 7.0.x. | 
| protected static boolean | xmlValidationDeprecated. Unused. Will be removed in Tomcat 7.0.x. | 
| Constructor Summary | |
|---|---|
| ContextConfig() | |
| Method Summary | |
|---|---|
| protected  void | antiLocking() | 
| protected  void | applicationAnnotationsConfig()Process the application classes annotations, if it exists. | 
| protected  void | applicationWebConfig()Process the application configuration file, if it exists. | 
| protected  void | authenticatorConfig()Set up an Authenticator automatically if required, and one has not already been configured. | 
| protected  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  void | createWebXmlDigester(boolean namespaceAware,
                     boolean validation)Create 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. | 
| protected  void | destroy()Process a "destroy" event for this Context. | 
| protected  void | fixDocBase()Adjust docBase. | 
| protected  java.lang.String | getBaseDir() | 
| protected  java.io.File | getConfigBase()Get config base. | 
|  java.lang.String | getDefaultContextXml()Return the location of the default context file | 
|  java.lang.String | getDefaultWebXml()Return the location of the default deployment descriptor | 
| protected  java.lang.String | getHostConfigPath(java.lang.String resourceName) | 
| protected  void | init()Process a "init" event for this Context. | 
|  void | lifecycleEvent(LifecycleEvent event)Process events for an associated Context. | 
| protected  void | processContextConfig(java.io.File baseDir,
                     java.lang.String resourceName)Process a context.xml. | 
| protected  void | processDefaultWebConfig(Digester digester,
                        java.io.InputStream stream,
                        org.xml.sax.InputSource source)Process a default web.xml. | 
|  void | setCustomAuthenticators(java.util.Map customAuthenticators)Sets custom mappings of login methods to authenticators. | 
|  void | setDefaultContextXml(java.lang.String path)Set the location of the default context file | 
|  void | setDefaultWebXml(java.lang.String path)Set the location of the default deployment descriptor | 
| protected  void | start()Process a "start" event for this Context. | 
| protected  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. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected static Log log
protected static final StringManager sm
protected java.util.Map customAuthenticators
protected static java.util.Properties authenticators
protected Context context
protected java.lang.String defaultContextXml
protected java.lang.String defaultWebXml
protected boolean ok
@Deprecated protected org.xml.sax.SAXParseException parseException
protected java.lang.String originalDocBase
protected static Digester contextDigester
Digester we will use to process web application
 context files.
protected Digester webDigester
Digester we will use to process web application
 deployment descriptor files.
protected WebRuleSet webRuleSet
@Deprecated protected static boolean xmlValidation
@Deprecated protected static boolean xmlNamespaceAware
protected static long deploymentCount
protected static final LoginConfig DUMMY_LOGIN_CONFIG
| Constructor Detail | 
|---|
public ContextConfig()
| Method Detail | 
|---|
public java.lang.String getDefaultWebXml()
public void setDefaultWebXml(java.lang.String path)
path - Absolute/relative path to the default web.xmlpublic java.lang.String getDefaultContextXml()
public void setDefaultContextXml(java.lang.String path)
path - Absolute/relative path to the default context.xmlpublic void setCustomAuthenticators(java.util.Map customAuthenticators)
customAuthenticators - Custom mappings of login methods to
 authenticatorspublic void lifecycleEvent(LifecycleEvent event)
lifecycleEvent in interface LifecycleListenerevent - The lifecycle event that has occurredprotected void applicationAnnotationsConfig()
protected void applicationWebConfig()
protected void authenticatorConfig()
protected void createWebXmlDigester(boolean namespaceAware,
                                    boolean validation)
protected Digester createContextDigester()
protected java.lang.String getBaseDir()
protected void defaultWebConfig()
protected void processDefaultWebConfig(Digester digester,
                                       java.io.InputStream stream,
                                       org.xml.sax.InputSource source)
protected void contextConfig()
protected void processContextConfig(java.io.File baseDir,
                                    java.lang.String resourceName)
protected void fixDocBase()
                   throws java.io.IOException
java.io.IOException
protected void antiLocking()
                    throws java.io.IOException
java.io.IOExceptionprotected void init()
protected void beforeStart()
protected void start()
protected void stop()
protected void destroy()
protected void validateSecurityRoles()
ok
 instance variable to false as well).
protected java.io.File getConfigBase()
protected java.lang.String getHostConfigPath(java.lang.String resourceName)
| 
 | Apache Tomcat 6.0.53 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||