You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by jo...@locus.apache.org on 2000/05/15 22:59:50 UTC
cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/core SessionManager.java
jon 00/05/15 13:59:50
Modified: src/share/org/apache/tomcat/core SessionManager.java
Log:
add findSessions() and getSessions() to the interface
Revision Changes Path
1.6 +12 -0 jakarta-tomcat/src/share/org/apache/tomcat/core/SessionManager.java
Index: SessionManager.java
===================================================================
RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/core/SessionManager.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- SessionManager.java 2000/05/12 15:26:39 1.5
+++ SessionManager.java 2000/05/15 20:59:50 1.6
@@ -71,6 +71,7 @@
* @author Craig R. McClanahan
* @author costin@dnt.ro
* @author Gal Shachor shachor@il.ibm.com
+ * @author <a href="mailto:jon@latchkey.com">Jon S. Stevens</a>
*/
public interface SessionManager {
@@ -114,6 +115,17 @@
*/
public HttpSession findSession(String id);
+ /**
+ * Return the set of active Sessions associated with this Manager.
+ * If this Manager has no active Sessions, a zero-length array is returned.
+ */
+ public HttpSession[] findSessions();
+
+ /**
+ This method will return a Hashtable of HttpSession
+ objects.
+ */
+ public Hashtable getSessions();
/** Will mark the session lastAccess time.
* Will be called for each request that has a valid sessionId