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
org.eclipse.jetty.http.security.B64Code
          use B64Code 
org.eclipse.jetty.deploy.ContextDeployer
           
org.eclipse.jetty.client.HttpExchange.CachedExchange
          use CachedExchange instead 
org.eclipse.jetty.client.HttpExchange.ContentExchange
          use ContentExchange instead 
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.eclipse.jetty.server.handler.ProxyHandler
          Use ConnectHandler 
org.eclipse.jetty.deploy.WebAppDeployer
            
 

Deprecated Methods
org.eclipse.jetty.servlet.ServletHandler.addFilter(String, String, EnumSet)
          use ServletHandler.addFilterWithMapping(Class, String, int) instead 
org.eclipse.jetty.server.Server.addLifeCycle(LifeCycle)
          Use Server.addBean(Object) 
org.eclipse.jetty.util.ajax.JSON.append(StringBuffer, Object)
           
org.eclipse.jetty.util.ajax.JSON.appendArray(StringBuffer, Collection)
           
org.eclipse.jetty.util.ajax.JSON.appendArray(StringBuffer, Object)
           
org.eclipse.jetty.util.ajax.JSON.appendBoolean(StringBuffer, Boolean)
           
org.eclipse.jetty.util.ajax.JSON.appendJSON(StringBuffer, JSON.Convertible)
           
org.eclipse.jetty.util.ajax.JSON.appendJSON(StringBuffer, JSON.Convertor, Object)
           
org.eclipse.jetty.util.ajax.JSON.appendJSON(StringBuffer, JSON.Generator)
           
org.eclipse.jetty.util.ajax.JSON.appendMap(StringBuffer, Map)
           
org.eclipse.jetty.util.ajax.JSON.appendNull(StringBuffer)
           
org.eclipse.jetty.util.ajax.JSON.appendNumber(StringBuffer, Number)
           
org.eclipse.jetty.util.ajax.JSON.appendString(StringBuffer, String)
           
org.eclipse.jetty.server.Response.encodeRedirectUrl(String)
           
javax.servlet.http.HttpServletResponse.encodeRedirectUrl(String)
          As of version 2.1, use encodeRedirectURL(String url) instead 
org.eclipse.jetty.server.Response.encodeUrl(String)
           
javax.servlet.http.HttpServletResponse.encodeUrl(String)
          As of version 2.1, use encodeURL(String url) instead 
org.eclipse.jetty.server.ssl.SslSelectChannelConnector.getAlgorithm()
          use SslSelectChannelConnector.getSslKeyManagerFactoryAlgorithm() or SslSelectChannelConnector.getSslTrustManagerFactoryAlgorithm() 
org.eclipse.jetty.deploy.ContextDeployer.getConfigurationDir()
          use ContextDeployer.setContextsDir(String) 
org.eclipse.jetty.deploy.App.getContextId()
          Use getContextPath instead. 
org.eclipse.jetty.continuation.ContinuationSupport.getContinuation(ServletRequest, ServletResponse)
          use ContinuationSupport.getContinuation(ServletRequest) 
org.eclipse.jetty.deploy.ContextDeployer.getDirectory()
          use ContextDeployer.setContextsDir(String) 
org.eclipse.jetty.http.HttpBuffers.getHeaderBufferSize()
          use HttpBuffers.getRequestHeaderSize() or HttpBuffers.getResponseHeaderSize() 
org.eclipse.jetty.server.session.AbstractSessionManager.NullSessionContext.getIds()
          From HttpSessionContext 
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.eclipse.jetty.rewrite.handler.RuleContainer.getLegacyRule()
           
org.eclipse.jetty.server.AbstractConnector.getLowResourceMaxIdleTime()
            
org.eclipse.jetty.server.session.AbstractSessionManager.getMaxSessions()
           
org.eclipse.jetty.server.SessionManager.getMetaManager()
          use SessionManager.getIdManager() 
org.eclipse.jetty.server.session.AbstractSessionManager.getMetaManager()
          use AbstractSessionManager.getIdManager() 
org.eclipse.jetty.server.session.AbstractSessionManager.getMinSessions()
          always returns 0. no replacement available. 
org.eclipse.jetty.deploy.providers.ScanningAppProvider.getMonitoredDir()
           
org.eclipse.jetty.webapp.WebAppContext.getOverrideDescriptor()
          use WebAppContext.getOverrideDescriptors() 
javax.servlet.ServletRequest.getRealPath(String)
          As of Version 2.1 of the Java Servlet API, use ServletContext.getRealPath(java.lang.String) instead. 
org.eclipse.jetty.util.Scanner.getScanDir()
          use getScanDirs() instead 
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. 

org.eclipse.jetty.server.session.AbstractSessionManager.NullSessionContext.getSession(String)
          From HttpSessionContext 
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.eclipse.jetty.server.session.AbstractSessionManager.Session.getSessionContext()
            
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.eclipse.jetty.server.session.AbstractSessionManager.getSessionMap()
          Need to review if it is needed. 
