| java.lang.Object org.apache.catalina.valves.ValveBase org.apache.catalina.valves.CometConnectionManagerValve
CometConnectionManagerValve | public class CometConnectionManagerValve extends ValveBase implements Lifecycle,HttpSessionListener,LifecycleListener(Code) | | Implementation of a Valve that tracks Comet connections, and closes them
when the associated session expires or the webapp is reloaded.
This Valve should be attached to a Context.
author: Remy Maucherat version: $Revision: 467222 $ $Date: 2006-10-24 05:17:11 +0200 (mar., 24 oct. 2006) $ |
Inner Class :protected class ConnectionInfo | |
info | final protected static String info(Code) | | The descriptive information related to this implementation.
|
started | protected boolean started(Code) | | Has this component been started yet?
|
addLifecycleListener | public void addLifecycleListener(LifecycleListener listener)(Code) | | Add a lifecycle event listener to this component.
Parameters: listener - The listener to add |
findLifecycleListeners | public LifecycleListener[] findLifecycleListeners()(Code) | | Get the lifecycle listeners associated with this lifecycle. If this
Lifecycle has no listeners registered, a zero-length array is returned.
|
getInfo | public String getInfo()(Code) | | Return descriptive information about this Valve implementation.
|
invoke | public void invoke(Request request, Response response) throws IOException, ServletException(Code) | | Register requests for tracking, whenever needed.
Parameters: request - The servlet request to be processed Parameters: response - The servlet response to be created exception: IOException - if an input/output error occurs exception: ServletException - if a servlet error occurs |
removeLifecycleListener | public void removeLifecycleListener(LifecycleListener listener)(Code) | | Remove a lifecycle event listener from this component.
Parameters: listener - The listener to add |
start | public void start() throws LifecycleException(Code) | | Prepare for the beginning of active use of the public methods of this
component. This method should be called after configure() ,
and before any of the public methods of the component are utilized.
exception: LifecycleException - if this component detects a fatal errorthat prevents this component from being used |
stop | public void stop() throws LifecycleException(Code) | | 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.
exception: LifecycleException - if this component detects a fatal errorthat needs to be reported |
|
|