eXo Kernel :: Container 2.4.13-GA

org.exoplatform.container.web
Class AbstractHttpSessionListener

java.lang.Object
  extended by org.exoplatform.container.web.AbstractHttpSessionListener
All Implemented Interfaces:
EventListener, javax.servlet.http.HttpSessionListener

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 Summary
AbstractHttpSessionListener()
           
 
Method Summary
protected  ExoContainer getContainer(javax.servlet.http.HttpSessionEvent event)
           
protected abstract  void onSessionCreated(ExoContainer container, javax.servlet.http.HttpSessionEvent event)
          Allow sub-classes to execute an action when a session is created
protected abstract  void onSessionDestroyed(ExoContainer container, javax.servlet.http.HttpSessionEvent event)
          Allow sub-classes to execute an action when a session is destroyed
protected abstract  boolean requirePortalEnvironment()
          Indicates if it requires that a full portal environment must be set
 void sessionCreated(javax.servlet.http.HttpSessionEvent event)
           
 void sessionDestroyed(javax.servlet.http.HttpSessionEvent event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractHttpSessionListener

public AbstractHttpSessionListener()
Method Detail

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

eXo Kernel :: Container 2.4.13-GA

Copyright © 2015 eXo Platform SAS. All Rights Reserved.