com.jalios.jcms
Class JcmsSessionTrackerListener

java.lang.Object
  extended by com.jalios.jcms.JcmsSessionTrackerListener
All Implemented Interfaces:
EventListener, javax.servlet.http.HttpSessionAttributeListener, javax.servlet.http.HttpSessionListener

public class JcmsSessionTrackerListener
extends Object
implements javax.servlet.http.HttpSessionAttributeListener, javax.servlet.http.HttpSessionListener

This listener class tracks the addition, replacement or removal of the TRACKING_ATTRIBUTE_NAME attribute to the J2EE session. It updates the JcmsSessionTracker in consequence.

Since:
jcms-5.0.0
Version:
$Revision: 33267 $
Author:
Olivier Jaquemet

Field Summary
static String REVISION
           
static String TRACKING_ATTRIBUTE_NAME
           
 
Constructor Summary
JcmsSessionTrackerListener()
           
 
Method Summary
 void attributeAdded(javax.servlet.http.HttpSessionBindingEvent be)
           
 void attributeRemoved(javax.servlet.http.HttpSessionBindingEvent be)
           
 void attributeReplaced(javax.servlet.http.HttpSessionBindingEvent be)
           
 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

REVISION

public static final String REVISION
See Also:
Constant Field Values

TRACKING_ATTRIBUTE_NAME

public static final String TRACKING_ATTRIBUTE_NAME
See Also:
Constant Field Values
Constructor Detail

JcmsSessionTrackerListener

public JcmsSessionTrackerListener()
Method Detail

attributeAdded

public void attributeAdded(javax.servlet.http.HttpSessionBindingEvent be)
Specified by:
attributeAdded in interface javax.servlet.http.HttpSessionAttributeListener

attributeReplaced

public void attributeReplaced(javax.servlet.http.HttpSessionBindingEvent be)
Specified by:
attributeReplaced in interface javax.servlet.http.HttpSessionAttributeListener

attributeRemoved

public void attributeRemoved(javax.servlet.http.HttpSessionBindingEvent be)
Specified by:
attributeRemoved in interface javax.servlet.http.HttpSessionAttributeListener

sessionCreated

public void sessionCreated(javax.servlet.http.HttpSessionEvent se)
Specified by:
sessionCreated in interface javax.servlet.http.HttpSessionListener

sessionDestroyed

public void sessionDestroyed(javax.servlet.http.HttpSessionEvent se)
Specified by:
sessionDestroyed in interface javax.servlet.http.HttpSessionListener


Copyright © 2001-2010 Jalios SA. All Rights Reserved.