|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.geronimo.tomcat.TomcatWebAppContext
public class TomcatWebAppContext
Wrapper for a WebApplicationContext that sets up its J2EE environment.
Field Summary | |
---|---|
protected TomcatContainer |
container
|
protected org.apache.catalina.Context |
context
|
static GBeanInfo |
GBEAN_INFO
|
Constructor Summary | |
---|---|
TomcatWebAppContext(ClassLoader classLoader,
String objectName,
String originalSpecDD,
URL configurationBaseUrl,
SecurityHolder securityHolder,
String virtualServer,
Map componentContext,
Set unshareableResources,
Set applicationManagedSecurityResources,
TransactionManager transactionManager,
org.apache.geronimo.connector.outbound.connectiontracking.TrackedConnectionAssociator trackedConnectionAssociator,
TomcatContainer container,
RunAsSource runAsSource,
ObjectRetriever tomcatRealm,
ValveGBean tomcatValveChain,
LifecycleListenerGBean lifecycleListenerChain,
CatalinaClusterGBean cluster,
ManagerGBean manager,
boolean crossContext,
boolean disableCookies,
Map webServices,
Holder holder,
RuntimeCustomizer contextCustomizer,
J2EEServer server,
J2EEApplication application,
Kernel kernel)
|
Method Summary | |
---|---|
void |
doFail()
Fails the GBean. |
void |
doStart()
Starts the GBean. |
void |
doStop()
Stops the target. |
Set |
getApplicationManagedSecurityResources()
|
ClassLoader |
getClassLoader()
|
org.apache.catalina.ha.CatalinaCluster |
getCluster()
|
WebContainer |
getContainer()
|
org.apache.catalina.Context |
getContext()
|
String |
getContextPath()
|
String |
getDeploymentDescriptor()
The deploymentDescriptor string must contain the original XML deployment descriptor that was created for this module during the deployment process. |
String |
getDocBase()
|
static GBeanInfo |
getGBeanInfo()
|
org.apache.InstanceManager |
getInstanceManager()
|
String |
getJ2EEApplication()
|
String |
getJ2EEServer()
|
String[] |
getJavaVMs()
A list of JVMs this module is running on. |
Context |
getJndiContext()
|
Kernel |
getKernel()
|
List |
getLifecycleListenerChain()
|
org.apache.catalina.Manager |
getManager()
|
String |
getObjectName()
Gets the unique name of this object. |
org.apache.catalina.Realm |
getRealm()
|
RuntimeCustomizer |
getRuntimeCustomizer()
|
SecurityHolder |
getSecurityHolder()
|
String |
getServer()
The J2EE server the application or module is deployed on. |
String[] |
getServlets()
A list of Servlets included in this WAR |
Stats |
getStats()
Gets the statistics collected for this class. |
org.apache.geronimo.connector.outbound.connectiontracking.TrackedConnectionAssociator |
getTrackedConnectionAssociator()
|
Set |
getUnshareableResources()
|
UserTransaction |
getUserTransaction()
|
List |
getValveChain()
|
String |
getVirtualServer()
|
URL |
getWARDirectory()
|
String |
getWARName()
|
Map |
getWebServices()
|
boolean |
isCrossContext()
|
boolean |
isDisableCookies()
|
boolean |
isEventProvider()
Determines if this object implemnts the event provider type defined in the J2EE Management specification. |
boolean |
isStateManageable()
Determines if this object implements the state manageable type defined in the J2EE Management specification. |
boolean |
isStatisticsProvider()
Determines if this object implemnts the statistics provider type defined in the J2EE Management specification. |
void |
resetStats()
Reset the startTime for all statistics |
void |
setContext(org.apache.catalina.Context context)
|
void |
setContextPath(String path)
|
void |
setDocBase(String docBase)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final TomcatContainer container
protected org.apache.catalina.Context context
public static final GBeanInfo GBEAN_INFO
Constructor Detail |
---|
public TomcatWebAppContext(ClassLoader classLoader, String objectName, String originalSpecDD, URL configurationBaseUrl, SecurityHolder securityHolder, String virtualServer, Map componentContext, Set unshareableResources, Set applicationManagedSecurityResources, TransactionManager transactionManager, org.apache.geronimo.connector.outbound.connectiontracking.TrackedConnectionAssociator trackedConnectionAssociator, TomcatContainer container, RunAsSource runAsSource, ObjectRetriever tomcatRealm, ValveGBean tomcatValveChain, LifecycleListenerGBean lifecycleListenerChain, CatalinaClusterGBean cluster, ManagerGBean manager, boolean crossContext, boolean disableCookies, Map webServices, Holder holder, RuntimeCustomizer contextCustomizer, J2EEServer server, J2EEApplication application, Kernel kernel) throws Exception
Exception
Method Detail |
---|
public String getObjectName()
J2EEManagedObject
getObjectName
in interface J2EEManagedObject
public String getJ2EEApplication()
public String getJ2EEServer()
public boolean isStateManageable()
J2EEManagedObject
isStateManageable
in interface J2EEManagedObject
public boolean isStatisticsProvider()
J2EEManagedObject
isStatisticsProvider
in interface J2EEManagedObject
public boolean isEventProvider()
J2EEManagedObject
isEventProvider
in interface J2EEManagedObject
public URL getWARDirectory()
public String getWARName()
public WebContainer getContainer()
public String getServer()
J2EEDeployedObject
getServer
in interface J2EEDeployedObject
public String getDocBase()
getDocBase
in interface TomcatContext
public void setDocBase(String docBase)
public UserTransaction getUserTransaction()
getUserTransaction
in interface TomcatContext
public Context getJndiContext()
getJndiContext
in interface TomcatContext
public String getVirtualServer()
getVirtualServer
in interface TomcatContext
public ClassLoader getClassLoader()
getClassLoader
in interface TomcatContext
public Kernel getKernel()
getKernel
in interface TomcatContext
public boolean isDisableCookies()
isDisableCookies
in interface TomcatContext
public org.apache.catalina.Context getContext()
getContext
in interface TomcatContext
public void setContext(org.apache.catalina.Context context)
setContext
in interface TomcatContext
public String getContextPath()
getContextPath
in interface TomcatContext
public void setContextPath(String path)
public SecurityHolder getSecurityHolder()
getSecurityHolder
in interface TomcatContext
public Set getApplicationManagedSecurityResources()
getApplicationManagedSecurityResources
in interface TomcatContext
public org.apache.geronimo.connector.outbound.connectiontracking.TrackedConnectionAssociator getTrackedConnectionAssociator()
getTrackedConnectionAssociator
in interface TomcatContext
public Set getUnshareableResources()
getUnshareableResources
in interface TomcatContext
public org.apache.catalina.Realm getRealm()
getRealm
in interface TomcatContext
public List getValveChain()
getValveChain
in interface TomcatContext
public List getLifecycleListenerChain()
getLifecycleListenerChain
in interface TomcatContext
public org.apache.catalina.ha.CatalinaCluster getCluster()
getCluster
in interface TomcatContext
public org.apache.catalina.Manager getManager()
getManager
in interface TomcatContext
public boolean isCrossContext()
isCrossContext
in interface TomcatContext
public Map getWebServices()
getWebServices
in interface TomcatContext
public org.apache.InstanceManager getInstanceManager()
getInstanceManager
in interface TomcatContext
public RuntimeCustomizer getRuntimeCustomizer()
public String[] getServlets()
WebModule
getServlets
in interface WebModule
public String[] getJavaVMs()
J2EEModule
getJavaVMs
in interface J2EEModule
public String getDeploymentDescriptor()
J2EEDeployedObject
getDeploymentDescriptor
in interface J2EEDeployedObject
public Stats getStats()
StatisticsProvider
getStats
in interface StatisticsProvider
public void resetStats()
StatisticsProvider
resetStats
in interface StatisticsProvider
public void doStart() throws Exception
GBeanLifecycle
doStart
in interface GBeanLifecycle
Exception
- if the target failed to start; this will cause a transition to the failed statepublic void doStop() throws Exception
GBeanLifecycle
doStop
in interface GBeanLifecycle
Exception
- if the target failed to stop; this will cause a transition to the failed statepublic void doFail()
GBeanLifecycle
doFail
in interface GBeanLifecycle
public static GBeanInfo getGBeanInfo()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |