Class AbstractHttpSessionListener

java.lang.Object
org.exoplatform.container.web.AbstractHttpSessionListener
All Implemented Interfaces:
EventListener, javax.servlet.http.HttpSessionListener
Direct Known Subclasses:
ContextManagerListener

public abstract class AbstractHttpSessionListener extends Object implements javax.servlet.http.HttpSessionListener
Created by The eXo Platform SAS Author : Nicolas Filotto nicolas.filotto@exoplatform.com 29 sept. 2009
  • Constructor Details

    • AbstractHttpSessionListener

      public AbstractHttpSessionListener()
  • Method Details

    • sessionCreated

      public final void sessionCreated(javax.servlet.http.HttpSessionEvent event)
      Specified by:
      sessionCreated in interface javax.servlet.http.HttpSessionListener
      See Also:
      • HttpSessionListener.sessionCreated(javax.servlet.http.HttpSessionEvent)
    • sessionDestroyed

      public final void sessionDestroyed(javax.servlet.http.HttpSessionEvent event)
      Specified by:
      sessionDestroyed in interface javax.servlet.http.HttpSessionListener
      See Also:
      • HttpSessionListener.sessionDestroyed(javax.servlet.http.HttpSessionEvent)
    • requirePortalEnvironment

      protected abstract boolean requirePortalEnvironment()
      Indicates if it requires that a full portal environment must be set
      Returns:
      true if it requires the portal environment false otherwise.
    • onSessionCreated

      protected abstract void onSessionCreated(ExoContainer container, javax.servlet.http.HttpSessionEvent event)
      Allow sub-classes to execute an action when a session is created
      Parameters:
      container - the eXo container
      event - the HttpSessionEvent
    • onSessionDestroyed

      protected abstract void onSessionDestroyed(ExoContainer container, javax.servlet.http.HttpSessionEvent event)
      Allow sub-classes to execute an action when a session is destroyed
      Parameters:
      container - the eXo container
      event - the HttpSessionEvent
    • getContainer

      protected final ExoContainer getContainer(javax.servlet.http.HttpSessionEvent event)
      Returns:
      Gives the ExoContainer that fits best with the current context