net.sf.jguard.jee.listeners
Class SessionListener
java.lang.Object
net.sf.jguard.jee.listeners.SessionListener
- All Implemented Interfaces:
- EventListener, javax.servlet.http.HttpSessionListener
public class SessionListener
- extends Object
- implements javax.servlet.http.HttpSessionListener
Listener called when the Session is created or destroyed.
- Author:
- Charles Gay
|
Field Summary |
static org.slf4j.Logger |
logger
|
|
Method Summary |
void |
sessionCreated(javax.servlet.http.HttpSessionEvent httpSessionEvent)
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 |
logger
public static final org.slf4j.Logger logger
SessionListener
public SessionListener()
- constructor.
sessionCreated
public void sessionCreated(javax.servlet.http.HttpSessionEvent httpSessionEvent)
- 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)
Copyright © 2004-2011. All Rights Reserved.