net.sf.jguard.listeners
Class SessionListener

java.lang.Object
  extended bynet.sf.jguard.listeners.SessionListener
All Implemented Interfaces:
java.util.EventListener, javax.servlet.http.HttpSessionListener

public class SessionListener
extends java.lang.Object
implements javax.servlet.http.HttpSessionListener

Listener called when the Session is created or destroyed.

Author:
Charles Gay

Constructor Summary
SessionListener()
          constructor.
 
Method Summary
 void sessionCreated(javax.servlet.http.HttpSessionEvent arg0)
          method called when the sesion is created.
 void sessionDestroyed(javax.servlet.http.HttpSessionEvent httpSessionEvent)
          method called when session expired: we logout the loginModules.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionListener

public SessionListener()
constructor.

Method Detail

sessionCreated

public void sessionCreated(javax.servlet.http.HttpSessionEvent arg0)
method called when the sesion is created.

Specified by:
sessionCreated in interface javax.servlet.http.HttpSessionListener
See Also:
HttpSessionListener.sessionCreated(javax.servlet.http.HttpSessionEvent)

sessionDestroyed

public void sessionDestroyed(javax.servlet.http.HttpSessionEvent httpSessionEvent)
method called when session expired: we logout the loginModules. The subject and all others objects bound to the Session will be removed.

Specified by:
sessionDestroyed in interface javax.servlet.http.HttpSessionListener
See Also:
HttpSessionListener.sessionDestroyed(javax.servlet.http.HttpSessionEvent)