Deprecated API

Deprecated Classes
org.apache.tomcat.util.buf.DateTool
          Will be replaced with a more efficient impl, based on FastDateFormat, with an API using less objects. 
org.apache.tomcat.util.qlog.FastDateFormat
          This class will be merged with DateTool and moved in buf, to be used in all tomcat. 
org.apache.tomcat.util.test.GTest
          Use HttpClient instead. This class has very limited support for multiple matchers, requests, etc. 
org.apache.tomcat.startup.Tomcat
          Use individual tasks instead: StopTomcat, EmbededTomcat, EnableConfig, etc. 
 

Deprecated Methods
org.apache.tomcat.core.Context.addSecurityConstraint(String[], String[], String[], String)
          Use addContainer 
org.apache.tomcat.core.Context.addServletMapping(String, String)
          Use addContainer 
org.apache.tomcat.facade.HttpServletResponseFacade.encodeRedirectUrl(String)
            
org.apache.tomcat.facade.HttpServletResponseFacade.encodeUrl(String)
            
org.apache.tomcat.core.OutputBuffer.getByteOff()
          Used only in Ajp13Packet for a hack 
org.apache.tomcat.core.Request.getContentType()
            
org.apache.tomcat.facade.ServletInfo.getDependency()
          this supports only one depend per jsp/servlet. Wrong. 
org.apache.tomcat.core.Request.getHeader(String)
            
org.apache.tomcat.core.Request.getHeaderNames()
            
org.apache.tomcat.core.Request.getHeaders(String)
            
org.apache.tomcat.util.buf.MessageBytes.getInt()
          The buffer are general purpose, caching for headers should be done in headers 
org.apache.tomcat.core.Request.getMethod()
          After Tomcat 3.2, use Request.method() instead 
org.apache.tomcat.util.xml.SaxContext.getObjectStack()
            
org.apache.tomcat.facade.HttpServletRequestFacade.getRealPath(String)
            
org.apache.tomcat.core.Request.getRequestURI()
          After Tomcat 3.2, use Request.requestURI() instead 
org.apache.tomcat.core.Request.getRequiredRoles()
          use getSecurityContext 
org.apache.tomcat.facade.ServletContextFacade.getServlet(String)
          This method is deprecated in the javax.servlet.ServletContext interface 
org.apache.tomcat.facade.ServletContextFacade.getServletNames()
            
org.apache.tomcat.facade.ServletContextFacade.getServlets()
            
org.apache.tomcat.facade.HttpSessionFacade.getSessionContext()
            
org.apache.tomcat.util.buf.MessageBytes.getTime()
          The buffer are general purpose, caching for headers should be done in headers 
org.apache.tomcat.facade.HttpSessionFacade.getValue(String)
            
org.apache.tomcat.facade.HttpSessionFacade.getValueNames()
            
org.apache.tomcat.facade.HttpServletRequestFacade.isRequestedSessionIdFromUrl()
            
org.apache.tomcat.facade.ServletContextFacade.log(Exception, String)
          This method is deprecated in the javax.servlet.ServletContext interface 
org.apache.tomcat.facade.HttpSessionFacade.putValue(String, Object)
            
org.apache.tomcat.facade.HttpSessionFacade.removeValue(String)
            
org.apache.tomcat.core.OutputBuffer.setByteOff(int)
          Used only in Ajp13Packet for a hack 
org.apache.tomcat.core.Request.setContentType(MessageBytes)
            
org.apache.tomcat.core.Request.setContentType(String)
            
org.apache.tomcat.facade.ServletInfo.setDependency(Dependency)
          this supports only one depend per jsp/servlet. Wrong. 
org.apache.tomcat.util.buf.MessageBytes.setInt(int)
          The buffer are general purpose, caching for headers should be done in headers 
org.apache.tomcat.facade.JspInterceptor.setJspCompilerPlugin(String)
          Use setJavaCompiler instead 
org.apache.tomcat.core.Request.setMethod(String)
          After Tomcat 3.2, use Request.method() instead 
org.apache.tomcat.core.Request.setRequestURI(String)
          After Tomcat 3.2, use Request.requestURI() instead 
org.apache.tomcat.util.net.TcpConnectionHandler.setServer(Object)
          This has nothing to do with TcpHandling, was used as a workaround 
org.apache.tomcat.facade.HttpServletResponseFacade.setStatus(int, String)
            
org.apache.tomcat.util.buf.MessageBytes.setTime(long, DateFormat)
          The buffer are general purpose, caching for headers should be done in headers. The second parameter allows us to pass a date format instance to avoid synchronization problems. 
org.apache.tomcat.core.Request.setUserRoles(String[])
          use setSecurityContext 
 



Copyright © 2001 Apache Software Foundation. All Rights Reserved.