home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgLangD.iso / VCAFE.3.0A / Main.bin / HttpSessionBindingListener.java < prev    next >
Text File  |  1998-04-21  |  2KB  |  65 lines

  1. /*
  2.  * @(#)HttpSessionBindingListener.java    1.6 97/10/15
  3.  * 
  4.  * Copyright (c) 1997 Sun Microsystems, Inc. All Rights Reserved.
  5.  * 
  6.  * This software is the confidential and proprietary information of Sun
  7.  * Microsystems, Inc. ("Confidential Information").  You shall not
  8.  * disclose such Confidential Information and shall use it only in
  9.  * accordance with the terms of the license agreement you entered into
  10.  * with Sun.
  11.  * 
  12.  * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
  13.  * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  14.  * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
  15.  * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
  16.  * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
  17.  * THIS SOFTWARE OR ITS DERIVATIVES.
  18.  */
  19.  
  20.  
  21. package javax.servlet.http;
  22.  
  23. import java.util.EventListener;
  24.  
  25. /**
  26.  * Objects implement this interface so that they can be notified  
  27.  * when
  28.  * they are being bound or unbound from a HttpSession. When a binding occurs 
  29.  * (using HttpSession.putValue) HttpSessionBindingEvent communicates the event 
  30.  * and identifies
  31.  * the session into which the object is bound. 
  32.  * 
  33.  * <p>Similarly, when an unbinding occurs (using HttpSession.removeValue)
  34.  * HttpSessionBindingEvent communicates the event and identifies the
  35.  * session from which the object is unbound. 
  36.  *
  37.  * @see HttpSession
  38.  * @see HttpSessionBindingEvent
  39.  *
  40.  * @version    1.6, 10/15/97
  41.  */
  42. public
  43. interface HttpSessionBindingListener
  44. extends EventListener
  45. {
  46.     /**
  47.      * Notifies the listener that it is being bound into
  48.      * a session.
  49.      *
  50.      * @param event the event identifying the session into
  51.      * which the listener is being bound.
  52.      */
  53.     public void valueBound (HttpSessionBindingEvent event);
  54.  
  55.     /**
  56.      * Notifies the listener that it is being unbound
  57.      * from a session.
  58.      *
  59.      * @param event the event identifying the session from
  60.      * which the listener is being unbound.
  61.      */
  62.     public void valueUnbound (HttpSessionBindingEvent event);
  63. }
  64.  
  65.