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 Constructor Description AbstractHttpSessionListener()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected 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 booleanrequirePortalEnvironment()Indicates if it requires that a full portal environment must be setvoidsessionCreated(javax.servlet.http.HttpSessionEvent event)voidsessionDestroyed(javax.servlet.http.HttpSessionEvent event)
-
-
-
Method Detail
-
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
protected final ExoContainer getContainer(javax.servlet.http.HttpSessionEvent event)
- Returns:
- Gives the
ExoContainerthat fits best with the current context
-
-