Deprecated API
Contents
-
Deprecated InterfacesInterfaceDescriptionAs of Java(tm) Servlet API 2.1 for security reasons, with no replacement. This interface will be removed in a future version of this API.As of Java Servlet API 2.4, with no direct replacement.As of Java(tm) Servlet API 2.1 for security reasons, with no replacement. This interface will be removed in a future version of this API.As of Java Servlet API 2.4, with no direct replacement.
-
Deprecated ClassesClassDescriptionAs of Java(tm) Servlet API 2.3. These methods were only useful with the default encoding and have been moved to the request interfaces.As of Java(tm) Servlet API 2.3. These methods were only useful with the default encoding and have been moved to the request interfaces.
-
Deprecated MethodsMethodDescriptionAs of Version 2.1 of the Java Servlet API, use
HttpServletRequest.isRequestedSessionIdFromURL()
instead.As of Version 4.0 of the Java Servlet API, useHttpServletRequestWrapper.isRequestedSessionIdFromURL()
instead.As of version 2.1, use encodeRedirectURL(String url) insteadAs of version 2.1, use encodeURL(String url) insteadAs of version 2.1, due to ambiguous meaning of the message parameter. To set a status code usesetStatus(int)
, to send an error with a description usesendError(int, String)
. Sets the status code and message for this response.As of version 2.1, useHttpServletResponseWrapper.encodeRedirectURL(String url)
insteadAs of version 2.1, useHttpServletResponseWrapper.encodeURL(String url)
insteadAs of version 2.1, due to ambiguous meaning of the message parameter. To set a status code useHttpServletResponseWrapper.setStatus(int)
, to send an error with a description useHttpServletResponseWrapper.sendError(int, String)
As of Version 2.1, this method is deprecated and has no replacement. It will be removed in a future version of Jakarta Servlets.As of Version 2.2, this method is replaced byHttpSession.getAttribute(java.lang.String)
.As of Version 2.2, this method is replaced byHttpSession.getAttributeNames()
As of Version 2.2, this method is replaced byHttpSession.setAttribute(java.lang.String, java.lang.Object)
As of Version 2.2, this method is replaced byHttpSession.removeAttribute(java.lang.String)
As of Java Servlet API 2.1 with no replacement. This method must return an emptyEnumeration
and will be removed in a future version of this API.As of Java Servlet API 2.1 with no replacement. This method must return null and will be removed in a future version of this API.As of Java Servlet API 2.1, with no direct replacement.This method was originally defined to retrieve a servlet from a
ServletContext
. In this version, this method always returnsnull
and remains only to preserve binary compatibility. This method will be permanently removed in a future version of Jakarta Servlets.In lieu of this method, servlets can share information using the
ServletContext
class and can perform shared business logic by invoking methods on common non-servlet classes.As of Java Servlet API 2.1, with no replacement.This method was originally defined to return an
Enumeration
of all the servlet names known to this context. In this version, this method always returns an emptyEnumeration
and remains only to preserve binary compatibility. This method will be permanently removed in a future version of Jakarta Servlets.As of Java Servlet API 2.0, with no replacement.This method was originally defined to return an
Enumeration
of all the servlets known to this servlet context. In this version, this method always returns an empty enumeration and remains only to preserve binary compatibility. This method will be permanently removed in a future version of Jakarta Servlets.As of Java Servlet API 2.1, useServletContext.log(String message, Throwable throwable)
instead.This method was originally defined to write an exception's stack trace and an explanatory error message to the servlet log file.
As of Version 2.1 of the Java Servlet API, useServletContext.getRealPath(java.lang.String)
instead.As of Version 2.1 of the Java Servlet API, useServletContext.getRealPath(java.lang.String)
insteadAs of Java Servlet API 2.2, with no replacement. Returns the servlet that is reporting its unavailability.As of Version 2.1 of the Java Servlet API, useHttpServletRequest.isRequestedSessionIdFromURL()
instead.As of Version 4.0 of the Java Servlet API, useHttpServletRequestWrapper.isRequestedSessionIdFromURL()
instead.As of version 2.1, use encodeRedirectURL(String url) insteadAs of version 2.1, use encodeURL(String url) insteadAs of version 2.1, due to ambiguous meaning of the message parameter. To set a status code usesetStatus(int)
, to send an error with a description usesendError(int, String)
. Sets the status code and message for this response.As of version 2.1, useHttpServletResponseWrapper.encodeRedirectURL(String url)
insteadAs of version 2.1, useHttpServletResponseWrapper.encodeURL(String url)
insteadAs of version 2.1, due to ambiguous meaning of the message parameter. To set a status code useHttpServletResponseWrapper.setStatus(int)
, to send an error with a description useHttpServletResponseWrapper.sendError(int, String)
As of Version 2.1, this method is deprecated and has no replacement. It will be removed in a future version of Jakarta Servlets.As of Version 2.2, this method is replaced byHttpSession.getAttribute(java.lang.String)
.As of Version 2.2, this method is replaced byHttpSession.getAttributeNames()
As of Version 2.2, this method is replaced byHttpSession.setAttribute(java.lang.String, java.lang.Object)
As of Version 2.2, this method is replaced byHttpSession.removeAttribute(java.lang.String)
As of Java Servlet API 2.1 with no replacement. This method must return an emptyEnumeration
and will be removed in a future version of this API.As of Java Servlet API 2.1 with no replacement. This method must return null and will be removed in a future version of this API.As of Java Servlet API 2.1, with no direct replacement.This method was originally defined to retrieve a servlet from a
ServletContext
. In this version, this method always returnsnull
and remains only to preserve binary compatibility. This method will be permanently removed in a future version of Jakarta Servlets.In lieu of this method, servlets can share information using the
ServletContext
class and can perform shared business logic by invoking methods on common non-servlet classes.As of Java Servlet API 2.1, with no replacement.This method was originally defined to return an
Enumeration
of all the servlet names known to this context. In this version, this method always returns an emptyEnumeration
and remains only to preserve binary compatibility. This method will be permanently removed in a future version of Jakarta Servlets.As of Java Servlet API 2.0, with no replacement.This method was originally defined to return an
Enumeration
of all the servlets known to this servlet context. In this version, this method always returns an empty enumeration and remains only to preserve binary compatibility. This method will be permanently removed in a future version of Jakarta Servlets.As of Java Servlet API 2.1, useServletContext.log(String message, Throwable throwable)
instead.This method was originally defined to write an exception's stack trace and an explanatory error message to the servlet log file.
As of Version 2.1 of the Java Servlet API, useServletContext.getRealPath(java.lang.String)
instead.As of Version 2.1 of the Java Servlet API, useServletContext.getRealPath(java.lang.String)
insteadAs of Java Servlet API 2.2, with no replacement. Returns the servlet that is reporting its unavailability.
-
Deprecated ConstructorsConstructorDescriptionAs of Java Servlet API 2.2, use
UnavailableException(String, int)
instead.As of Java Servlet API 2.2, useUnavailableException(String)
instead.As of Java Servlet API 2.2, useUnavailableException(String, int)
instead.As of Java Servlet API 2.2, useUnavailableException(String)
instead.