eu.esdihumboldt.hale.server.security.util
Class SpringSessionTrackerListener
java.lang.Object
eu.esdihumboldt.hale.server.security.util.SpringSessionTrackerListener
- All Implemented Interfaces:
- EventListener, javax.servlet.http.HttpSessionListener
public class SpringSessionTrackerListener
- extends Object
- implements javax.servlet.http.HttpSessionListener
HTTP session listener that retrieves SessionTracker
s from the Spring
web application context and forwards the information about created or
destroyed sessions to them.
- Author:
- Simon Templer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BEAN_NAME_TRACKERS_LIST
public static final String BEAN_NAME_TRACKERS_LIST
- Name of the bean that may contain a collection of
SessionTracker
s.
- See Also:
- Constant Field Values
SpringSessionTrackerListener
public SpringSessionTrackerListener()
sessionCreated
public void sessionCreated(javax.servlet.http.HttpSessionEvent se)
- Specified by:
sessionCreated
in interface javax.servlet.http.HttpSessionListener
- See Also:
HttpSessionListener.sessionCreated(HttpSessionEvent)
getSessionTrackers
protected Iterable<SessionTracker> getSessionTrackers(javax.servlet.http.HttpSession session)
- Get the available session trackers.
- Parameters:
session
- the HTTP session
- Returns:
- the session trackers or an empty iterable
sessionDestroyed
public void sessionDestroyed(javax.servlet.http.HttpSessionEvent se)
- Specified by:
sessionDestroyed
in interface javax.servlet.http.HttpSessionListener
- See Also:
HttpSessionListener.sessionDestroyed(HttpSessionEvent)
Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d