org.objectweb.jonas.web.catalina50
Class JOnASStandardContext

java.lang.Object
  extended byorg.apache.catalina.core.ContainerBase
      extended byorg.apache.catalina.core.StandardContext
          extended byorg.objectweb.jonas.web.catalina50.JOnASStandardContext
All Implemented Interfaces:
org.apache.catalina.Container, org.apache.catalina.Context, org.apache.catalina.Lifecycle, javax.management.MBeanRegistration, org.apache.catalina.Pipeline, java.io.Serializable

public final class JOnASStandardContext
extends org.apache.catalina.core.StandardContext

Define a JOnAS context. It is used to check if a context has been defined in server.xml and to use this context while deploying the war instead of creating a new one

Author:
Florent Benoit, Philippe Coq (Tomcat 4.0)
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class org.apache.catalina.core.ContainerBase
org.apache.catalina.core.ContainerBase.ContainerBackgroundProcessor, org.apache.catalina.core.ContainerBase.PrivilegedAddChild
 
Field Summary
 
Fields inherited from class org.apache.catalina.core.StandardContext
allowLinking, cacheMaxSize, cacheTTL, caseSensitive
 
Fields inherited from class org.apache.catalina.core.ContainerBase
backgroundProcessorDelay, children, cluster, controller, debug, domain, initialized, lifecycle, listeners, loader, manager, mserver, name, oname, parent, parentClassLoader, pipeline, realm, resources, sm, started, suffix, support, type
 
Fields inherited from interface org.apache.catalina.Context
RELOAD_EVENT
 
Fields inherited from interface org.apache.catalina.Container
ADD_CHILD_EVENT, ADD_MAPPER_EVENT, ADD_VALVE_EVENT, REMOVE_CHILD_EVENT, REMOVE_MAPPER_EVENT, REMOVE_VALVE_EVENT
 
Fields inherited from interface org.apache.catalina.Lifecycle
AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, START_EVENT, STOP_EVENT
 
Constructor Summary
JOnASStandardContext()
          Constructor of the Context
JOnASStandardContext(boolean inServerXml, boolean java2DelegationModel, boolean inEarCase)
          Constructor of the Context
 
Method Summary
 java.net.URL getEarURL()
           
 java.lang.String getJonasDeploymentDescriptor()
          Gets the deployment descriptor content of jonas-web.xml file
 java.net.URL getWarURL()
           
 boolean isInEarCase()
           
 boolean isInServerXml()
          This context was defined in server.xml ?
 boolean isJava2DelegationModel()
           
 void setEarURL(java.net.URL earURL)
           
 void setJonasDeploymentDescriptor(java.lang.String jonasDeploymentDescriptor)
          Set the deployment descriptor content of jonas-web.xml file
 void setWarURL(java.net.URL warURL)
           
 void start()
          Start the JOnAS context if catalina is started
 void stop()
          Stop this Context component.
 void unsetAuthenticationCaching()
          Disable cache of the authenticator
 
Methods inherited from class org.apache.catalina.core.StandardContext
addApplicationListener, addApplicationParameter, addChild, addConstraint, addEjb, addEnvironment, addEnvironment, addErrorPage, addFilterDef, addFilterMap, addInstanceListener, addJspMapping, addLocaleEncodingMappingParameter, addLocalEjb, addMessageDestination, addMessageDestinationRef, addMimeMapping, addParameter, addResource, addResource, addResourceEnvRef, addResourceLink, addResourceLink, addResourceParams, addRoleMapping, addSecurityRole, addServletMapping, addServletMapping, addTaglib, addWelcomeFile, addWrapperLifecycle, addWrapperListener, adjustURLPattern, backgroundProcess, create, createObjectName, createWrapper, destroy, engineBase, filterStart, filterStop, findApplicationListeners, findApplicationParameters, findConstraints, findEjb, findEjbs, findEnvironment, findEnvironments, findErrorPage, findErrorPage, findErrorPages, findFilterConfig, findFilterDef, findFilterDefs, findFilterMaps, findInstanceListeners, findLocalEjb, findLocalEjbs, findMappingObject, findMessageDestination, findMessageDestinationRef, findMessageDestinationRefs, findMessageDestinations, findMimeMapping, findMimeMappings, findParameter, findParameters, findResource, findResourceEnvRef, findResourceEnvRefs, findResourceLink, findResourceLinks, findResources, findRoleMapping, findSecurityRole, findSecurityRoles, findServletMapping, findServletMappings, findStaticResources, findStatusPage, findStatusPages, findTaglib, findTaglibs, findWelcomeFile, findWelcomeFiles, findWrapperLifecycles, findWrapperListeners, getAltDDName, getApplicationEventListeners, getApplicationLifecycleListeners, getAvailable, getCacheMaxSize, getCacheTTL, getCharsetMapper, getCharsetMapperClass, getCompilerClasspath, getConfigFile, getConfigured, getCookies, getCrossContext, getDefaultConfigFile, getDefaultWebXml, getDelegate, getDeploymentDescriptor, getDisplayName, getDistributable, getDocBase, getEngineName, getEnvironments, getHostname, getInfo, getJ2EEApplication, getJ2EEServer, getJavaVMs, getLoginConfig, getManagerChecksFrequency, getMapper, getNamingResources, getOverride, getParentName, getPath, getPaused, getPrivileged, getPublicId, getReloadable, getResourceLinks, getResourceNames, getServer, getServletContext, getServlets, getSessionTimeout, getStartTime, getStartupTime, getState, getStaticResources, getSwallowOutput, getTldNamespaceAware, getTldScanTime, getTldValidation, getUnpackWAR, getWelcomeFiles, getWorkDir, getWorkPath, getWrapperClass, getXmlNamespaceAware, getXmlValidation, init, isAllowLinking, isCachingAllowed, isCaseSensitive, isEventProvider, isFilesystemBased, isLazy, isReplaceWelcomeFiles, isServlet22, isStateManageable, isStatisticsProvider, isUseNaming, listenerStart, listenerStop, loadOnStartup, preDeregister, preRegister, reload, removeApplicationListener, removeApplicationParameter, removeChild, removeConstraint, removeEjb, removeEnvironment, removeErrorPage, removeFilterDef, removeFilterMap, removeInstanceListener, removeLocalEjb, removeMessageDestination, removeMessageDestinationRef, removeMimeMapping, removeParameter, removeResource, removeResourceEnvRef, removeResourceLink, removeRoleMapping, removeSecurityRole, removeServletMapping, removeTaglib, removeWelcomeFile, removeWrapperLifecycle, removeWrapperListener, resourcesStart, resourcesStop, setAllowLinking, setAltDDName, setApplicationEventListeners, setApplicationLifecycleListeners, setAvailable, setCacheMaxSize, setCacheTTL, setCachingAllowed, setCaseSensitive, setCharsetMapper, setCharsetMapperClass, setCompilerClasspath, setConfigFile, setConfigured, setCookies, setCrossContext, setDefaultWebXml, setDelegate, setDisplayName, setDistributable, setDocBase, setEngineName, setJ2EEApplication, setJ2EEServer, setJavaVMs, setLazy, setLoader, setLoginConfig, setManagerChecksFrequency, setName, setNamingResources, setOverride, setPath, setPrivileged, setPublicId, setReloadable, setReplaceWelcomeFiles, setResources, setServer, setSessionTimeout, setStartupTime, setSwallowOutput, setTldNamespaceAware, setTldScanTime, setTldValidation, setUnpackWAR, setUseNaming, setWorkDir, setWrapperClass, setXmlNamespaceAware, setXmlValidation, startRecursive, stopNew, toString
 
