|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.catalina.core.StandardService
Standard implementation of the Service interface. The
associated Container is generally an instance of Engine, but this is
not required.
| Field Summary | |
protected java.beans.PropertyChangeSupport |
support
The property change support for this component. |
| Fields inherited from interface org.apache.catalina.Lifecycle |
AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, 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. |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Add a property change listener to this component. |
Connector[] |
findConnectors()
Find and return the set of Connectors associated with this Service. |
LifecycleListener[] |
findLifecycleListeners()
Get the lifecycle listeners associated with this lifecycle. |
Container |
getContainer()
Return the Container that handles requests for all
Connectors associated with this Service. |
int |
getDebug()
Return the debugging detail level of this component. |
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. |
Server |
getServer()
Return the Server with which we are associated (if any). |
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 |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Remove a property change listener from this component. |
void |
setContainer(Container container)
Set the Container that handles requests for all
Connectors associated with this Service. |
void |
setDebug(int debug)
Set the debugging detail level of this component. |
void |
setName(java.lang.String name)
Set the name of this Service. |
void |
setServer(Server server)
Set the Server with which we are associated (if any). |
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 |
| Field Detail |
protected java.beans.PropertyChangeSupport support
| 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 int getDebug()
public void setDebug(int debug)
debug - The new debugging detail levelpublic 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 Server getServer()
Server with which we are associated (if any).
getServer in interface Servicepublic void setServer(Server server)
Server with which we are associated (if any).
setServer in interface Serviceserver - The server that owns this Servicepublic void addConnector(Connector connector)
addConnector in interface Serviceconnector - The Connector to be addedpublic void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
listener - The listener to addpublic Connector[] findConnectors()
findConnectors in interface Servicepublic void removeConnector(Connector connector)
removeConnector in interface Serviceconnector - The Connector to be removedpublic void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener - The listener to removepublic java.lang.String toString()
public void addLifecycleListener(LifecycleListener listener)
addLifecycleListener in interface Lifecyclelistener - The listener to addpublic LifecycleListener[] findLifecycleListeners()
findLifecycleListeners in interface Lifecyclepublic void removeLifecycleListener(LifecycleListener listener)
removeLifecycleListener in interface Lifecyclelistener - The listener to remove
public void start()
throws LifecycleException
start in interface LifecycleLifecycleException - if this component detects a fatal error
that prevents this component from being used
public void stop()
throws LifecycleException
stop in interface LifecycleLifecycleException - if this component detects a fatal error
that needs to be reported
public void initialize()
throws LifecycleException
initialize in interface ServiceLifecycleException - If this server was already initialized.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||