|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.turbine.services.session.SessionListener
public class SessionListener
This class is a listener for both session creation and destruction,
and for session activation and passivation. It must be configured
via your web application's web.xml deployment
descriptor as follows for the container to call it:
<listener>
<listener-class>
org.apache.turbine.session.SessionListener
</listener-class>
</listener>
<listener> elemements can occur between
<context-param> and <servlet>
elements in your deployment descriptor.
The sessionCreated(HttpSessionEvent) callback will
automatically add an instance of this listener to any newly created
HttpSession for detection of session passivation and
re-activation.
HttpSessionListener,
Serialized Form| Constructor Summary | |
|---|---|
SessionListener()
|
|
| Method Summary | |
|---|---|
void |
sessionCreated(javax.servlet.http.HttpSessionEvent event)
Called by the servlet container when a new session is created |
void |
sessionDestroyed(javax.servlet.http.HttpSessionEvent event)
Called by the servlet container when a session is destroyed |
void |
sessionDidActivate(javax.servlet.http.HttpSessionEvent event)
Called by the servlet container when an existing session is (re-)activated. |
void |
sessionWillPassivate(javax.servlet.http.HttpSessionEvent event)
Called by the servlet container when a an existing session is passivated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SessionListener()
| Method Detail |
|---|
public void sessionCreated(javax.servlet.http.HttpSessionEvent event)
sessionCreated in interface javax.servlet.http.HttpSessionListenerevent - Session creation event.public void sessionDestroyed(javax.servlet.http.HttpSessionEvent event)
sessionDestroyed in interface javax.servlet.http.HttpSessionListenerevent - Session destruction event.public void sessionDidActivate(javax.servlet.http.HttpSessionEvent event)
sessionDidActivate in interface javax.servlet.http.HttpSessionActivationListenerevent - Session activation event.public void sessionWillPassivate(javax.servlet.http.HttpSessionEvent event)
sessionWillPassivate in interface javax.servlet.http.HttpSessionActivationListenerevent - Session passivation event.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||