|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object listeners.SessionListener
public final class SessionListener
Example listener for context-related application events, which were introduced in the 2.3 version of the Servlet API. This listener merely documents the occurrence of such events in the application log associated with our servlet context.
Constructor Summary | |
---|---|
SessionListener()
|
Method Summary | |
---|---|
void |
attributeAdded(HttpSessionBindingEvent event)
Record the fact that a servlet context attribute was added. |
void |
attributeRemoved(HttpSessionBindingEvent event)
Record the fact that a servlet context attribute was removed. |
void |
attributeReplaced(HttpSessionBindingEvent event)
Record the fact that a servlet context attribute was replaced. |
void |
contextDestroyed(ServletContextEvent event)
Record the fact that this web application has been destroyed. |
void |
contextInitialized(ServletContextEvent event)
Record the fact that this web application has been initialized. |
void |
sessionCreated(HttpSessionEvent event)
Record the fact that a session has been created. |
void |
sessionDestroyed(HttpSessionEvent event)
Record the fact that a session has been destroyed. |
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 attributeAdded(HttpSessionBindingEvent event)
attributeAdded
in interface HttpSessionAttributeListener
event
- The session attribute eventpublic void attributeRemoved(HttpSessionBindingEvent event)
attributeRemoved
in interface HttpSessionAttributeListener
event
- The session attribute eventpublic void attributeReplaced(HttpSessionBindingEvent event)
attributeReplaced
in interface HttpSessionAttributeListener
event
- The session attribute eventpublic void contextDestroyed(ServletContextEvent event)
contextDestroyed
in interface ServletContextListener
event
- The servlet context eventpublic void contextInitialized(ServletContextEvent event)
contextInitialized
in interface ServletContextListener
event
- The servlet context eventpublic void sessionCreated(HttpSessionEvent event)
sessionCreated
in interface HttpSessionListener
event
- The session eventpublic void sessionDestroyed(HttpSessionEvent event)
sessionDestroyed
in interface HttpSessionListener
event
- The session event
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |