org.apache.geronimo.tomcat
Class TomcatWebAppContext

java.lang.Object
  extended by 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, org.apache.geronimo.management.WebModule, TomcatContext

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.


Field Summary
protected  TomcatContainer container
           
protected  org.apache.catalina.Context context
           
static org.apache.geronimo.gbean.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, 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)
           
 
Method Summary
 void doFail()
           
 void doStart()
           
 void doStop()
           
 Set getApplicationManagedSecurityResources()
           
 ClassLoader getClassLoader()
           
 org.apache.catalina.cluster.CatalinaCluster getCluster()
           
 Map getComponentContext()
           
 org.apache.geronimo.management.geronimo.WebContainer getContainer()
           
 org.apache.catalina.Context getContext()
           
 String getContextPath()
           
 String getDeploymentDescriptor()
           
 String getDocBase()
           
static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()
           
 String getJ2EEApplication()
           
 String getJ2EEServer()
           
 String[] getJavaVMs()
           
 org.apache.geronimo.kernel.Kernel getKernel()
           
 org.apache.catalina.Manager getManager()
           
 String getObjectName()
           
 org.apache.catalina.Realm getRealm()
           
 SecurityHolder getSecurityHolder()
           
 String getServer()
           
 String[] getServlets()
           
 org.apache.geronimo.connector.outbound.connectiontracking.TrackedConnectionAssociator getTrackedConnectionAssociator()
           
 Set getUnshareableResources()
           
 URL getURLFor()
           
 UserTransaction getUserTransaction()
           
 List getValveChain()
           
 String getVirtualServer()
           
 URL getWARDirectory()
           
 String getWARName()
           
 Map getWebServices()
           
 boolean isCrossContext()
           
 boolean isDisableCookies()
           
 boolean isEventProvider()
           
 boolean isStateManageable()
           
 boolean isStatisticsProvider()
           
 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

container

protected final TomcatContainer container

context

protected org.apache.catalina.Context context

GBEAN_INFO

public static final org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
Constructor Detail

TomcatWebAppContext

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,
                           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
Throws:
Exception
Method Detail

getObjectName

public String getObjectName()
Specified by:
getObjectName in interface org.apache.geronimo.management.J2EEManagedObject

getJ2EEApplication

public String getJ2EEApplication()

getJ2EEServer

public String getJ2EEServer()

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()

getWARName

public String getWARName()

getContainer

public org.apache.geronimo.management.geronimo.WebContainer getContainer()

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)

getUserTransaction

public UserTransaction getUserTransaction()
Specified by:
getUserTransaction in interface TomcatContext

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

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()

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.connector.outbound.connectiontracking.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 © 2006 Apache Software Foundation. All Rights Reserved.