01: /*
02: * All content copyright (c) 2003-2007 Terracotta, Inc., except as may otherwise be noted in a separate copyright
03: * notice. All rights reserved.
04: */
05: package com.tctest.webapp.listeners;
06:
07: import com.tctest.webapp.servlets.ListenerReportingServlet;
08:
09: import javax.servlet.http.HttpSessionAttributeListener;
10: import javax.servlet.http.HttpSessionBindingEvent;
11:
12: public class AttributeListener implements HttpSessionAttributeListener {
13:
14: public AttributeListener() {
15: System.err.println("### AttributeListener() is here!!!");
16: }
17:
18: public void attributeAdded(
19: HttpSessionBindingEvent httpsessionbindingevent) {
20: ListenerReportingServlet
21: .incrementCallCount("AttributeListener.attributeAdded");
22: System.err
23: .println("### AttributeListener.attributeAdded() is here!!!");
24: }
25:
26: public void attributeRemoved(
27: HttpSessionBindingEvent httpsessionbindingevent) {
28: System.err
29: .println("### AttributeListener.attributeRemoved() is here!!!");
30: ListenerReportingServlet
31: .incrementCallCount("AttributeListener.attributeRemoved");
32: }
33:
34: public void attributeReplaced(
35: HttpSessionBindingEvent httpsessionbindingevent) {
36: System.err
37: .println("### AttributeListener.attributeReplaced() is here!!!");
38: ListenerReportingServlet
39: .incrementCallCount("AttributeListener.attributeReplaced");
40: }
41: }
|