org.apache.geronimo.tomcat
Class TomcatContainer
java.lang.Object
org.apache.geronimo.tomcat.TomcatContainer
- All Implemented Interfaces:
- org.apache.geronimo.gbean.GBeanLifecycle, org.apache.geronimo.management.geronimo.NetworkContainer, org.apache.geronimo.management.geronimo.WebContainer, org.apache.geronimo.management.J2EEManagedObject, TomcatWebContainer, org.apache.geronimo.webservices.SoapHandler
public class TomcatContainer
- extends Object
- implements org.apache.geronimo.webservices.SoapHandler, org.apache.geronimo.gbean.GBeanLifecycle, TomcatWebContainer
Apache Tomcat GBean
http://wiki.apache.org/geronimo/Tomcat
http://nagoya.apache.org/jira/browse/GERONIMO-215
Field Summary |
static org.apache.geronimo.gbean.GBeanInfo |
GBEAN_INFO
|
Constructor Summary |
TomcatContainer()
|
TomcatContainer(ClassLoader classLoader,
String catalinaHome,
ObjectRetriever engineGBean,
org.apache.geronimo.system.serverinfo.ServerInfo serverInfo,
String objectName,
org.apache.geronimo.management.geronimo.WebManager manager)
GBean constructor (invoked dynamically when the gbean is declared in a plan) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GBEAN_INFO
public static final org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
TomcatContainer
public TomcatContainer()
TomcatContainer
public TomcatContainer(ClassLoader classLoader,
String catalinaHome,
ObjectRetriever engineGBean,
org.apache.geronimo.system.serverinfo.ServerInfo serverInfo,
String objectName,
org.apache.geronimo.management.geronimo.WebManager manager)
- GBean constructor (invoked dynamically when the gbean is declared in a plan)
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
getConnectors
public org.apache.geronimo.management.geronimo.NetworkConnector[] getConnectors()
- Specified by:
getConnectors
in interface org.apache.geronimo.management.geronimo.NetworkContainer
getConnectors
public org.apache.geronimo.management.geronimo.NetworkConnector[] getConnectors(String protocol)
- Specified by:
getConnectors
in interface org.apache.geronimo.management.geronimo.NetworkContainer
doFail
public void doFail()
- Specified by:
doFail
in interface org.apache.geronimo.gbean.GBeanLifecycle
doStart
public void doStart()
throws Exception
- Instantiate and start up Tomcat's Embedded class
See org.apache.catalina.startup.Embedded for details (TODO: provide the link to the javadoc)
- 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
addContext
public void addContext(TomcatContext ctx)
throws Exception
- Creates and adds the context to the running host
It simply delegates the call to Tomcat's Embedded and Host classes
- Parameters:
ctx
- the context to be added
- Throws:
Exception
- See Also:
Embedded
,
Host
removeContext
public void removeContext(TomcatContext ctx)
setCatalinaHome
public void setCatalinaHome(String catalinaHome)
addConnector
public void addConnector(org.apache.catalina.connector.Connector connector)
removeConnector
public void removeConnector(org.apache.catalina.connector.Connector connector)
addWebService
public void addWebService(String contextPath,
String[] virtualHosts,
org.apache.geronimo.webservices.WebServiceContainer webServiceContainer,
String securityRealmName,
String realmName,
String transportGuarantee,
String authMethod,
ClassLoader classLoader)
throws Exception
- Specified by:
addWebService
in interface org.apache.geronimo.webservices.SoapHandler
- Throws:
Exception
removeWebService
public void removeWebService(String contextPath)
- Specified by:
removeWebService
in interface org.apache.geronimo.webservices.SoapHandler
getGBeanInfo
public static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()
Copyright © 2006 Apache Software Foundation. All Rights Reserved.