public class ContextConfig extends Object implements LifecycleListener
Modifier and Type | Field and Description |
---|---|
protected static Properties |
authenticators
The set of Authenticators that we know how to configure.
|
protected Context |
context
The Context we are associated with.
|
protected Map |
customAuthenticators
Custom mappings of login methods to authenticators
|
protected static long |
deploymentCount
Deployment count.
|
protected static LoginConfig |
DUMMY_LOGIN_CONFIG |
protected boolean |
ok
Track any fatal errors during startup configuration processing.
|
Constructor and Description |
---|
ContextConfig() |
Modifier and Type | Method and Description |
---|---|
protected void |
afterLoadOnStartup(Object data) |
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 |
beforeLoadOnStartup(Object data) |
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 String |
getBaseDir() |
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 |
loadOnStartup() |
protected void |
resolveServletSecurity()
Translate servlet security associated with Servlets to security constraints.
|
void |
setCustomAuthenticators(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 String |
toHttpMethod(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 Map customAuthenticators
protected static Properties authenticators
protected Context context
protected boolean ok
protected static long deploymentCount
protected static final LoginConfig DUMMY_LOGIN_CONFIG
public void setCustomAuthenticators(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 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 loadOnStartup()
protected void beforeLoadOnStartup(Object data)
protected void afterLoadOnStartup(Object data)
protected void stop()
protected void destroy()
protected void resolveServletSecurity()
protected String toHttpMethod(String method)
method
- protected void validateSecurityRoles()
ok
instance variable to false
as well).Copyright © 2016 JBoss by Red Hat. All rights reserved.