|
|
| WebLogic Server 7.0 Code Examples, BEA Systems, Inc. |
|
SUMMARY: INNER | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD |
examples.servlets.lifecycle
Class SessionAttributeListener
java.lang.Object
|
+--examples.servlets.lifecycle.SessionAttributeListener
- All Implemented Interfaces:
- java.util.EventListener, javax.servlet.http.HttpSessionAttributeListener
- public class SessionAttributeListener
- extends java.lang.Object
- implements javax.servlet.http.HttpSessionAttributeListener
SessionAttribueListener is a servlet listener class that implements the
javax.Servlet.http.HttpSessionAttributeListener interface. This class
implements the attributeAdded, attributeRemoved, and attributeReplaced
methods to log the calls of them to standard out. These methods are called
when a client changes any attributes of an Http Session
- Author:
- Copyright (c) 2002 by BEA Systems, Inc. All Rights Reserved.
|
Method Summary |
void |
attributeAdded(javax.servlet.http.HttpSessionBindingEvent evt)
log the call of attributeAdded. |
void |
attributeRemoved(javax.servlet.http.HttpSessionBindingEvent evt)
log the call of attributeRemoved. |
void |
attributeReplaced(javax.servlet.http.HttpSessionBindingEvent evt)
log the call of attributeReplaced. |
void |
log(java.lang.String s)
log method to prepend all messages from this class with
[SessionAttributeListener] |
| Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SessionAttributeListener
public SessionAttributeListener()
attributeAdded
public void attributeAdded(javax.servlet.http.HttpSessionBindingEvent evt)
- log the call of attributeAdded. This is called when ever an attribute
is bound to the session.
- Specified by:
attributeAdded in interface javax.servlet.http.HttpSessionAttributeListener
attributeRemoved
public void attributeRemoved(javax.servlet.http.HttpSessionBindingEvent evt)
- log the call of attributeRemoved. This is called when ever an attribute
is removed from the session.
- Specified by:
attributeRemoved in interface javax.servlet.http.HttpSessionAttributeListener
attributeReplaced
public void attributeReplaced(javax.servlet.http.HttpSessionBindingEvent evt)
- log the call of attributeReplaced. This is called when ever an attribute
is replaced in the session.
- Specified by:
attributeReplaced in interface javax.servlet.http.HttpSessionAttributeListener
log
public void log(java.lang.String s)
- log method to prepend all messages from this class with
[SessionAttributeListener]
Copyright © 2002 BEA Systems, Inc. All Rights Reserved.