Package com.jalios.jcms
Class JcmsSessionTrackerListener
- java.lang.Object
-
- com.jalios.jcms.JcmsSessionTrackerListener
-
- All Implemented Interfaces:
java.util.EventListener
,javax.servlet.http.HttpSessionAttributeListener
,javax.servlet.http.HttpSessionListener
public class JcmsSessionTrackerListener extends java.lang.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 theJcmsSessionTracker
in consequence.- Since:
- jcms-5.0.0
- Author:
- Olivier Jaquemet
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
TRACKING_ATTRIBUTE_NAME
-
Constructor Summary
Constructors Constructor Description JcmsSessionTrackerListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
-
-
-
Field Detail
-
TRACKING_ATTRIBUTE_NAME
public static final java.lang.String TRACKING_ATTRIBUTE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
attributeAdded
public void attributeAdded(javax.servlet.http.HttpSessionBindingEvent be)
- Specified by:
attributeAdded
in interfacejavax.servlet.http.HttpSessionAttributeListener
-
attributeReplaced
public void attributeReplaced(javax.servlet.http.HttpSessionBindingEvent be)
- Specified by:
attributeReplaced
in interfacejavax.servlet.http.HttpSessionAttributeListener
-
attributeRemoved
public void attributeRemoved(javax.servlet.http.HttpSessionBindingEvent be)
- Specified by:
attributeRemoved
in interfacejavax.servlet.http.HttpSessionAttributeListener
-
sessionCreated
public void sessionCreated(javax.servlet.http.HttpSessionEvent se)
- Specified by:
sessionCreated
in interfacejavax.servlet.http.HttpSessionListener
-
sessionDestroyed
public void sessionDestroyed(javax.servlet.http.HttpSessionEvent se)
- Specified by:
sessionDestroyed
in interfacejavax.servlet.http.HttpSessionListener
-
-