Methods inherited from class org.apache.catalina.core.ContainerBase
addContainerListener, addLifecycleListener, addPropertyChangeListener, addValve, findChild, findChildren, findContainerListeners, findLifecycleListeners, fireContainerEvent, getBackgroundProcessorDelay, getBasic, getChildren, getCluster, getContainerSuffix, getDebug, getDomain, getJmxName, getJSR77Suffix, getLoader, getLogger, getManager, getMappingObject, getName, getObjectName, getParent, getParentClassLoader, getPipeline, getRealm, getResources, getType, getValveObjectNames, getValves, invoke, log, log, logName, postDeregister, postRegister, removeContainerListener, removeLifecycleListener, removePropertyChangeListener, removeValve, setBackgroundProcessorDelay, setBasic, setCluster, setDebug, setDomain, setLogger, setManager, setParent, setParentClassLoader, setRealm, threadStart, threadStop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.catalina.Container
addContainerListener, addPropertyChangeListener, findChild, findChildren, findContainerListeners, getBackgroundProcessorDelay, getCluster, getLoader, getLogger, getManager, getMappingObject, getName, getParent, getParentClassLoader, getPipeline, getRealm, getResources, invoke, removeContainerListener, removePropertyChangeListener, setBackgroundProcessorDelay, setCluster, setLogger, setManager, setParent, setParentClassLoader, setRealm
 

Constructor Detail

JOnASStandardContext

public JOnASStandardContext(boolean inServerXml,
                            boolean java2DelegationModel,
                            boolean inEarCase)
Constructor of the Context

Parameters:
inServerXml - this context was defined in server.xml

JOnASStandardContext

public JOnASStandardContext()
Constructor of the Context

Method Detail

start

public void start()
           throws org.apache.catalina.LifecycleException
Start the JOnAS context if catalina is started

Throws:
org.apache.catalina.LifecycleException - if the context can't be started

stop

public void stop()
          throws org.apache.catalina.LifecycleException
Stop this Context component.

Throws:
org.apache.catalina.LifecycleException - if a shutdown error occurs

isInServerXml

public boolean isInServerXml()
This context was defined in server.xml ?

Returns:
true if this context was defined in server.xml

unsetAuthenticationCaching

public void unsetAuthenticationCaching()
Disable cache of the authenticator


setJonasDeploymentDescriptor

public void setJonasDeploymentDescriptor(java.lang.String jonasDeploymentDescriptor)
Set the deployment descriptor content of jonas-web.xml file

Parameters:
jonasDeploymentDescriptor - the content of jonas-web.xml

getJonasDeploymentDescriptor

public java.lang.String getJonasDeploymentDescriptor()
Gets the deployment descriptor content of jonas-web.xml file

Returns:
the content of jonas-web.xml file

setEarURL

public void setEarURL(java.net.URL earURL)

getEarURL

public java.net.URL getEarURL()

setWarURL

public void setWarURL(java.net.URL warURL)

getWarURL

public java.net.URL getWarURL()

isInEarCase

public boolean isInEarCase()
Returns:
true if this web module is a part of a EAR

isJava2DelegationModel

public boolean isJava2DelegationModel()
Returns:
true if the Java2 delegation model is used