org.objectweb.jonas.web.catalina50.JOnASStandardContext Class Reference

List of all members.

Public Member Functions

 JOnASStandardContext ()
 JOnASStandardContext (boolean inServerXml, boolean java2DelegationModel, boolean inEarCase)
URL getEarURL ()
String getJonasDeploymentDescriptor ()
URL getWarURL ()
boolean isInEarCase ()
boolean isInServerXml ()
boolean isJava2DelegationModel ()
void setJonasDeploymentDescriptor (String jonasDeploymentDescriptor)
synchronized void start () throws LifecycleException
synchronized void stop () throws LifecycleException
void unsetAuthenticationCaching ()
void addResource (ContextResource resource)
void addEnvironment (ContextEnvironment environment)

Protected Member Functions

void setEarURL (URL earURL)
void setInEarCase (boolean inEarCase)
void setJava2DelegationModel (boolean java2DelegationModel)
void setWarURL (URL warURL)

Detailed Description

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)

Definition at line 53 of file JOnASStandardContext.java.


Constructor & Destructor Documentation

org.objectweb.jonas.web.catalina50.JOnASStandardContext.JOnASStandardContext  ) 
 

Constructor of the Context

Definition at line 103 of file JOnASStandardContext.java.

org.objectweb.jonas.web.catalina50.JOnASStandardContext.JOnASStandardContext boolean  inServerXml,
boolean  java2DelegationModel,
boolean  inEarCase
 

Constructor of the Context

Parameters:
inServerXml this context was defined in server.xml
java2DelegationModel delegation model for classloader is true ?
inEarCase if we are or not in EAR case

Definition at line 113 of file JOnASStandardContext.java.


Member Function Documentation

void org.objectweb.jonas.web.catalina50.JOnASStandardContext.addEnvironment ContextEnvironment  environment  ) 
 

Add an environment entry for this web application. Do nothing when running inside JOnAS. ENC environment is managed by JOnAS

Parameters:
environment New environment entry

Definition at line 268 of file JOnASStandardContext.java.

void org.objectweb.jonas.web.catalina50.JOnASStandardContext.addResource ContextResource  resource  ) 
 

Add a resource reference for this web application. Do nothing when running inside JOnAS. Resources are managed by JOnAS

Parameters:
resource New resource reference

Definition at line 260 of file JOnASStandardContext.java.

URL org.objectweb.jonas.web.catalina50.JOnASStandardContext.getEarURL  ) 
 

Returns:
Returns the earURL.

Definition at line 131 of file JOnASStandardContext.java.

String org.objectweb.jonas.web.catalina50.JOnASStandardContext.getJonasDeploymentDescriptor  ) 
 

Gets the deployment descriptor content of jonas-web.xml file

Returns:
the content of jonas-web.xml file

Definition at line 139 of file JOnASStandardContext.java.

URL org.objectweb.jonas.web.catalina50.JOnASStandardContext.getWarURL  ) 
 

Returns:
Returns the warURL.

Definition at line 146 of file JOnASStandardContext.java.

boolean org.objectweb.jonas.web.catalina50.JOnASStandardContext.isInEarCase  ) 
 

Returns:
true if this web module is a part of a EAR

Definition at line 153 of file JOnASStandardContext.java.

boolean org.objectweb.jonas.web.catalina50.JOnASStandardContext.isInServerXml  ) 
 

This context was defined in server.xml ?

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

Definition at line 161 of file JOnASStandardContext.java.

Referenced by org.objectweb.jonas.web.catalina50.CatalinaJWebContainerServiceImpl.doRegisterWar(), org.objectweb.jonas.web.catalina50.CatalinaJWebContainerServiceImpl.getConfiguredMatchingJonasContexts(), and org.objectweb.jonas.web.catalina50.CatalinaJWebContainerServiceImpl.removeContext().

boolean org.objectweb.jonas.web.catalina50.JOnASStandardContext.isJava2DelegationModel  ) 
 

Returns:
true if the Java2 delegation model is used

Definition at line 168 of file JOnASStandardContext.java.

void org.objectweb.jonas.web.catalina50.JOnASStandardContext.setEarURL URL  earURL  )  [protected]
 

Parameters:
earURL The earURL to set.

Definition at line 175 of file JOnASStandardContext.java.

Referenced by org.objectweb.jonas.web.catalina50.CatalinaJWebContainerServiceImpl.doRegisterWar().

void org.objectweb.jonas.web.catalina50.JOnASStandardContext.setInEarCase boolean  inEarCase  )  [protected]
 

Parameters:
inEarCase The inEarCase to set.

Definition at line 182 of file JOnASStandardContext.java.

void org.objectweb.jonas.web.catalina50.JOnASStandardContext.setJava2DelegationModel boolean  java2DelegationModel  )  [protected]
 

Parameters:
java2DelegationModel The java2DelegationModel to set.

Definition at line 189 of file JOnASStandardContext.java.

void org.objectweb.jonas.web.catalina50.JOnASStandardContext.setJonasDeploymentDescriptor String  jonasDeploymentDescriptor  ) 
 

Set the deployment descriptor content of jonas-web.xml file

Parameters:
jonasDeploymentDescriptor the content of jonas-web.xml

Definition at line 197 of file JOnASStandardContext.java.

Referenced by org.objectweb.jonas.web.catalina50.CatalinaJWebContainerServiceImpl.doRegisterWar().

void org.objectweb.jonas.web.catalina50.JOnASStandardContext.setWarURL URL  warURL  )  [protected]
 

Parameters:
warURL The warURL to set.

Definition at line 204 of file JOnASStandardContext.java.

Referenced by org.objectweb.jonas.web.catalina50.CatalinaJWebContainerServiceImpl.doRegisterWar().

synchronized void org.objectweb.jonas.web.catalina50.JOnASStandardContext.start  )  throws LifecycleException
 

Start the JOnAS context if catalina is started

Exceptions:
LifecycleException if the context can't be started

Definition at line 212 of file JOnASStandardContext.java.

References org.objectweb.jonas.web.wrapper.CatalinaJWebContainerService.isTomcatStarted().

Referenced by org.objectweb.jonas.web.catalina50.CatalinaJWebContainerServiceImpl.doRegisterWar().

Here is the call graph for this function:

synchronized void org.objectweb.jonas.web.catalina50.JOnASStandardContext.stop  )  throws LifecycleException
 

Stop this Context component.

Exceptions:
LifecycleException if a shutdown error occurs

Definition at line 230 of file JOnASStandardContext.java.

void org.objectweb.jonas.web.catalina50.JOnASStandardContext.unsetAuthenticationCaching  ) 
 

Disable cache of the authenticator

Definition at line 244 of file JOnASStandardContext.java.


The documentation for this class was generated from the following file:
Generated on Tue Feb 15 15:08:16 2005 for JOnAS by  doxygen 1.3.9.1