Deprecated API


Contents
Deprecated Interfaces
javax.servlet.http.HttpSessionContext
          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. 
javax.servlet.SingleThreadModel
          As of Java Servlet API 2.4, with no direct replacement. 
 

Deprecated Classes
javax.servlet.http.HttpUtils
          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. 
org.mortbay.http.ibmjsse.IbmJsseListener
          Use org.mortbay.http.SslListener 
org.mortbay.http.JsseListener
          use SslListener 
org.mortbay.util.Primitive
          Use TypeUtil 
org.mortbay.http.SunJsseListener
          Use org.mortbay.http.SslListener 
org.mortbay.html.Text
          all Composites now take Strings direct. 
 

Deprecated Fields
javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_TAG
          As of Java JSP API 1.2, use BodyTag.EVAL_BODY_BUFFERED or IterationTag.EVAL_BODY_AGAIN. 
 

Deprecated Methods
org.mortbay.util.ThreadedServer.acceptSocket(ServerSocket, int)
          use acceptSocket(int timeout) 
org.mortbay.util.LazyList.add(Object, Collection)
          Use addCollection 
org.mortbay.http.HttpServer.addHostAlias(String, String)
          Use HttpContext.addVirtualHost 
org.mortbay.html.Element.attributes(String)
          Use attribute(String). 
javax.servlet.http.HttpServletResponse.encodeRedirectUrl(String)
          As of version 2.1, use encodeRedirectURL(String url) instead 
org.mortbay.jetty.servlet.ServletHttpResponse.encodeRedirectUrl(String)
          As of version 2.1, use encodeRedirectURL(String url) instead 
javax.servlet.http.HttpServletResponse.encodeUrl(String)
          As of version 2.1, use encodeURL(String url) instead 
org.mortbay.jetty.servlet.ServletHttpResponse.encodeUrl(String)
          As of version 2.1, use encodeURL(String url) instead 
org.mortbay.http.HttpServer.getHttpServerList()
          User getHttpServers() 
javax.servlet.http.HttpSessionContext.getIds()
          As of Java Servlet API 2.1 with no replacement. This method must return an empty Enumeration and will be removed in a future version of this API. 
org.mortbay.jetty.servlet.SessionContext.getIds()
          From HttpSessionContext 
org.mortbay.log.OutputStreamLogSink.getLogTimezone()
          Use getLogTimeZone() 
org.mortbay.util.ThreadPool.getPoolName()
          use getName() 
javax.servlet.ServletRequest.getRealPath(String)
          As of Version 2.1 of the Java Servlet API, use ServletContext.getRealPath(java.lang.String) instead. 
org.mortbay.jetty.servlet.ServletHttpRequest.getRealPath(String)
          As of Version 2.1 of the Java Servlet API, use ServletContext.getRealPath(java.lang.String) instead. 
org.mortbay.http.HttpResponse.getRequest()
          use getHttpRequest() 
org.mortbay.http.HttpRequest.getResponse()
          use getHttpResponse() 
javax.servlet.UnavailableException.getServlet()
          As of Java Servlet API 2.2, with no replacement. Returns the servlet that is reporting its unavailability. 
javax.servlet.ServletContext.getServlet(String)
          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 returns null and remains only to preserve binary compatibility. This method will be permanently removed in a future version of the Java Servlet API.

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. 

javax.servlet.ServletContext.getServletNames()
          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 empty Enumeration and remains only to preserve binary compatibility. This method will be permanently removed in a future version of the Java Servlet API. 

javax.servlet.ServletContext.getServlets()
          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 the Java Servlet API. 

javax.servlet.http.HttpSessionContext.getSession(String)
          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. 
org.mortbay.jetty.servlet.SessionContext.getSession(String)
          From HttpSessionContext 
javax.servlet.http.HttpSession.getSessionContext()
          As of Version 2.1, this method is deprecated and has no replacement. It will be removed in a future version of the Java Servlet API. 
org.mortbay.jetty.servlet.AbstractSessionManager.Session.getSessionContext()
            
