org.apache.catalina.startup
public class ContextConfig extends Object implements LifecycleListener
Version: $Revision: 892815 $ $Date: 2009-12-21 14:27:57 +0100 (Mon, 21 Dec 2009) $
Nested Class Summary | |
---|---|
protected class | ContextConfig.ContextErrorHandler |
Field Summary | |
---|---|
protected static Properties | authenticators
The set of Authenticators that we know how to configure. |
protected Context | context
The Context we are associated with. |
protected static Digester | contextDigester
The Digester we will use to process web application
context files. |
protected Map | customAuthenticators
Custom mappings of login methods to authenticators |
protected String | defaultContextXml
The default web application's context file location. |
protected String | defaultWebXml
The default web application's deployment descriptor location. |
protected static long | deploymentCount
Deployment count. |
protected static LoginConfig | DUMMY_LOGIN_CONFIG |
protected static Log | log |
protected boolean | ok
Track any fatal errors during startup configuration processing. |
protected String | originalDocBase
Original docBase. |
protected SAXParseException | parseException
Any parse error which occurred while parsing XML descriptors. |
protected static StringManager | sm
The string resources for this package. |
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 | xmlNamespaceAware
Attribute value used to turn on/off XML namespace awarenes. |
protected static boolean | xmlValidation
Attribute value used to turn on/off XML validation |
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 static Digester | createWebDigester()
Create (if necessary) and return a Digester configured to process the
web application deployment descriptor (web.xml). |
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.
|
protected void | destroy()
Process a "destroy" event for this Context. |
protected void | fixDocBase()
Adjust docBase. |
protected String | getBaseDir() |
protected File | getConfigBase()
Get config base. |
String | getDefaultContextXml()
Return the location of the default context file |
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. |
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. |
void | setCustomAuthenticators(Map customAuthenticators)
Sets custom mappings of login methods to authenticators.
|
void | setDefaultContextXml(String path)
Set the location of the default context file
|
void | setDefaultWebXml(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. |
Digester
we will use to process web application
context files.Digester
we will use to process web application
deployment descriptor files.Rule
used to parse the web.xmlParameters: event The lifecycle event that has occurred
Parameters: customAuthenticators Custom mappings of login methods to authenticators
Parameters: path Absolute/relative path to the default context.xml
Parameters: path Absolute/relative path to the default web.xml
ok
instance variable to false
as well).