org.apache.catalina.valves
Class PersistentValve
- Contained, MBeanRegistration, Valve
public class PersistentValve
Valve that implements the default basic behavior for the
StandardHost
container implementation.
USAGE CONSTRAINT: To work correctly it requires a PersistentManager.
Version:
- Jean-Frederic Clere
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).
|
createObjectName , getContainer , getContainerName , getController , getDebug , getDomain , getInfo , getObjectName , getParentName , invoke , postDeregister , postRegister , preDeregister , preRegister , setContainer , setController , setDebug , setObjectName |
getInfo
public String getInfo()
Return descriptive information about this Valve implementation.
- getInfo in interface Valve
- 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.
- invoke in interface Valve
- invoke in interface ValveBase
request
- Request to be processedresponse
- Response to be producedvalveContext
- 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).
message
- Message to be logged
Copyright B) 2000-2003 Apache Software Foundation. All Rights Reserved.