Class SessionActivationListener

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

    public class SessionActivationListener
    extends java.lang.Object
    implements javax.servlet.http.HttpSessionActivationListener, java.io.Serializable
    Added to each session to monitor activation events.
    Author:
    Thomas Riley
    See Also:
    SessionListener, Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void sessionDidActivate​(javax.servlet.http.HttpSessionEvent event)
      Called after a session is unserialised.
      void sessionWillPassivate​(javax.servlet.http.HttpSessionEvent event)
      Called just before serialising to disk.
      • Methods inherited from class java.lang.Object

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

      • SessionActivationListener

        public SessionActivationListener()
    • Method Detail

      • sessionWillPassivate

        public void sessionWillPassivate​(javax.servlet.http.HttpSessionEvent event)
        Called just before serialising to disk. Remove things that will fail to serialise and replace some things with a serialisable form.
        Specified by:
        sessionWillPassivate in interface javax.servlet.http.HttpSessionActivationListener
        Parameters:
        event - the session event
      • sessionDidActivate

        public void sessionDidActivate​(javax.servlet.http.HttpSessionEvent event)
        Called after a session is unserialised.
        Specified by:
        sessionDidActivate in interface javax.servlet.http.HttpSessionActivationListener
        Parameters:
        event - session event