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;
08:
09: /**
10: * The event thrown to request attribute listeners
11: *
12: * @author <a href="mailto:rick_knowles@hotmail.com">Rick Knowles</a>
13: * @version $Id: ServletRequestAttributeEvent.java,v 1.2 2006/02/28 07:32:47 rickknowles Exp $
14: */
15: public class ServletRequestAttributeEvent extends ServletRequestEvent {
16: private String name;
17:
18: private Object value;
19:
20: public ServletRequestAttributeEvent(ServletContext sc,
21: ServletRequest request, String name, Object value) {
22: super (sc, request);
23: this .name = name;
24: this .value = value;
25: }
26:
27: public String getName() {
28: return this .name;
29: }
30:
31: public Object getValue() {
32: return this.value;
33: }
34: }
|