Package org.exoplatform.container.web
Class AbstractHttpSessionListener
java.lang.Object
org.exoplatform.container.web.AbstractHttpSessionListener
- All Implemented Interfaces:
jakarta.servlet.http.HttpSessionListener,EventListener
- Direct Known Subclasses:
ContextManagerListener
public abstract class AbstractHttpSessionListener
extends Object
implements jakarta.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(jakarta.servlet.http.HttpSessionEvent event) protected abstract voidonSessionCreated(ExoContainer container, jakarta.servlet.http.HttpSessionEvent event) Allow sub-classes to execute an action when a session is createdprotected abstract voidonSessionDestroyed(ExoContainer container, jakarta.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(jakarta.servlet.http.HttpSessionEvent event) final voidsessionDestroyed(jakarta.servlet.http.HttpSessionEvent event)
-
Constructor Details
-
AbstractHttpSessionListener
public AbstractHttpSessionListener()
-
-
Method Details
-
sessionCreated
public final void sessionCreated(jakarta.servlet.http.HttpSessionEvent event) - Specified by:
sessionCreatedin interfacejakarta.servlet.http.HttpSessionListener- See Also:
-
HttpSessionListener.sessionCreated(jakarta.servlet.http.HttpSessionEvent)
-
sessionDestroyed
public final void sessionDestroyed(jakarta.servlet.http.HttpSessionEvent event) - Specified by:
sessionDestroyedin interfacejakarta.servlet.http.HttpSessionListener- See Also:
-
HttpSessionListener.sessionDestroyed(jakarta.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, jakarta.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, jakarta.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
-