|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.apache.catalina.core.StandardService
Standard implementation of the Service interface. The
associated Container is generally an instance of Engine, but this is
not required.
| Fields inherited from interface org.apache.catalina.Lifecycle |
START_EVENT, STOP_EVENT |
| Constructor Summary | |
StandardService()
|
|
| Method Summary | |
void |
addConnector(Connector connector)
Add a new Connector to the set of defined Connectors, and associate it with this Service's Container. |
void |
addLifecycleListener(LifecycleListener listener)
Add a LifecycleEvent listener to this component. |
Connector[] |
findConnectors()
Find and return the set of Connectors associated with this Service. |
Container |
getContainer()
Return the Container that handles requests for all
Connectors associated with this Service. |
java.lang.String |
getInfo()
Return descriptive information about this Service implementation and the corresponding version number, in the format <description>/<version>. |
java.lang.String |
getName()
Return the name of this Service. |
void |
initialize()
Invoke a pre-startup initialization. |
void |
removeConnector(Connector connector)
Remove the specified Connector from the set associated from this Service. |
void |
removeLifecycleListener(LifecycleListener listener)
Remove a LifecycleEvent listener from this component. |
void |
setContainer(Container container)
Set the Container that handles requests for all
Connectors associated with this Service. |
void |
setName(java.lang.String name)
Set the name of this Service. |
void |
start()
Prepare for the beginning of active use of the public methods of this component. |
void |
stop()
Gracefully terminate the active use of the public methods of this component. |
java.lang.String |
toString()
Return a String representation of this component. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public StandardService()
| Method Detail |
public Container getContainer()
Container that handles requests for all
Connectors associated with this Service.getContainer in interface Servicepublic void setContainer(Container container)
Container that handles requests for all
Connectors associated with this Service.setContainer in interface Servicecontainer - The new Containerpublic java.lang.String getInfo()
<description>/<version>.getInfo in interface Servicepublic java.lang.String getName()
getName in interface Servicepublic void setName(java.lang.String name)
setName in interface Servicename - The new service namepublic void addConnector(Connector connector)
addConnector in interface Serviceconnector - The Connector to be addedpublic Connector[] findConnectors()
findConnectors in interface Servicepublic void removeConnector(Connector connector)
removeConnector in interface Serviceconnector - The Connector to be removedpublic java.lang.String toString()
toString in class java.lang.Objectpublic void addLifecycleListener(LifecycleListener listener)
addLifecycleListener in interface Lifecyclelistener - The listener to addpublic void removeLifecycleListener(LifecycleListener listener)
removeLifecycleListener in interface Lifecyclelistener - The listener to remove
public void start()
throws LifecycleException
start in interface Lifecyclejava.lang.IllegalStateException - if this component has already been
startedLifecycleException - if this component detects a fatal error
that prevents this component from being used
public void stop()
throws LifecycleException
stop in interface Lifecyclejava.lang.IllegalStateException - if this component has not been startedLifecycleException - if this component detects a fatal error
that needs to be reported
public void initialize()
throws LifecycleException
initialize in interface Serviceorg.apache.catalina.ServiceLifecycleException - If this server was already initialized.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||