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

  1. /*
  2.  * @(#)HttpSessionContext.java    1.9 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.Enumeration;
  24.  
  25. /**
  26.  * A HttpSessionContext is a grouping of HttpSessions associated with a single
  27.  * entity. This interface gives servlets access to  
  28.  * methods for listing the IDs and for retrieving a session based on its ID.
  29.  *
  30.  * <p>Servlets get the HttpSessionContext object by calling the getSessionContext() 
  31.  * method of HttpSession. 
  32.  *
  33.  * @see HttpSession
  34.  *
  35.  * @version    1.9, 10/15/97
  36.  */
  37. public
  38. interface HttpSessionContext
  39. {
  40.     /**
  41.      * Returns the session bound to the specified session ID. 
  42.      *
  43.      * @param sessionID the ID of a particular session object
  44.      * @return the session name. Returns null if the session ID does not refer
  45.      * to a valid session.
  46.      */
  47.     public HttpSession getSession (String sessionId);
  48.   
  49.     /**
  50.      * Returns an enumeration of all of the session IDs in this context.
  51.      *
  52.      * @return an enumeration of all session IDs in this context
  53.      */
  54.     public Enumeration getIds ();
  55. }
  56.  
  57.  
  58.  
  59.