org.apache.catalina.core
クラス StandardService

java.lang.Object
  |
  +--org.apache.catalina.core.StandardService
すべての実装インタフェース:
Lifecycle, Service

public final class StandardService
extends java.lang.Object
implements Lifecycle, Service

Standard implementation of the Service interface. The associated Container is generally an instance of Engine, but this is not required.

バージョン:
$Revision: 1.6 $ $Date: 2001/09/04 19:19:48 $
作成者:
Craig R. McClanahan

インタフェース org.apache.catalina.Lifecycle から継承したフィールド
START_EVENT, STOP_EVENT
 
コンストラクタの概要
StandardService()
           
 
メソッドの概要
 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.
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

StandardService

public StandardService()
メソッドの詳細

getContainer

public Container getContainer()
Return the Container that handles requests for all Connectors associated with this Service.
定義:
インタフェース Service 内の getContainer

setContainer

public void setContainer(Container container)
Set the Container that handles requests for all Connectors associated with this Service.
定義:
インタフェース Service 内の setContainer
パラメータ:
container - The new Container

getInfo

public java.lang.String getInfo()
Return descriptive information about this Service implementation and the corresponding version number, in the format <description>/<version>.
定義:
インタフェース Service 内の getInfo

getName

public java.lang.String getName()
Return the name of this Service.
定義:
インタフェース Service 内の getName

setName

public void setName(java.lang.String name)
Set the name of this Service.
定義:
インタフェース Service 内の setName
パラメータ:
name - The new service name

addConnector

public void addConnector(Connector connector)
Add a new Connector to the set of defined Connectors, and associate it with this Service's Container.
定義:
インタフェース Service 内の addConnector
パラメータ:
connector - The Connector to be added

findConnectors

public Connector[] findConnectors()
Find and return the set of Connectors associated with this Service.
定義:
インタフェース Service 内の findConnectors

removeConnector

public void removeConnector(Connector connector)
Remove the specified Connector from the set associated from this Service. The removed Connector will also be disassociated from our Container.
定義:
インタフェース Service 内の removeConnector
パラメータ:
connector - The Connector to be removed

toString

public java.lang.String toString()
Return a String representation of this component.
オーバーライド:
クラス java.lang.Object 内の toString

addLifecycleListener

public void addLifecycleListener(LifecycleListener listener)
Add a LifecycleEvent listener to this component.
定義:
インタフェース Lifecycle 内の addLifecycleListener
パラメータ:
listener - The listener to add

removeLifecycleListener

public void removeLifecycleListener(LifecycleListener listener)
Remove a LifecycleEvent listener from this component.
定義:
インタフェース Lifecycle 内の removeLifecycleListener
パラメータ:
listener - The listener to remove

start

public void start()
           throws LifecycleException
Prepare for the beginning of active use of the public methods of this component. This method should be called before any of the public methods of this component are utilized. It should also send a LifecycleEvent of type START_EVENT to any registered listeners.
定義:
インタフェース Lifecycle 内の start
例外:
java.lang.IllegalStateException - if this component has already been started
LifecycleException - if this component detects a fatal error that prevents this component from being used

stop

public void stop()
          throws LifecycleException
Gracefully terminate the active use of the public methods of this component. This method should be the last one called on a given instance of this component. It should also send a LifecycleEvent of type STOP_EVENT to any registered listeners.
定義:
インタフェース Lifecycle 内の stop
例外:
java.lang.IllegalStateException - if this component has not been started
LifecycleException - if this component detects a fatal error that needs to be reported

initialize

public void initialize()
                throws LifecycleException
Invoke a pre-startup initialization. This is used to allow connectors to bind to restricted ports under Unix operating environments.
定義:
インタフェース Service 内の initialize
インタフェース org.apache.catalina.Service からコピーされたタグ:
例外:
LifecycleException - If this server was already initialized.


Copyright ? 2000-2001 Apache Software Foundation. All Rights Reserved.