org.apache.geronimo.tomcat
Class TomcatWebAppContext
java.lang.Object
org.apache.geronimo.tomcat.TomcatWebAppContext
- All Implemented Interfaces:
- org.apache.geronimo.gbean.GBeanLifecycle, org.apache.geronimo.management.J2EEDeployedObject, org.apache.geronimo.management.J2EEManagedObject, org.apache.geronimo.management.J2EEModule, TomcatContext, org.apache.geronimo.management.geronimo.WebModule, org.apache.geronimo.management.WebModule
- public class TomcatWebAppContext
- extends Object
- implements org.apache.geronimo.gbean.GBeanLifecycle, TomcatContext, org.apache.geronimo.management.geronimo.WebModule
Wrapper for a WebApplicationContext that sets up its J2EE environment.
- Version:
- $Rev: 404881 $ $Date: 2006-05-08 02:21:06 +0200 (Mon, 08 May 2006) $
Constructor Summary |
TomcatWebAppContext(ClassLoader classLoader,
String objectName,
String originalSpecDD,
URL configurationBaseUrl,
SecurityHolder securityHolder,
String virtualServer,
Map componentContext,
Set unshareableResources,
Set applicationManagedSecurityResources,
org.apache.geronimo.transaction.context.OnlineUserTransaction userTransaction,
org.apache.geronimo.transaction.context.TransactionContextManager transactionContextManager,
org.apache.geronimo.transaction.TrackedConnectionAssociator trackedConnectionAssociator,
TomcatContainer container,
org.apache.geronimo.security.jacc.RoleDesignateSource roleDesignateSource,
ObjectRetriever tomcatRealm,
ValveGBean tomcatValveChain,
CatalinaClusterGBean cluster,
ManagerGBean manager,
boolean crossContext,
boolean disableCookies,
Map webServices,
org.apache.geronimo.management.J2EEServer server,
org.apache.geronimo.management.J2EEApplication application,
org.apache.geronimo.kernel.Kernel kernel)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
container
protected final TomcatContainer container
context
protected org.apache.catalina.Context context
GBEAN_INFO
public static final org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
TomcatWebAppContext
public TomcatWebAppContext(ClassLoader classLoader,
String objectName,
String originalSpecDD,
URL configurationBaseUrl,
SecurityHolder securityHolder,
String virtualServer,
Map componentContext,
Set unshareableResources,
Set applicationManagedSecurityResources,
org.apache.geronimo.transaction.context.OnlineUserTransaction userTransaction,
org.apache.geronimo.transaction.context.TransactionContextManager transactionContextManager,
org.apache.geronimo.transaction.TrackedConnectionAssociator trackedConnectionAssociator,
TomcatContainer container,
org.apache.geronimo.security.jacc.RoleDesignateSource roleDesignateSource,
ObjectRetriever tomcatRealm,
ValveGBean tomcatValveChain,
CatalinaClusterGBean cluster,
ManagerGBean manager,
boolean crossContext,
boolean disableCookies,
Map webServices,
org.apache.geronimo.management.J2EEServer server,
org.apache.geronimo.management.J2EEApplication application,
org.apache.geronimo.kernel.Kernel kernel)
throws Exception
getObjectName
public String getObjectName()
- Specified by:
getObjectName
in interface org.apache.geronimo.management.J2EEManagedObject
isStateManageable
public boolean isStateManageable()
- Specified by:
isStateManageable
in interface org.apache.geronimo.management.J2EEManagedObject
isStatisticsProvider
public boolean isStatisticsProvider()
- Specified by:
isStatisticsProvider
in interface org.apache.geronimo.management.J2EEManagedObject
isEventProvider
public boolean isEventProvider()
- Specified by:
isEventProvider
in interface org.apache.geronimo.management.J2EEManagedObject
getWARDirectory
public URL getWARDirectory()
- Specified by:
getWARDirectory
in interface org.apache.geronimo.management.geronimo.WebModule
getWARName
public String getWARName()
- Specified by:
getWARName
in interface org.apache.geronimo.management.geronimo.WebModule
getContainer
public org.apache.geronimo.management.geronimo.WebContainer getContainer()
- Specified by:
getContainer
in interface org.apache.geronimo.management.geronimo.WebModule
getServer
public String getServer()
- Specified by:
getServer
in interface org.apache.geronimo.management.J2EEDeployedObject
getDocBase
public String getDocBase()
- Specified by:
getDocBase
in interface TomcatContext
setDocBase
public void setDocBase(String docBase)
getComponentContext
public Map getComponentContext()
- Specified by:
getComponentContext
in interface TomcatContext
getVirtualServer
public String getVirtualServer()
- Specified by:
getVirtualServer
in interface TomcatContext
getClassLoader
public ClassLoader getClassLoader()
- Specified by:
getClassLoader
in interface TomcatContext
getKernel
public org.apache.geronimo.kernel.Kernel getKernel()
- Specified by:
getKernel
in interface TomcatContext
isDisableCookies
public boolean isDisableCookies()
- Specified by:
isDisableCookies
in interface TomcatContext
getTransactionContextManager
public org.apache.geronimo.transaction.context.TransactionContextManager getTransactionContextManager()
- Specified by:
getTransactionContextManager
in interface TomcatContext
getContext
public org.apache.catalina.Context getContext()
- Specified by:
getContext
in interface TomcatContext
setContext
public void setContext(org.apache.catalina.Context context)
- Specified by:
setContext
in interface TomcatContext
getURLFor
public URL getURLFor()
- Specified by:
getURLFor
in interface org.apache.geronimo.management.geronimo.WebModule
getContextPath
public String getContextPath()
- Specified by:
getContextPath
in interface TomcatContext
setContextPath
public void setContextPath(String path)
getSecurityHolder
public SecurityHolder getSecurityHolder()
- Specified by:
getSecurityHolder
in interface TomcatContext
getApplicationManagedSecurityResources
public Set getApplicationManagedSecurityResources()
- Specified by:
getApplicationManagedSecurityResources
in interface TomcatContext
getTrackedConnectionAssociator
public org.apache.geronimo.transaction.TrackedConnectionAssociator getTrackedConnectionAssociator()
- Specified by:
getTrackedConnectionAssociator
in interface TomcatContext
getUnshareableResources
public Set getUnshareableResources()
- Specified by:
getUnshareableResources
in interface TomcatContext
getRealm
public org.apache.catalina.Realm getRealm()
- Specified by:
getRealm
in interface TomcatContext
getValveChain
public List getValveChain()
- Specified by:
getValveChain
in interface TomcatContext
getCluster
public org.apache.catalina.cluster.CatalinaCluster getCluster()
- Specified by:
getCluster
in interface TomcatContext
getManager
public org.apache.catalina.Manager getManager()
- Specified by:
getManager
in interface TomcatContext
isCrossContext
public boolean isCrossContext()
- Specified by:
isCrossContext
in interface TomcatContext
getWebServices
public Map getWebServices()
- Specified by:
getWebServices
in interface TomcatContext
getServlets
public String[] getServlets()
- Specified by:
getServlets
in interface org.apache.geronimo.management.WebModule
getJavaVMs
public String[] getJavaVMs()
- Specified by:
getJavaVMs
in interface org.apache.geronimo.management.J2EEModule
getDeploymentDescriptor
public String getDeploymentDescriptor()
- Specified by:
getDeploymentDescriptor
in interface org.apache.geronimo.management.J2EEDeployedObject
doStart
public void doStart()
throws Exception
- Specified by:
doStart
in interface org.apache.geronimo.gbean.GBeanLifecycle
- Throws:
Exception
doStop
public void doStop()
throws Exception
- Specified by:
doStop
in interface org.apache.geronimo.gbean.GBeanLifecycle
- Throws:
Exception
doFail
public void doFail()
- Specified by:
doFail
in interface org.apache.geronimo.gbean.GBeanLifecycle
getGBeanInfo
public static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()
Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.