01:
02: /*
03: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
04: *
05: * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
06: *
07: * Portions Copyright Apache Software Foundation.
08: *
09: * The contents of this file are subject to the terms of either the GNU
10: * General Public License Version 2 only ("GPL") or the Common Development
11: * and Distribution License("CDDL") (collectively, the "License"). You
12: * may not use this file except in compliance with the License. You can obtain
13: * a copy of the License at https://glassfish.dev.java.net/public/CDDL+GPL.html
14: * or glassfish/bootstrap/legal/LICENSE.txt. See the License for the specific
15: * language governing permissions and limitations under the License.
16: *
17: * When distributing the software, include this License Header Notice in each
18: * file and include the License file at glassfish/bootstrap/legal/LICENSE.txt.
19: * Sun designates this particular file as subject to the "Classpath" exception
20: * as provided by Sun in the GPL Version 2 section of the License file that
21: * accompanied this code. If applicable, add the following below the License
22: * Header, with the fields enclosed by brackets [] replaced by your own
23: * identifying information: "Portions Copyrighted [year]
24: * [name of copyright owner]"
25: *
26: * Contributor(s):
27: *
28: * If you wish your version of this file to be governed by only the CDDL or
29: * only the GPL Version 2, indicate your decision by adding "[Contributor]
30: * elects to include this software in this distribution under the [CDDL or GPL
31: * Version 2] license." If you don't indicate a single choice of license, a
32: * recipient has the option to distribute your version of this file under
33: * either the CDDL, the GPL Version 2 or to extend the choice of license to
34: * its licensees as provided above. However, if you add GPL Version 2 code
35: * and therefore, elected the GPL Version 2 license, then the option applies
36: * only if the new code is made subject to such option by the copyright
37: * holder.
38: */
39:
40: package javax.servlet.http;
41:
42: /** This is the class representing event notifications for
43: * changes to sessions within a web application.
44: * @since v 2.3
45: */
46: public class HttpSessionEvent extends java.util.EventObject {
47: /** Construct a session event from the given source.*/
48: public HttpSessionEvent(HttpSession source) {
49: super (source);
50: }
51:
52: /** Return the session that changed.*/
53: public HttpSession getSession() {
54: return (HttpSession) super.getSource();
55: }
56: }
|