| Modifier and Type | Class and Description |
|---|---|
| private class | ContextConfig.
Executable task to scan a segment for annotations. |
| public static interface | |
| private static class | |
| private static class | |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private File | antiLockingDocBase
Anti-locking docBase. |
| protected static final Properties | authenticators
The set of Authenticators that we know how to configure. |
| protected volatile Context | context
The Context we are associated with. |
| protected Map | customAuthenticators
Custom mappings of login methods to authenticators |
| protected String | defaultWebXml
The default web application's deployment descriptor location. |
| protected static long | deploymentCount
Deployment count. |
| protected static final LoginConfig | |
| private static final Set | EMPTY_SCI_SET
Set used as the value for |
| protected boolean | handlesTypesAnnotations
Flag that indicates if at least one |
| protected boolean | handlesTypesNonAnnotations
Flag that indicates if at least one |
| protected static final Map | hostWebXmlCache
Cache of default web.xml fragments per Host |
| protected final Map | initializerClassMap
Map of ServletContainerInitializer to classes they expressed interest in. |
| private static final Log | |
| protected boolean | ok
Track any fatal errors during startup configuration processing. |
| protected String | originalDocBase
Original docBase. |
| protected static final StringManager | sm
The string resources for this package. |
| protected final Map | typeInitializerMap
Map of Types to ServletContainerInitializer that are interested in those types. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| protected void | |
| protected void | authenticatorConfig()
Set up an Authenticator automatically if required, and one has not already been configured. |
| protected synchronized void | |
| protected void | checkHandlesTypes(JavaClass
the class to check javaClass, Map<String, ContextConfig.a class cache javaClassCacheFor classes packaged with the web application, the class and each super class needs to be checked for a match
with |
| private String | classHierarchyToString(String className, ContextConfig.
|
| private void | |
| protected synchronized void | |
| protected synchronized void | |
| protected void | contextConfig(Digester
The digester that will be used for XML parsing digester)Process the default configuration file, if it exists. |
| private void | |
| private void | |
| protected Digester | Returns: the digester for context.xml filesCreate (if necessary) and return a Digester configured to process the context configuration descriptor for an application. |
| protected WebXml | |
| protected synchronized void | |
| protected void | |
| protected void | |
| protected void | |
| private static String | |
| public String | |
| protected InputSource | Returns: an input source to the context web.xmlIdentify the application web.xml to be used and obtain an input source for it. |
| protected File | |
| protected static String | |
| public String | Returns: The path to the default web.xml. If not absolute, it is relative to CATALINA_BASE.Obtain the location of the default deployment descriptor. |
| private WebXml | |
| protected boolean | |
| protected File | |
| protected String | |
| protected InputSource | Returns: an input source to the default web.xmlIdentify the default web.xml to be used and obtain an input source for it. |
| protected File | |
| protected InputSource | Returns: an input source to the default per host web.xmlIdentify the host web.xml to be used and obtain an input source for it. |
| private Set | |
| private Server | |
| private WebXml | |
| protected boolean | |
| protected InputSource | Returns: the input sourceName of the file (possibly with one or more leading path segments) to read filename, boolean true if processing a shared resource, false if processing a host based resource global)Utility method to create an input source from the specified XML file. |
| protected synchronized void | |
| public void | lifecycleEvent(LifecycleEvent
The lifecycle event that has occurred event)Implements org. Process events for an associated Context. |
| private void | populateJavaClassCache(String className, JavaClass javaClass, Map<String, ContextConfig.
|
| private void | populateJavaClassCache(String className, Map<String, ContextConfig.
|
| private void | populateSCIsForCacheEntry(ContextConfig.
|
| protected void | processAnnotations(Set<WebXml> fragments, boolean handlesTypesOnly, Map<String, ContextConfig.
|
| protected void | processAnnotationsFile(File file, WebXml fragment, boolean handlesTypesOnly, Map<String, ContextConfig.
|
| protected void | processAnnotationsInParallel(Set<WebXml>
Set of parallelizable scans fragments, boolean Important parameter for the underlying scan handlesTypesOnly, Map<String, ContextConfig.The class cache javaClassCacheParallelized version of processAnnotationsInParallel(). |
| protected void | processAnnotationsJar(URL url, WebXml fragment, boolean handlesTypesOnly, Map<String, ContextConfig.
|
| protected void | processAnnotationsStream(InputStream is, WebXml fragment, boolean handlesTypesOnly, Map<String, ContextConfig.
|
| protected String[] | |
| protected void | processAnnotationsUrl(URL url, WebXml fragment, boolean handlesTypesOnly, Map<String, ContextConfig.
|
| protected void | processAnnotationsWebResource(WebResource webResource, WebXml fragment, boolean handlesTypesOnly, Map<String, ContextConfig.
|
| protected void | processAnnotationWebFilter(String
The filter class name className, AnnotationEntry The filter annotation ae, WebXml The corresponding fragment fragment)process filter annotation and merge with existing one! |
| protected Map | |
| protected void | |
| protected void | |
| protected void | |
| protected void | processContextConfig(Digester
The digester that will be used for XML parsing digester, URL The URL to the context.xml configuration contextXml, InputStream The XML resource stream stream)Process a context.xml. |
| protected Map | Returns: A map of JAR name to processed web fragment (if any)The main web.xml metadata application, WebXmlParser The parser to use to process the web.xml file webXmlParser)Scan /WEB-INF/lib for JARs and for each one found add it and any /META-INF/web-fragment.xml to the resulting Map. |
| protected void | processResourceJARs(Set<WebXml>
The set of fragments that will be scanned for static resources fragments)Scan JARs that contain web-fragment.xml files that will be used to configure this application to see if they also contain static resources. |
| protected void | |
| private void | scanWebXmlFragment(boolean handlesTypesOnly, WebXml fragment, Map<String, ContextConfig.
|
| public void | setCustomAuthenticators(Map<String, Authenticator>
Custom mappings of login methods to authenticators customAuthenticators)Sets custom mappings of login methods to authenticators. |
| public void | setDefaultWebXml(String
The path to the default web.xml. If not absolute, it is relative to CATALINA_BASE. path)Set the location of the default deployment descriptor. |
| protected void | validateSecurityRoles()
Validate the usage of security role names in the web application deployment descriptor. |
| protected void | webConfig()
Scan the web.xml files that apply to the web application and merge them using the rules defined in the spec. |