001 /* 002 * Copyright 2004 The Apache Software Foundation 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016 017 018 package javax.servlet.http; 019 020 import java.util.Enumeration; 021 022 /** 023 * 024 * @author Various 025 * @version $Version$ 026 * 027 * @deprecated As of Java(tm) Servlet API 2.1 028 * for security reasons, with no replacement. 029 * This interface will be removed in a future 030 * version of this API. 031 * 032 * @see HttpSession 033 * @see HttpSessionBindingEvent 034 * @see HttpSessionBindingListener 035 * 036 */ 037 038 039 public interface HttpSessionContext { 040 041 /** 042 * 043 * @deprecated As of Java Servlet API 2.1 with 044 * no replacement. This method must 045 * return null and will be removed in 046 * a future version of this API. 047 * 048 */ 049 050 public HttpSession getSession(String sessionId); 051 052 053 054 055 /** 056 * 057 * @deprecated As of Java Servlet API 2.1 with 058 * no replacement. This method must return 059 * an empty <code>Enumeration</code> and will be removed 060 * in a future version of this API. 061 * 062 */ 063 064 public Enumeration getIds(); 065 } 066 067 068 069 070