| 
 | Apache Tomcat 6.0.53 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.catalina.valves.ValveBase
org.apache.catalina.valves.PersistentValve
public class PersistentValve
Valve that implements per-request session persistence. It is intended to be used with non-sticky load-balancers.
USAGE CONSTRAINT: To work correctly it requires a PersistentManager.
USAGE CONSTRAINT: To work correctly it assumes only one request exists per session at any one time.
| Field Summary | 
|---|
| Fields inherited from class org.apache.catalina.valves.ValveBase | 
|---|
| container, containerLog, controller, domain, mserver, next, oname | 
| Constructor Summary | |
|---|---|
| PersistentValve() | |
| Method Summary | |
|---|---|
|  java.lang.String | getInfo()Return descriptive information about this Valve implementation. | 
|  void | invoke(Request request,
       Response response)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. | 
|  void | setContainer(Container container)Set the Container with which this Valve is associated, if any. | 
| Methods inherited from class org.apache.catalina.valves.ValveBase | 
|---|
| backgroundProcess, createObjectName, event, getContainer, getContainerName, getController, getDomain, getNext, getObjectName, getParentName, postDeregister, postRegister, preDeregister, preRegister, setController, setNext, setObjectName, toString | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public PersistentValve()
| Method Detail | 
|---|
public java.lang.String getInfo()
getInfo in interface ValvegetInfo in class ValveBasepublic void setContainer(Container container)
ValveBase
setContainer in interface ContainedsetContainer in class ValveBasecontainer - The new associated container
public void invoke(Request request,
                   Response response)
            throws java.io.IOException,
                   javax.servlet.ServletException
invoke in interface Valveinvoke in class ValveBaserequest - Request to be processedresponse - Response to be produced
java.io.IOException - if an input/output error occurred
javax.servlet.ServletException - if a servlet error occurred
protected boolean isSessionStale(Session session,
                                 long timeNow)
| 
 | Apache Tomcat 6.0.53 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||