01: /*
02: * Copyright 2003-2006 Rick Knowles <winstone-devel at lists sourceforge net>
03: * Distributed under the terms of either:
04: * - the common development and distribution license (CDDL), v1.0; or
05: * - the GNU Lesser General Public License, v2.1 or later
06: */
07: package javax.servlet.http;
08:
09: /**
10: * An object addition or removal notification
11: *
12: * @author <a href="mailto:rick_knowles@hotmail.com">Rick Knowles</a>
13: */
14: public class HttpSessionBindingEvent extends HttpSessionEvent {
15: private String name;
16:
17: private Object value;
18:
19: public HttpSessionBindingEvent(HttpSession session, String name) {
20: super (session);
21: this .name = name;
22: }
23:
24: public HttpSessionBindingEvent(HttpSession session, String name,
25: Object value) {
26: this (session, name);
27: this .value = value;
28: }
29:
30: public String getName() {
31: return this .name;
32: }
33:
34: public Object getValue() {
35: return this.value;
36: }
37:
38: }
|