01 /*
02 * Copyright 2004 The Apache Software Foundation
03 *
04 * Licensed under the Apache License, Version 2.0 (the "License");
05 * you may not use this file except in compliance with the License.
06 * You may obtain a copy of the License at
07 *
08 * http://www.apache.org/licenses/LICENSE-2.0
09 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16 package javax.servlet.http;
17
18 import java.util.EventListener;
19
20 /**
21 * Implementations of this interface are notified of changes to the
22 * list of active sessions in a web application.
23 * To receive notification events, the implementation class
24 * must be configured in the deployment descriptor for the web application.
25 * @see HttpSessionEvent
26 * @since v 2.3
27 */
28
29 public interface HttpSessionListener extends EventListener {
30
31 /**
32 * Notification that a session was created.
33 * @param se the notification event
34 */
35 public void sessionCreated(HttpSessionEvent se);
36
37 /**
38 * Notification that a session is about to be invalidated.
39 * @param se the notification event
40 */
41 public void sessionDestroyed(HttpSessionEvent se);
42
43 }
|