Michael E. Rodriguez | d8af66f | 2005-12-08 20:55:55 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 1999,2005 The Apache Software Foundation. |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 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 | |
| 17 | |
| 18 | package javax.servlet.http; |
| 19 | |
| 20 | import java.util.EventListener; |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | /** |
| 27 | * Causes an object to be notified when it is bound to |
| 28 | * or unbound from a session. The object is notified |
| 29 | * by an {@link HttpSessionBindingEvent} object. |
| 30 | * |
| 31 | * |
| 32 | * @author Various |
| 33 | * @version $Version$ |
| 34 | * |
| 35 | * @see HttpSession |
| 36 | * @see HttpSessionBindingEvent |
| 37 | * |
| 38 | */ |
| 39 | |
| 40 | public interface HttpSessionBindingListener extends EventListener { |
| 41 | |
| 42 | |
| 43 | |
| 44 | /** |
| 45 | * |
| 46 | * Notifies the object that it is being bound to |
| 47 | * a session and identifies the session. |
| 48 | * |
| 49 | * @param event the event that identifies the |
| 50 | * session |
| 51 | * |
| 52 | * @see #valueUnbound |
| 53 | * |
| 54 | */ |
| 55 | |
| 56 | public void valueBound(HttpSessionBindingEvent event); |
| 57 | |
| 58 | |
| 59 | |
| 60 | /** |
| 61 | * |
| 62 | * Notifies the object that it is being unbound |
| 63 | * from a session and identifies the session. |
| 64 | * |
| 65 | * @param event the event that identifies |
| 66 | * the session |
| 67 | * |
| 68 | * @see #valueBound |
| 69 | * |
| 70 | */ |
| 71 | |
| 72 | public void valueUnbound(HttpSessionBindingEvent event); |
| 73 | |
| 74 | |
| 75 | } |
| 76 | |