org.eclipse.jetty.client.HttpClient.getSoTimeout()
          use HttpClient.getTimeout() instead. 
org.eclipse.jetty.server.session.AbstractSessionManager.Session.getValue(String)
          As of Version 2.2, this method is replaced by AbstractSessionManager.Session.getAttribute(java.lang.String) 
javax.servlet.http.HttpSession.getValue(String)
          As of Version 2.2, this method is replaced by HttpSession.getAttribute(java.lang.String). 
org.eclipse.jetty.server.session.AbstractSessionManager.Session.getValueNames()
          As of Version 2.2, this method is replaced by AbstractSessionManager.Session.getAttributeNames() 
javax.servlet.http.HttpSession.getValueNames()
          As of Version 2.2, this method is replaced by HttpSession.getAttributeNames() 
org.eclipse.jetty.client.HttpExchange.isDone(int)
            
javax.servlet.http.HttpServletRequest.isRequestedSessionIdFromUrl()
          As of Version 2.1 of the Java Servlet API, use HttpServletRequest.isRequestedSessionIdFromURL() instead. 
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. 

org.eclipse.jetty.util.ajax.JSON.parse(InputStream)
          use JSON.parse(Reader) 
org.eclipse.jetty.util.ajax.JSON.parse(InputStream, boolean)
          use JSON.parse(Reader, boolean) 
org.eclipse.jetty.server.session.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.putValue(String, Object)
          As of Version 2.2, this method is replaced by HttpSession.setAttribute(java.lang.String, java.lang.Object) 
org.eclipse.jetty.server.Server.removeLifeCycle(LifeCycle)
          Use Server.removeBean(Object) 
org.eclipse.jetty.server.session.AbstractSessionManager.Session.removeValue(String)
          As of Version 2.2, this method is replaced by AbstractSessionManager.Session.removeAttribute(java.lang.String) 
javax.servlet.http.HttpSession.removeValue(String)
          As of Version 2.2, this method is replaced by HttpSession.removeAttribute(java.lang.String) 
org.eclipse.jetty.server.session.AbstractSessionManager.resetStats()
           
org.eclipse.jetty.server.ssl.SslSelectChannelConnector.setAlgorithm(String)
          use SslSelectChannelConnector.setSslKeyManagerFactoryAlgorithm(String) or SslSelectChannelConnector.setSslTrustManagerFactoryAlgorithm(String) 
org.eclipse.jetty.deploy.ContextDeployer.setConfigurationDir(File)
          use ContextDeployer.setContextsDir(String) 
org.eclipse.jetty.deploy.ContextDeployer.setConfigurationDir(Resource)
          use ContextDeployer.setContextsDir(String) 
org.eclipse.jetty.deploy.ContextDeployer.setConfigurationDir(String)
          use ContextDeployer.setContextsDir(String) 
org.eclipse.jetty.util.ajax.JSON.setDefault(JSON)
           
org.eclipse.jetty.deploy.ContextDeployer.setDirectory(String)
          use ContextDeployer.setContextsDir(String) 
org.eclipse.jetty.http.HttpBuffers.setHeaderBufferSize(int)
            
org.eclipse.jetty.xml.XmlConfiguration.setIdMap(Map)
          use XmlConfiguration.getIdMap().put(...) 
org.eclipse.jetty.rewrite.handler.RuleContainer.setLegacyRule(LegacyRule)
           
org.eclipse.jetty.rewrite.handler.RewriteHandler.setLegacyRule(LegacyRule)
           
org.eclipse.jetty.server.AbstractConnector.setLowResourceMaxIdleTime(int)
            
org.eclipse.jetty.server.session.AbstractSessionManager.setMetaManager(SessionIdManager)
          use AbstractSessionManager.setIdManager(SessionIdManager) 
org.eclipse.jetty.deploy.providers.ScanningAppProvider.setMonitoredDir(Resource)
          use ScanningAppProvider.setMonitoredDirResource(Resource) 
org.eclipse.jetty.deploy.providers.ScanningAppProvider.setMonitoredDir(String)
          use ScanningAppProvider.setMonitoredDirName(String) 
org.eclipse.jetty.webapp.WebAppContext.setOverrideDescriptor(String)
          use WebAppContext.setOverrideDescriptors(List) 
org.eclipse.jetty.xml.XmlConfiguration.setProperties(Map)
          use XmlConfiguration.getProperties().put(...) 
org.eclipse.jetty.util.Scanner.setScanDir(File)
          use setScanDirs(List dirs) instead 
org.eclipse.jetty.client.HttpClient.setSoTimeout(int)
          use HttpClient.setTimeout(long) instead. 
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.eclipse.jetty.util.thread.QueuedThreadPool.stopThread(long)
          Use QueuedThreadPool.interruptThread(long) in preference 
org.eclipse.jetty.client.HttpExchange.waitForStatus(int)
          Use HttpExchange.waitForDone() instead 
 

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 © 1995-2010 Mort Bay Consulting. All Rights Reserved.