|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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
|
static String |
GBEAN_REF_CLUSTERED_VALVE_RETRIEVER
|
static String |
GBEAN_REF_MANAGER_RETRIEVER
|
| 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,
ObjectRetriever clusteredValveRetriever,
ValveGBean tomcatValveChain,
LifecycleListenerGBean lifecycleListenerChain,
CatalinaClusterGBean cluster,
ObjectRetriever managerRetriever,
boolean crossContext,
String workDir,
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()
|
org.apache.catalina.Valve |
getClusteredValve()
|
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()
|
String |
getWorkDir()
|
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
public static final String GBEAN_REF_CLUSTERED_VALVE_RETRIEVER
public static final String GBEAN_REF_MANAGER_RETRIEVER
| 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,
ObjectRetriever clusteredValveRetriever,
ValveGBean tomcatValveChain,
LifecycleListenerGBean lifecycleListenerChain,
CatalinaClusterGBean cluster,
ObjectRetriever managerRetriever,
boolean crossContext,
String workDir,
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 J2EEManagedObjectpublic String getJ2EEApplication()
public String getJ2EEServer()
public boolean isStateManageable()
J2EEManagedObject
isStateManageable in interface J2EEManagedObjectpublic boolean isStatisticsProvider()
J2EEManagedObject
isStatisticsProvider in interface J2EEManagedObjectpublic boolean isEventProvider()
J2EEManagedObject
isEventProvider in interface J2EEManagedObjectpublic URL getWARDirectory()
public String getWARName()
public WebContainer getContainer()
public String getServer()
J2EEDeployedObject
getServer in interface J2EEDeployedObjectpublic String getDocBase()
getDocBase in interface TomcatContextpublic void setDocBase(String docBase)
public UserTransaction getUserTransaction()
getUserTransaction in interface TomcatContextpublic Context getJndiContext()
getJndiContext in interface TomcatContextpublic String getVirtualServer()
getVirtualServer in interface TomcatContextpublic ClassLoader getClassLoader()
getClassLoader in interface TomcatContextpublic Kernel getKernel()
getKernel in interface TomcatContextpublic boolean isDisableCookies()
isDisableCookies in interface TomcatContextpublic org.apache.catalina.Context getContext()
getContext in interface TomcatContextpublic void setContext(org.apache.catalina.Context context)
setContext in interface TomcatContextpublic String getContextPath()
getContextPath in interface TomcatContextpublic void setContextPath(String path)
public SecurityHolder getSecurityHolder()
getSecurityHolder in interface TomcatContextpublic Set getApplicationManagedSecurityResources()
getApplicationManagedSecurityResources in interface TomcatContextpublic org.apache.geronimo.connector.outbound.connectiontracking.TrackedConnectionAssociator getTrackedConnectionAssociator()
getTrackedConnectionAssociator in interface TomcatContextpublic Set getUnshareableResources()
getUnshareableResources in interface TomcatContextpublic org.apache.catalina.Realm getRealm()
getRealm in interface TomcatContextpublic org.apache.catalina.Valve getClusteredValve()
getClusteredValve in interface TomcatContextpublic List getValveChain()
getValveChain in interface TomcatContextpublic List getLifecycleListenerChain()
getLifecycleListenerChain in interface TomcatContextpublic org.apache.catalina.ha.CatalinaCluster getCluster()
getCluster in interface TomcatContextpublic org.apache.catalina.Manager getManager()
getManager in interface TomcatContextpublic boolean isCrossContext()
isCrossContext in interface TomcatContextpublic String getWorkDir()
getWorkDir in interface TomcatContextpublic Map getWebServices()
getWebServices in interface TomcatContextpublic org.apache.InstanceManager getInstanceManager()
getInstanceManager in interface TomcatContextpublic RuntimeCustomizer getRuntimeCustomizer()
public String[] getServlets()
WebModule
getServlets in interface WebModulepublic String[] getJavaVMs()
J2EEModule
getJavaVMs in interface J2EEModulepublic String getDeploymentDescriptor()
J2EEDeployedObject
getDeploymentDescriptor in interface J2EEDeployedObjectpublic Stats getStats()
StatisticsProvider
getStats in interface StatisticsProviderpublic void resetStats()
StatisticsProvider
resetStats in interface StatisticsProvider
public void doStart()
throws Exception
GBeanLifecycle
doStart in interface GBeanLifecycleException - if the target failed to start; this will cause a transition to the failed state
public void doStop()
throws Exception
GBeanLifecycle
doStop in interface GBeanLifecycleException - if the target failed to stop; this will cause a transition to the failed statepublic void doFail()
GBeanLifecycle
doFail in interface GBeanLifecyclepublic static GBeanInfo getGBeanInfo()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||