|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.catalina.core.FastEngineMapper
public final class FastEngineMapper
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.
| Field Summary |
|---|
| 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 | |
|---|---|
FastEngineMapper()
|
|
| Method Summary | |
|---|---|
void |
addLifecycleListener(LifecycleListener listener)
Add a lifecycle event listener to this component. |
void |
containerEvent(ContainerEvent event)
Acknowledge the occurrence of the specified event. |
LifecycleListener[] |
findLifecycleListeners()
Get the lifecycle listeners associated with this lifecycle. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FastEngineMapper()
| Method Detail |
|---|
public Container getContainer()
getContainer in interface Mapperpublic void setContainer(Container container)
setContainer in interface Mappercontainer - The newly associated Container
java.lang.IllegalArgumentException - if this Container is not
acceptable to this Mapperpublic java.lang.String getProtocol()
getProtocol in interface Mapperpublic void setProtocol(java.lang.String protocol)
setProtocol in interface Mapperprotocol - The newly associated protocol
public Container map(Request request,
boolean update)
null instead.
map in interface Mapperrequest - Request being processedupdate - Update the Request to reflect the mapping selection?public void containerEvent(ContainerEvent event)
containerEvent in interface ContainerListenerevent - ContainerEvent that has occurredpublic 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 it from being started
public void stop()
throws LifecycleException
stop in interface LifecycleLifecycleException - if this component detects a fatal error
that needs to be reportedpublic void propertyChange(java.beans.PropertyChangeEvent event)
propertyChange in interface java.beans.PropertyChangeListener
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||