Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.server.security.util
Class SpringSessionTrackerListener

java.lang.Object
  extended by 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 SessionTrackers from the Spring web application context and forwards the information about created or destroyed sessions to them.

Author:
Simon Templer

Field Summary
static String BEAN_NAME_TRACKERS_LIST
          Name of the bean that may contain a collection of SessionTracker s.
 
Constructor Summary
SpringSessionTrackerListener()
           
 
Method Summary
protected  Iterable<SessionTracker> getSessionTrackers(javax.servlet.http.HttpSession session)
          Get the available session trackers.
 void sessionCreated(javax.servlet.http.HttpSessionEvent se)
           
 void sessionDestroyed(javax.servlet.http.HttpSessionEvent se)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

SpringSessionTrackerListener

public SpringSessionTrackerListener()
Method Detail

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)

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d