Package org.exoplatform.container.web
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final ExoContainergetContainer(javax.servlet.http.HttpSessionEvent event) protected abstract voidonSessionCreated(ExoContainer container, javax.servlet.http.HttpSessionEvent event) Allow sub-classes to execute an action when a session is createdprotected abstract voidonSessionDestroyed(ExoContainer container, javax.servlet.http.HttpSessionEvent event) Allow sub-classes to execute an action when a session is destroyedprotected abstract booleanIndicates if it requires that a full portal environment must be setfinal voidsessionCreated(javax.servlet.http.HttpSessionEvent event) final voidsessionDestroyed(javax.servlet.http.HttpSessionEvent event)
-
Constructor Details
-
AbstractHttpSessionListener
public AbstractHttpSessionListener()
-
-
Method Details
-
sessionCreated
public final void sessionCreated(javax.servlet.http.HttpSessionEvent event) - Specified by:
sessionCreatedin interfacejavax.servlet.http.HttpSessionListener- See Also:
-
HttpSessionListener.sessionCreated(javax.servlet.http.HttpSessionEvent)
-
sessionDestroyed
public final void sessionDestroyed(javax.servlet.http.HttpSessionEvent event) - Specified by:
sessionDestroyedin interfacejavax.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:
trueif it requires the portal environmentfalseotherwise.
-
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 containerevent- theHttpSessionEvent
-
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 containerevent- theHttpSessionEvent
-
getContainer
- Returns:
- Gives the
ExoContainerthat fits best with the current context
-