org.apache.catalina.core
クラス FastEngineMapper

java.lang.Object
  |
  +--org.apache.catalina.core.FastEngineMapper
すべての実装インタフェース:
ContainerListener, java.util.EventListener, Lifecycle, Mapper, java.beans.PropertyChangeListener

public final class FastEngineMapper
extends java.lang.Object
implements ContainerListener, Lifecycle, Mapper, java.beans.PropertyChangeListener

Implementation of Mapper for an Engine, designed to process HTTP requests. This mapper selects an appropriate Host based on the server name included in the request.

IMPLEMENTATION NOTE: This Mapper only works with a StandardEngine, because it relies on internal APIs.

バージョン:
$Revision: 1.2 $ $Date: 2001/07/22 20:25:08 $
作成者:
Craig R. McClanahan

インタフェース org.apache.catalina.Lifecycle から継承したフィールド
START_EVENT, STOP_EVENT
 
コンストラクタの概要
FastEngineMapper()
           
 
メソッドの概要
 void addLifecycleListener(LifecycleListener listener)
          Add a lifecycle event listener to this component.
 void containerEvent(ContainerEvent event)
          Acknowledge the occurrence of the specified event.
 Container getContainer()
          Return the Container with which this Mapper is associated.
 java.lang.String getProtocol()
          Return the protocol for which this Mapper is responsible.
 Container map(Request request, boolean update)
          Return the child Container that should be used to process this Request, based upon its characteristics.
 void propertyChange(java.beans.PropertyChangeEvent event)
          Process a property change event.
 void removeLifecycleListener(LifecycleListener listener)
          Remove a lifecycle event listener from this component.
 void setContainer(Container container)
          Set the Container with which this Mapper is associated.
 void setProtocol(java.lang.String protocol)
          Set the protocol for which this Mapper is responsible.
 void start()
          Prepare for active use of the public methods of this Component.
 void stop()
          Gracefully shut down active use of the public methods of this Component.
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

FastEngineMapper

public FastEngineMapper()
メソッドの詳細

getContainer

public Container getContainer()
Return the Container with which this Mapper is associated.
定義:
インタフェース Mapper 内の getContainer

setContainer

public void setContainer(Container container)
Set the Container with which this Mapper is associated.
定義:
インタフェース Mapper 内の setContainer
パラメータ:
container - The newly associated Container
例外:
java.lang.IllegalArgumentException - if this Container is not acceptable to this Mapper

getProtocol

public java.lang.String getProtocol()
Return the protocol for which this Mapper is responsible.
定義:
インタフェース Mapper 内の getProtocol

setProtocol

public void setProtocol(java.lang.String protocol)
Set the protocol for which this Mapper is responsible.
定義:
インタフェース Mapper 内の setProtocol
パラメータ:
protocol - The newly associated protocol

map

public Container map(Request request,
                     boolean update)
Return the child Container that should be used to process this Request, based upon its characteristics. If no such child Container can be identified, return null instead.
定義:
インタフェース Mapper 内の map
パラメータ:
request - Request being processed
update - Update the Request to reflect the mapping selection?

containerEvent

public void containerEvent(ContainerEvent event)
Acknowledge the occurrence of the specified event.
定義:
インタフェース ContainerListener 内の containerEvent
パラメータ:
event - ContainerEvent that has occurred

addLifecycleListener

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

removeLifecycleListener

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

start

public void start()
           throws LifecycleException
Prepare for active use of the public methods of this Component.
定義:
インタフェース Lifecycle 内の start
例外:
java.lang.IllegalStateException - if this component has already been started
LifecycleException - if this component detects a fatal error that prevents it from being started

stop

public void stop()
          throws LifecycleException
Gracefully shut down active use of the public methods of this Component.
定義:
インタフェース 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

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent event)
Process a property change event.
定義:
インタフェース java.beans.PropertyChangeListener 内の propertyChange


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