public class ContextConfig extends java.lang.Object implements LifecycleListener
Modifier and Type | Field and Description |
---|---|
protected static java.util.Properties |
authenticators
The set of Authenticators that we know how to configure.
|
protected Context |
context
The Context we are associated with.
|
protected java.util.Map |
customAuthenticators
Custom mappings of login methods to authenticators
|
protected static long |
deploymentCount
Deployment count.
|
protected static LoginConfig |
DUMMY_LOGIN_CONFIG |
protected static Logger |
log |
protected boolean |
ok
Track any fatal errors during startup configuration processing.
|
protected static StringManager |
sm
The string resources for this package.
|
Constructor and Description |
---|
ContextConfig() |
Modifier and Type | Method and Description |
---|---|
protected void |
applicationExtraDescriptorsConfig()
Process additional descriptors: TLDs, web fragments, and map overlays.
|
void |
applicationServletContainerInitializerConfig()
Find and parse ServletContainerInitializer service in specified JAR.
|
protected void |
applicationTldConfig()
Parse TLDs.
|
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 |
completeConfig()
Process a "start" event for this Context.
|
protected void |
createFragmentsOrder()
Parse fragments order.
|
protected void |
defaultWebConfig()
Process the default configuration file, if it exists.
|
protected void |
destroy()
Process a "destroy" event for this Context.
|
protected java.lang.String |
getBaseDir() |
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 |
resolveServletSecurity()
Translate servlet security associated with Servlets to security constraints.
|
void |
setCustomAuthenticators(java.util.Map customAuthenticators)
Sets custom mappings of login methods to authenticators.
|
protected void |
start()
Process a "start" event for this Context.
|
protected void |
stop()
Process a "stop" event for this Context.
|
protected java.lang.String |
toHttpMethod(java.lang.String method)
Although this does not comply with the spec, it is likely Java method names
will be used in the annotations.
|
protected void |
validateSecurityRoles()
Validate the usage of security role names in the web application
deployment descriptor.
|
protected static Logger log
protected java.util.Map customAuthenticators
protected static java.util.Properties authenticators
protected Context context
protected boolean ok
protected static final StringManager sm
protected static long deploymentCount
protected static final LoginConfig DUMMY_LOGIN_CONFIG
public void setCustomAuthenticators(java.util.Map customAuthenticators)
customAuthenticators
- Custom mappings of login methods to
authenticatorspublic void lifecycleEvent(LifecycleEvent event)
lifecycleEvent
in interface LifecycleListener
event
- The lifecycle event that has occurredprotected void applicationWebConfig()
protected void applicationTldConfig()
protected void authenticatorConfig()
protected java.lang.String getBaseDir()
protected void defaultWebConfig()
protected void createFragmentsOrder()
protected void applicationExtraDescriptorsConfig()
public void applicationServletContainerInitializerConfig()
protected void init()
protected void beforeStart()
protected void start()
protected void completeConfig()
protected void stop()
protected void destroy()
protected void resolveServletSecurity()
protected java.lang.String toHttpMethod(java.lang.String method)
method
- protected void validateSecurityRoles()
ok
instance variable to false
as well).protected java.lang.String getHostConfigPath(java.lang.String resourceName)