org.apache.catalina.valves

Class PersistentValve

Implemented Interfaces:
Contained, MBeanRegistration, Valve

public class PersistentValve
extends ValveBase

Valve that implements the default basic behavior for the StandardHost container implementation.

USAGE CONSTRAINT: To work correctly it requires a PersistentManager.

Version:
$Revision: 1.5 $ $Date: 2004/02/27 14:58:52 $

Author:
Jean-Frederic Clere

Field Summary

Fields inherited from class org.apache.catalina.valves.ValveBase

container, controller, debug, domain, info, mserver, oname, sm

Method Summary

String
getInfo()
Return descriptive information about this Valve implementation.
void
invoke(Request request, Response response, ValveContext valveContext)
Select the appropriate child Context to process this request, based on the specified request URI.
protected boolean
isSessionStale(Session session, long timeNow)
Indicate whether the session has been idle for longer than its expiration date as of the supplied time.
protected void
log(String message)
Log a message on the Logger associated with our Container (if any).

Methods inherited from class org.apache.catalina.valves.ValveBase

createObjectName, getContainer, getContainerName, getController, getDebug, getDomain, getInfo, getObjectName, getParentName, invoke, postDeregister, postRegister, preDeregister, preRegister, setContainer, setController, setDebug, setObjectName

Method Details

getInfo

public String getInfo()
Return descriptive information about this Valve implementation.
Specified by:
getInfo in interface Valve
Overrides:
getInfo in interface ValveBase


invoke

public void invoke(Request request,
                   Response response,
                   ValveContext valveContext)
            throws IOException,
                   ServletException
Select the appropriate child Context to process this request, based on the specified request URI. If no matching Context can be found, return an appropriate HTTP error.
Specified by:
invoke in interface Valve
Overrides:
invoke in interface ValveBase

Parameters:
request - Request to be processed
response - Response to be produced
valveContext - Valve context used to forward to the next Valve


isSessionStale

protected boolean isSessionStale(Session session,
                                 long timeNow)
Indicate whether the session has been idle for longer than its expiration date as of the supplied time. FIXME: Probably belongs in the Session class.


log

protected void log(String message)
Log a message on the Logger associated with our Container (if any).

Parameters:
message - Message to be logged


Copyright B) 2000-2003 Apache Software Foundation. All Rights Reserved.