org.ow2.jonas.web.tomcat6
Class JOnASContextConfig

java.lang.Object
  extended by org.apache.catalina.startup.ContextConfig
      extended by org.ow2.jonas.web.tomcat6.JOnASContextConfig
All Implemented Interfaces:
org.apache.catalina.LifecycleListener

public class JOnASContextConfig
extends org.apache.catalina.startup.ContextConfig

Own JOnAS context config object in order to change some default values.

Author:
Florent BENOIT

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.catalina.startup.ContextConfig
org.apache.catalina.startup.ContextConfig.ContextErrorHandler
 
Field Summary
static String DEFAULT_CONTEXT_XML
          Path to the default Context for Tomcat6 (can use /).
static String DEFAULT_WEB_XML
          Path to the default Web.xml object for Tomcat6 (can use /).
 
Fields inherited from class org.apache.catalina.startup.ContextConfig
authenticators, context, contextDigester, customAuthenticators, defaultContextXml, defaultWebXml, deploymentCount, DUMMY_LOGIN_CONFIG, log, ok, originalDocBase, parseException, sm, webDigester, webRuleSet, xmlNamespaceAware, xmlValidation
 
Constructor Summary
JOnASContextConfig()
           
 
Method Summary
protected  void applicationWebConfig()
          Process the application configuration file, if it exists.
protected  org.apache.tomcat.util.digester.Digester createContextDigester()
          Extend META-INF/Context.xml Digester with JOnAS SecurityService setup.
 String getDefaultContextXml()
           
 String getDefaultWebXml()
           
protected  void init()
          Always nullify the 'contextDigeste'r static reference.
 void setSecurityService(SecurityService service)
           
 
Methods inherited from class org.apache.catalina.startup.ContextConfig
antiLocking, applicationAnnotationsConfig, authenticatorConfig, beforeStart, contextConfig, createWebDigester, createWebXmlDigester, defaultWebConfig, destroy, fixDocBase, getBaseDir, getConfigBase, getHostConfigPath, lifecycleEvent, processContextConfig, processDefaultWebConfig, setCustomAuthenticators, setDefaultContextXml, setDefaultWebXml, start, stop, validateSecurityRoles
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_CONTEXT_XML

public static final String DEFAULT_CONTEXT_XML
Path to the default Context for Tomcat6 (can use /).

See Also:
Constant Field Values

DEFAULT_WEB_XML

public static final String DEFAULT_WEB_XML
Path to the default Web.xml object for Tomcat6 (can use /).

See Also:
Constant Field Values
Constructor Detail

JOnASContextConfig

public JOnASContextConfig()
Method Detail

getDefaultWebXml

public String getDefaultWebXml()
Overrides:
getDefaultWebXml in class org.apache.catalina.startup.ContextConfig
Returns:
the location of the default deployment descriptor

getDefaultContextXml

public String getDefaultContextXml()
Overrides:
getDefaultContextXml in class org.apache.catalina.startup.ContextConfig
Returns:
the location of the default context file

createContextDigester

protected org.apache.tomcat.util.digester.Digester createContextDigester()
Extend META-INF/Context.xml Digester with JOnAS SecurityService setup.

Overrides:
createContextDigester in class org.apache.catalina.startup.ContextConfig
Returns:
an extended Digester.

setSecurityService

public void setSecurityService(SecurityService service)
Parameters:
service - SecurityService instance to assign.

init

protected void init()
Always nullify the 'contextDigeste'r static reference.

Overrides:
init in class org.apache.catalina.startup.ContextConfig
See Also:
ContextConfig.init()

applicationWebConfig

protected void applicationWebConfig()
Process the application configuration file, if it exists.

Overrides:
applicationWebConfig in class org.apache.catalina.startup.ContextConfig


Copyright © 2010 OW2 Consortium. All Rights Reserved.