org.mortbay.jetty.servlet.AbstractSessionManager.getUseRequestedId()
          use getCrossContextSessionIDs session IDs 
javax.servlet.http.HttpSession.getValue(String)
          As of Version 2.2, this method is replaced by HttpSession.getAttribute(java.lang.String). 
org.mortbay.jetty.servlet.AbstractSessionManager.Session.getValue(String)
          As of Version 2.2, this method is replaced by AbstractSessionManager.Session.getAttribute(java.lang.String) 
javax.servlet.http.HttpSession.getValueNames()
          As of Version 2.2, this method is replaced by HttpSession.getAttributeNames() 
org.mortbay.jetty.servlet.AbstractSessionManager.Session.getValueNames()
          As of Version 2.2, this method is replaced by AbstractSessionManager.Session.getAttributeNames() 
javax.servlet.http.HttpServletRequest.isRequestedSessionIdFromUrl()
          As of Version 2.1 of the Java Servlet API, use HttpServletRequest.isRequestedSessionIdFromURL() instead. 
org.mortbay.jetty.servlet.ServletHttpRequest.isRequestedSessionIdFromUrl()
            
javax.servlet.ServletContext.log(Exception, String)
          As of Java Servlet API 2.1, use ServletContext.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. 

javax.servlet.http.HttpSession.putValue(String, Object)
          As of Version 2.2, this method is replaced by HttpSession.setAttribute(java.lang.String, java.lang.Object) 
org.mortbay.jetty.servlet.AbstractSessionManager.Session.putValue(String, Object)
          As of Version 2.2, this method is replaced by AbstractSessionManager.Session.setAttribute(java.lang.String, java.lang.Object) 
javax.servlet.http.HttpSession.removeValue(String)
          As of Version 2.2, this method is replaced by HttpSession.removeAttribute(java.lang.String) 
org.mortbay.jetty.servlet.AbstractSessionManager.Session.removeValue(String)
          As of Version 2.2, this method is replaced by AbstractSessionManager.Session.removeAttribute(java.lang.String) 
org.mortbay.html.Applet.setAlternate(Element)
          use add 
org.mortbay.html.Applet.setAlternate(String)
          use add 
org.mortbay.http.NCSARequestLog.setBuffered(boolean)
          ignored 
org.mortbay.html.Table.setCellNestingFactory(CompositeFactory)
          Use setNestingFactory or setThreadNestingFactory 
org.mortbay.jetty.servlet.ServletHandler.setDynamicInitParams(Map)
          Use org.mortbay.jetty.servlet.Invoker 
org.mortbay.jetty.servlet.ServletHandler.setDynamicServletPathSpec(String)
          Use org.mortbay.jetty.servlet.Invoker 
org.mortbay.log.OutputStreamLogSink.setLogTimezone(String)
          Use setLogTimeZone(String) 
org.mortbay.util.ThreadedServer.setMaxReadTimeMs(int)
          maxIdleTime is used instead. 
org.mortbay.util.ThreadPool.setMaxStopTimeMs(int)
          maxIdleTime is used instead. 
org.mortbay.util.ThreadPool.setPoolName(String)
          use setName(String) 
org.mortbay.jetty.servlet.ServletHandler.setServeDynamicSystemServlets(boolean)
          Use org.mortbay.jetty.servlet.Invoker 
javax.servlet.http.HttpServletResponse.setStatus(int, String)
          As of version 2.1, due to ambiguous meaning of the message parameter. To set a status code use setStatus(int), to send an error with a description use sendError(int, String). Sets the status code and message for this response. 
org.mortbay.jetty.servlet.ServletHttpResponse.setStatus(int, String)
          As of version 2.1 of the Servlet spec. To set a status code use setStatus(int), to send an error with a description use sendError(int, String). Sets the status code and message for this response. 
org.mortbay.jetty.servlet.AbstractSessionManager.setUseRequestedId(boolean)
          use setCrossContextSessionIDs session IDs 
 

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



Copyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.