Package com.sun.enterprise.web
Class WebModuleContextConfig
- java.lang.Object
-
- org.apache.catalina.startup.ContextConfig
-
- com.sun.enterprise.web.WebModuleContextConfig
-
- All Implemented Interfaces:
LifecycleListener
public class WebModuleContextConfig extends ContextConfig
Startup event listener for a Context that configures the properties of that Context, and the associated defined servlets.- Author:
- Jean-Francois Arcand
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.catalina.startup.ContextConfig
ContextConfig.ContextErrorHandler
-
-
Field Summary
Fields Modifier and Type Field Description static intAPPLICATION_LISTENERSstatic intAPPLICATION_PARAMETERSstatic intCHILDRENstatic intEJBSstatic intENVIRONMENTSstatic intERROR_PAGESstatic intFILTER_DEFSstatic intFILTER_MAPSstatic intLOCAL_EJBSstatic intMESSAGE_DESTINATION_REFSstatic intMESSAGE_DESTINATIONSstatic intMIME_MAPPINGSprotected static ResourceBundlerbstatic intRESOURCESprotected org.glassfish.hk2.api.ServiceLocatorservicesstatic intSERVLET_MAPPINGS-
Fields inherited from class org.apache.catalina.startup.ContextConfig
authenticators, context, contextDigester, customAuthenticators, defaultContextXml, defaultWebXml, ok, parseException, webDigester, webRuleSet
-
-
Constructor Summary
Constructors Constructor Description WebModuleContextConfig(org.glassfish.hk2.api.ServiceLocator services)CustomizedContextConfigwhich use the DOL for deployment.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidauthenticatorConfig()Always sets up an Authenticator regardless of any security constraints.protected voidconfigureResource()protected voiddefaultConfig()Process the default configuration file, if it exists.WebBundleDescriptorImplgetDescriptor()Return the WebBundleDescriptorvoidsetDescriptor(WebBundleDescriptorImpl wbd)Set the DOL object associated with this class.protected voidstart()Process a "start" event for this Context - in backgroundprotected voidstop()Process a "stop" event for this Context.-
Methods inherited from class org.apache.catalina.startup.ContextConfig
applicationConfig, contextConfig, createContextDigester, createWebDigester, createWebXmlDigester, fixDocBase, getBaseDir, getDebug, getDefaultContextXml, getDefaultWebXml, init, lifecycleEvent, managerConfig, processContextConfig, setClassLoader, setCustomAuthenticators, setDebug, setDefaultContextXml, setDefaultWebXml, validateSecurityRoles
-
-
-
-
Field Detail
-
rb
protected static final ResourceBundle rb
-
CHILDREN
public static final int CHILDREN
- See Also:
- Constant Field Values
-
SERVLET_MAPPINGS
public static final int SERVLET_MAPPINGS
- See Also:
- Constant Field Values
-
LOCAL_EJBS
public static final int LOCAL_EJBS
- See Also:
- Constant Field Values
-
EJBS
public static final int EJBS
- See Also:
- Constant Field Values
-
ENVIRONMENTS
public static final int ENVIRONMENTS
- See Also:
- Constant Field Values
-
ERROR_PAGES
public static final int ERROR_PAGES
- See Also:
- Constant Field Values
-
FILTER_DEFS
public static final int FILTER_DEFS
- See Also:
- Constant Field Values
-
FILTER_MAPS
public static final int FILTER_MAPS
- See Also:
- Constant Field Values
-
APPLICATION_LISTENERS
public static final int APPLICATION_LISTENERS
- See Also:
- Constant Field Values
-
RESOURCES
public static final int RESOURCES
- See Also:
- Constant Field Values
-
APPLICATION_PARAMETERS
public static final int APPLICATION_PARAMETERS
- See Also:
- Constant Field Values
-
MESSAGE_DESTINATIONS
public static final int MESSAGE_DESTINATIONS
- See Also:
- Constant Field Values
-
MESSAGE_DESTINATION_REFS
public static final int MESSAGE_DESTINATION_REFS
- See Also:
- Constant Field Values
-
MIME_MAPPINGS
public static final int MIME_MAPPINGS
- See Also:
- Constant Field Values
-
services
protected org.glassfish.hk2.api.ServiceLocator services
-
-
Method Detail
-
setDescriptor
public void setDescriptor(WebBundleDescriptorImpl wbd)
Set the DOL object associated with this class.
-
getDescriptor
public WebBundleDescriptorImpl getDescriptor()
Return the WebBundleDescriptor
-
configureResource
protected void configureResource() throws LifecycleException- Throws:
LifecycleException
-
start
protected void start() throws LifecycleExceptionProcess a "start" event for this Context - in background- Overrides:
startin classContextConfig- Throws:
LifecycleException
-
authenticatorConfig
protected void authenticatorConfig() throws LifecycleExceptionAlways sets up an Authenticator regardless of any security constraints.- Overrides:
authenticatorConfigin classContextConfig- Throws:
LifecycleException
-
defaultConfig
protected void defaultConfig()
Process the default configuration file, if it exists. The default config must be read with the container loader - so container servlets can be loaded- Overrides:
defaultConfigin classContextConfig
-
stop
protected void stop()
Process a "stop" event for this Context.- Overrides:
stopin classContextConfig
-
-