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: import java.util.EventObject;
10:
11: /**
12: * Request coming into scope or out of scope event
13: *
14: * @author <a href="mailto:rick_knowles@hotmail.com">Rick Knowles</a>
15: * @version $Id: ServletRequestEvent.java,v 1.2 2006/02/28 07:32:47 rickknowles Exp $
16: */
17: public class ServletRequestEvent extends EventObject {
18: private ServletRequest request;
19:
20: private ServletContext context;
21:
22: public ServletRequestEvent(ServletContext sc, ServletRequest request) {
23: super (sc);
24: this .request = request;
25: this .context = sc;
26: }
27:
28: public ServletRequest getServletRequest() {
29: return this .request;
30: }
31:
32: public ServletContext getServletContext() {
33: return this.context;
34: }
35: }
|