01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17:
18: package javax.servlet.http;
19:
20: import java.util.EventListener;
21:
22: /**
23: * Causes an object to be notified when it is bound to
24: * or unbound from a session. The object is notified
25: * by an {@link HttpSessionBindingEvent} object. This may be as a result
26: * of a servlet programmer explicitly unbinding an attribute from a session,
27: * due to a session being invalidated, or due to a session timing out.
28: *
29: *
30: * @author Various
31: * @version $Version$
32: *
33: * @see HttpSession
34: * @see HttpSessionBindingEvent
35: *
36: */
37:
38: public interface HttpSessionBindingListener extends EventListener {
39:
40: /**
41: *
42: * Notifies the object that it is being bound to
43: * a session and identifies the session.
44: *
45: * @param event the event that identifies the
46: * session
47: *
48: * @see #valueUnbound
49: *
50: */
51:
52: public void valueBound(HttpSessionBindingEvent event);
53:
54: /**
55: *
56: * Notifies the object that it is being unbound
57: * from a session and identifies the session.
58: *
59: * @param event the event that identifies
60: * the session
61: *
62: * @see #valueBound
63: *
64: */
65:
66: public void valueUnbound(HttpSessionBindingEvent event);
67:
68: }
|