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 /** This listener interface can be implemented in order to
21 * get notifications of changes to the attribute lists of sessions within
22 * this web application.
23 * @since v 2.3
24 */
25
26 public interface HttpSessionAttributeListener extends EventListener {
27 /** Notification that an attribute has been added to a session. Called after the attribute is added.*/
28 public void attributeAdded(HttpSessionBindingEvent se);
29
30 /** Notification that an attribute has been removed from a session. Called after the attribute is removed. */
31 public void attributeRemoved(HttpSessionBindingEvent se);
32
33 /** Notification that an attribute has been replaced in a session. Called after the attribute is replaced. */
34 public void attributeReplaced(HttpSessionBindingEvent se);
35
36 }
|