Class HttpSessionMonitor

  • All Implemented Interfaces:
    java.io.Serializable, java.util.EventListener, javax.servlet.http.HttpSessionBindingListener

    public class HttpSessionMonitor
    extends java.lang.Object
    implements javax.servlet.http.HttpSessionBindingListener, java.io.Serializable
    Monitors a HttpSession, collecting data for the PresentationMonitorUtil.EVENT_HTTP_SESSION event.
    Since:
    4.1.0
    Version:
    $Revision$ $Date$
    See Also:
    Serialized Form
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static void monitorSession​(SessionConfig sessionConfig, PageWebResource webResource, javax.servlet.http.HttpSession session, java.lang.String lastTrackId)
      Starts monitoring the given http session.
      void valueBound​(javax.servlet.http.HttpSessionBindingEvent event)  
      void valueUnbound​(javax.servlet.http.HttpSessionBindingEvent event)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • valueBound

        public void valueBound​(javax.servlet.http.HttpSessionBindingEvent event)
        Specified by:
        valueBound in interface javax.servlet.http.HttpSessionBindingListener
      • valueUnbound

        public void valueUnbound​(javax.servlet.http.HttpSessionBindingEvent event)
        Specified by:
        valueUnbound in interface javax.servlet.http.HttpSessionBindingListener
      • monitorSession

        public static void monitorSession​(SessionConfig sessionConfig,
                                          PageWebResource webResource,
                                          javax.servlet.http.HttpSession session,
                                          java.lang.String lastTrackId)
                                   throws PortalException
        Starts monitoring the given http session. This method expects that the current monitor context is properly set.
        Parameters:
        session - the http session.
        lastTrackId - the monitor user identifier.
        Throws:
        PortalException
        Since:
        11.0.0