|
eXo Kernel :: Container 2.5.0-GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.container.web.AbstractHttpSessionListener
org.exoplatform.container.context.ContextManagerListener
public class ContextManagerListener
This listener is used to manage the components of scope SessionScoped and RequestScoped
| Constructor Summary | |
|---|---|
ContextManagerListener()
|
|
| Method Summary | |
|---|---|
protected ExoContainer |
getContainer(javax.servlet.ServletRequestEvent event)
|
protected void |
onRequestDestroyed(ExoContainer container,
javax.servlet.ServletRequestEvent event)
Called when a request is destroyed |
protected void |
onRequestInitialized(ExoContainer container,
javax.servlet.ServletRequestEvent event)
Called when a request is created |
protected void |
onSessionCreated(ExoContainer container,
javax.servlet.http.HttpSessionEvent event)
Allow sub-classes to execute an action when a session is created |
protected void |
onSessionDestroyed(ExoContainer container,
javax.servlet.http.HttpSessionEvent event)
Allow sub-classes to execute an action when a session is destroyed |
static void |
registerIfNeeded(ExoContainer container,
javax.servlet.ServletContext context)
Registers dynamically the listener if a ContextManager has been defined and
a context for SessionScoped and/or RequestScoped has been configured. |
void |
requestDestroyed(javax.servlet.ServletRequestEvent event)
|
void |
requestInitialized(javax.servlet.ServletRequestEvent event)
|
protected boolean |
requirePortalEnvironment()
Indicates if it requires that a full portal environment must be set |
| Methods inherited from class org.exoplatform.container.web.AbstractHttpSessionListener |
|---|
getContainer, sessionCreated, sessionDestroyed |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContextManagerListener()
| Method Detail |
|---|
public void requestDestroyed(javax.servlet.ServletRequestEvent event)
requestDestroyed in interface javax.servlet.ServletRequestListenerpublic void requestInitialized(javax.servlet.ServletRequestEvent event)
requestInitialized in interface javax.servlet.ServletRequestListenerprotected boolean requirePortalEnvironment()
requirePortalEnvironment in class AbstractHttpSessionListenertrue if it requires the portal environment false otherwise.
protected void onRequestInitialized(ExoContainer container,
javax.servlet.ServletRequestEvent event)
protected void onRequestDestroyed(ExoContainer container,
javax.servlet.ServletRequestEvent event)
protected void onSessionCreated(ExoContainer container,
javax.servlet.http.HttpSessionEvent event)
onSessionCreated in class AbstractHttpSessionListenercontainer - the eXo containerevent - the HttpSessionEvent
protected void onSessionDestroyed(ExoContainer container,
javax.servlet.http.HttpSessionEvent event)
onSessionDestroyed in class AbstractHttpSessionListenercontainer - the eXo containerevent - the HttpSessionEventprotected final ExoContainer getContainer(javax.servlet.ServletRequestEvent event)
ExoContainer that fits best with the current context
public static void registerIfNeeded(ExoContainer container,
javax.servlet.ServletContext context)
ContextManager has been defined and
a context for SessionScoped and/or RequestScoped has been configured.
container - the container from which we will get the ContextManagercontext - the context to which we want to add the listener
|
eXo Kernel :: Container 2.5.0-GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||