Deprecated API

Contents

Deprecated Interfaces

HttpSessionContext
As of Java(tm) Servlet API 2.1 for security reasons, with no replacement.
SingleThreadModel
As of Java Servlet API 2.4, with no direct replacement.

Deprecated Classes

HttpUtils
As of Java(tm) Servlet API 2.3.

Deprecated Methods

javax.servlet.http.HttpServletRequest.isRequestedSessionIdFromUrl()
As of Version 2.1 of the Java Servlet API, use isRequestedSessionIdFromURL() instead.
javax.servlet.http.HttpServletResponse.encodeUrl(String)
As of version 2.1, use encodeURL(String url) instead
javax.servlet.http.HttpServletResponse.encodeRedirectUrl(String)
As of version 2.1, use encodeRedirectURL(String url) instead
javax.servlet.http.HttpServletResponse.setStatus(int,String)
As of version 2.1, due to ambiguous meaning of the message parameter.
javax.servlet.http.HttpSession.getSessionContext()
As of Version 2.1, this method is deprecated and has no replacement.
javax.servlet.http.HttpSession.getValue(String)
As of Version 2.2, this method is replaced by getAttribute(String).
javax.servlet.http.HttpSession.getValueNames()
As of Version 2.2, this method is replaced by getAttributeNames()
javax.servlet.http.HttpSession.putValue(String,Object)
As of Version 2.2, this method is replaced by setAttribute(String,Object)
javax.servlet.http.HttpSession.removeValue(String)
As of Version 2.2, this method is replaced by removeAttribute(String)
javax.servlet.http.HttpSessionContext.getSession(String)
As of Java Servlet API 2.1 with no replacement.
javax.servlet.http.HttpSessionContext.getIds()
As of Java Servlet API 2.1 with no replacement.
javax.servlet.ServletContext.getServlet(String)
As of Java Servlet API 2.1, with no direct replacement.
javax.servlet.ServletContext.getServlets()
As of Java Servlet API 2.0, with no replacement.
javax.servlet.ServletContext.getServletNames()
As of Java Servlet API 2.1, with no replacement.
javax.servlet.ServletContext.log(Exception,String)
As of Java Servlet API 2.1, use log(String message, Throwable throwable) instead.
javax.servlet.ServletRequest.getRealPath(String)
As of Version 2.1 of the Java Servlet API, use ServletContext.getRealPath(String) instead.
javax.servlet.UnavailableException.getServlet()
As of Java Servlet API 2.2, with no replacement.

Deprecated Constructors

javax.servlet.UnavailableException.UnavailableException(Servlet,String)
As of Java Servlet API 2.2, use UnavailableException(String) instead.
javax.servlet.UnavailableException.UnavailableException(int,Servlet,String)
As of Java Servlet API 2.2, use UnavailableException(String,int) instead.

Copyright © 1999-2002 The Apache Software Foundation. All Rights Reserved.