Class 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 the JcmsSessionTracker in consequence.
    Since:
    jcms-5.0.0
    Author:
    Olivier Jaquemet
    • Field Detail

      • TRACKING_ATTRIBUTE_NAME

        public static final java.lang.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