net.spy.jwebkit
Class SessionWatcher

java.lang.Object
  extended by net.spy.SpyObject
      extended by net.spy.jwebkit.SessionWatcher
All Implemented Interfaces:
java.util.EventListener, javax.servlet.http.HttpSessionListener

public class SessionWatcher
extends net.spy.SpyObject
implements javax.servlet.http.HttpSessionListener

Watch session creation and destruction and provide access to all active sessions in the system.


Nested Class Summary
static class SessionWatcher.SessionStorage
          Storage for sessions.
 
Constructor Summary
SessionWatcher()
           
 
Method Summary
 void sessionCreated(javax.servlet.http.HttpSessionEvent se)
          Called when a session is created.
 void sessionDestroyed(javax.servlet.http.HttpSessionEvent se)
          Called when a session is destroyed.
 
Methods inherited from class net.spy.SpyObject
getLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionWatcher

public SessionWatcher()
Method Detail

sessionCreated

public void sessionCreated(javax.servlet.http.HttpSessionEvent se)
Called when a session is created.

Specified by:
sessionCreated in interface javax.servlet.http.HttpSessionListener
Parameters:
se - the session event

sessionDestroyed

public void sessionDestroyed(javax.servlet.http.HttpSessionEvent se)
Called when a session is destroyed.

Specified by:
sessionDestroyed in interface javax.servlet.http.HttpSessionListener
Parameters:
se - the session event that wraps the session


Copyright © 1995-2007 SPY Internetworking. All Rights Reserved.