home *** CD-ROM | disk | FTP | other *** search
/ Total Network Tools 2002 / NextStepPublishing-TotalNetworkTools2002-Win95.iso / Archive / Web Server / Sambar Server.exe / _SETUP.1 / javaeng.jar / javax / servlet / http / HttpSessionContext.java < prev    next >
Encoding:
Java Source  |  2000-04-03  |  2.1 KB  |  78 lines

  1. /*
  2.  * HttpSessionContext.java -- Context key,value pairs for HttpSession
  3.  *
  4.  * Copyright (c) 1998, 1999 by Free Software Foundation, Inc.
  5.  * Written by Paul Siegmann (pauls@euronet.nl)
  6.  *
  7.  * This program is free software; you can redistribute it and/or modify
  8.  * it under the terms of the GNU Library General Public License as published
  9.  * by the Free Software Foundation, version 2. (see COPYING.LIB)
  10.  *
  11.  * This program is distributed in the hope that it will be useful, but
  12.  * WITHOUT ANY WARRANTY; without even the implied warranty of
  13.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.  * GNU General Public License for more details.
  15.  *
  16.  * You should have received a copy of the GNU General Public License
  17.  * along with this program; if not, write to the Free Software Foundation
  18.  * Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307 USA
  19.  */
  20.  
  21. package javax.servlet.http;
  22.  
  23. import java.util.Enumeration;
  24.  
  25. /**
  26.  * Contains information shared by all the HttpSessions.
  27.  *
  28.  * @see javax.servlet.http.HttpSessionContext
  29. #ifdef SERVLET_2_0
  30. #else
  31.  * @deprecated
  32.  * This class has been deprecated for security reasons.<BR>
  33.  * We don't want serlvets messing around in other sessions.<BR>
  34.  * However convenient that might be.<BR>
  35. #endif
  36. #ifdef SERVLET_2_0
  37.  * @version Servlet API 2.0 
  38. #endif
  39. #ifdef SERVLET_2_1
  40.  * @version Servlet API 2.1
  41. #endif
  42. #ifdef SERVLET_2_2
  43.  * @version Servlet API 2.2
  44. #endif
  45.  * @since Servlet API 2.0
  46.  * @author Paul Siegmann (pauls@euronet.nl)
  47.  */
  48. public interface HttpSessionContext
  49. {
  50.     /**
  51.      * Get the session with the given id.
  52. #ifdef SERVLET_2_0
  53. #else
  54.      * @deprecated This method should always return null
  55. #endif
  56.      *
  57.      * @since Servlet API 2.0
  58.      *
  59.      * @param id the id of the HttpSession we're looking for.
  60.      * @return The HttpSession we're looking for, null if not present.
  61.      */
  62.     HttpSession getSession(String id);
  63.  
  64.  
  65.     /**
  66.      * Get all sessions ids.
  67. #ifdef SERVLET_2_0
  68. #else
  69.      * @deprecated This method should always return an empty enumeration
  70. #endif
  71.      *
  72.      * @since Servlet API 2.0
  73.      *
  74.      * @return an Enumeration containing all session id's.
  75.      */
  76.     Enumeration getIds();
  77. }
  78.