|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.geronimo.tomcat.TomcatContainer
public class TomcatContainer
Apache Tomcat GBean http://wiki.apache.org/geronimo/Tomcat http://nagoya.apache.org/jira/browse/GERONIMO-215
| Field Summary | |
|---|---|
static GBeanInfo |
GBEAN_INFO
|
| Constructor Summary | |
|---|---|
TomcatContainer()
|
|
TomcatContainer(ClassLoader classLoader,
String catalinaHome,
String[] applicationListeners,
ObjectRetriever engineGBean,
LifecycleListenerGBean listenerChain,
ServerInfo serverInfo,
String objectName,
WebManager manager)
GBean constructor (invoked dynamically when the gbean is declared in a plan) |
|
| Method Summary | |
|---|---|
void |
addConnector(org.apache.catalina.connector.Connector connector)
|
void |
addContext(TomcatContext ctx)
Creates and adds the context to the running host It simply delegates the call to Tomcat's Embedded and Host classes |
void |
addWebService(String contextPath,
String[] virtualHosts,
WebServiceContainer webServiceContainer,
String securityRealmName,
String realmName,
String transportGuarantee,
String authMethod,
ClassLoader classLoader)
|
void |
doFail()
Fails the GBean. |
void |
doStart()
Instantiate and start up Tomcat's Embedded class See org.apache.catalina.startup.Embedded for details (TODO: provide the link to the javadoc) |
void |
doStop()
Stops the target. |
NetworkConnector[] |
getConnectors()
Gets any existing connectors associated with this network container. |
NetworkConnector[] |
getConnectors(String protocol)
Gets any existing connectors for this network container for the specified protocol. |
static GBeanInfo |
getGBeanInfo()
|
String |
getObjectName()
Gets the unique name of this object. |
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 |
removeConnector(org.apache.catalina.connector.Connector connector)
|
void |
removeContext(TomcatContext ctx)
|
void |
removeWebService(String contextPath)
|
void |
setCatalinaHome(String catalinaHome)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final GBeanInfo GBEAN_INFO
| Constructor Detail |
|---|
public TomcatContainer()
public TomcatContainer(ClassLoader classLoader,
String catalinaHome,
String[] applicationListeners,
ObjectRetriever engineGBean,
LifecycleListenerGBean listenerChain,
ServerInfo serverInfo,
String objectName,
WebManager manager)
| Method Detail |
|---|
public String getObjectName()
J2EEManagedObject
getObjectName in interface J2EEManagedObjectpublic boolean isStateManageable()
J2EEManagedObject
isStateManageable in interface J2EEManagedObjectpublic boolean isStatisticsProvider()
J2EEManagedObject
isStatisticsProvider in interface J2EEManagedObjectpublic boolean isEventProvider()
J2EEManagedObject
isEventProvider in interface J2EEManagedObjectpublic NetworkConnector[] getConnectors()
NetworkContainer
getConnectors in interface NetworkContainerpublic NetworkConnector[] getConnectors(String protocol)
NetworkContainer
getConnectors in interface NetworkContainerprotocol - A protocol as returned by getSupportedProtocolspublic void doFail()
GBeanLifecycle
doFail in interface GBeanLifecycle
public void doStart()
throws Exception
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 state
public void addContext(TomcatContext ctx)
throws Exception
ctx - the context to be added
ExceptionEmbedded,
Hostpublic void removeContext(TomcatContext ctx)
public void setCatalinaHome(String catalinaHome)
public void addConnector(org.apache.catalina.connector.Connector connector)
public void removeConnector(org.apache.catalina.connector.Connector connector)
public void addWebService(String contextPath,
String[] virtualHosts,
WebServiceContainer webServiceContainer,
String securityRealmName,
String realmName,
String transportGuarantee,
String authMethod,
ClassLoader classLoader)
throws Exception
addWebService in interface SoapHandlerExceptionpublic void removeWebService(String contextPath)
removeWebService in interface SoapHandlerpublic static GBeanInfo getGBeanInfo()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||