Apache Tomcat 6.0.41

Deprecated API


Contents
Deprecated Classes
org.apache.tomcat.Apr
            
org.apache.catalina.startup.ContextConfig.ContextErrorHandler
          Unused. Use XmlErrorHandler. Will be removed in Tomcat 7.0.x 
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.catalina.startup.DigesterFactory
          Use DigesterFactory 
org.apache.tomcat.util.collections.EmptyEnumeration
            
org.apache.catalina.valves.FastCommonAccessLogValve
            
org.apache.catalina.ant.InstallTask
          Replaced by DeployTask 
org.apache.catalina.servlets.InvokerServlet
          Servlets should be explicitly mapped in web.xml 
org.apache.tomcat.util.collections.LRUCache
            
org.apache.tomcat.util.collections.Queue
            
org.apache.catalina.ant.RemoveTask
          Replaced by UndeployTask 
org.apache.tomcat.util.collections.SimpleHashtable
            
org.apache.tomcat.util.collections.SimplePool
            
org.apache.catalina.loader.WebappClassLoader.PrivilegedFindResource
          Not used 
 

Deprecated Fields
org.apache.jasper.el.ELResolverImpl.DefaultResolver
          - Use getDefaultResolver(). Needs to be made private 
org.apache.jasper.Constants.ESC
            
org.apache.jasper.Constants.ESCStr
            
org.apache.tomcat.util.digester.Digester.JAXP_SCHEMA_LANGUAGE
          This is now managed by ParserFeatureSetterFactory 
org.apache.catalina.startup.ContextConfig.parseException
          Unused. Will be removed in Tomcat 7.0.x. 
org.apache.jasper.xmlparser.ParserUtils.validating
          Unused. Will be removed in Tomcat 7. Use ParserUtils.ParserUtils(boolean,boolean) instead. 
org.apache.catalina.startup.ContextConfig.xmlNamespaceAware
          Unused. Will be removed in Tomcat 7.0.x. 
org.apache.catalina.startup.ContextConfig.xmlValidation
          Unused. Will be removed in Tomcat 7.0.x. 
 

Deprecated Methods
org.apache.tomcat.util.digester.Rule.begin(Attributes)
          Use the begin method with namespace and name parameters instead. 
org.apache.tomcat.util.digester.Rule.body(String)
          Use the body method with namespace and name parameters instead. 
org.apache.tomcat.util.http.ServerCookie.checkName(String)
          - Not used 
org.apache.tomcat.util.buf.B2CConverter.convert(ByteChunk, CharChunk)
            
org.apache.tomcat.util.buf.HexUtils.convert2Int(byte[])
          Not used, will be removed in Tomcat 7 
org.apache.catalina.realm.JAASRealm.createPrincipal(String, Subject)
          Use JAASRealm.createPrincipal(String, Subject, LoginContext) 
org.apache.catalina.Manager.createSession()
            
org.apache.catalina.session.ManagerBase.createSession()
            
org.apache.catalina.connector.Response.encodeRedirectUrl(String)
          As of Version 2.1 of the Java Servlet API, use encodeRedirectURL() instead. 
org.apache.catalina.filters.CsrfPreventionFilter.CsrfResponseWrapper.encodeRedirectUrl(String)
           
org.apache.catalina.connector.Response.encodeUrl(String)
          As of Version 2.1 of the Java Servlet API, use encodeURL() instead. 
org.apache.catalina.filters.CsrfPreventionFilter.CsrfResponseWrapper.encodeUrl(String)
           
org.apache.tomcat.util.digester.Rule.end()
          Use the end method with namespace and name parameters instead. 
org.apache.catalina.startup.ExpandWar.expand(InputStream, File, String)
            
org.apache.catalina.connector.Connector.getBufferSize()
            
org.apache.coyote.ajp.AjpMessage.getBytes(byte[])
            
org.apache.el.parser.SimpleCharStream.getColumn()
           
org.apache.tomcat.util.digester.Digester.getDebug()
          This method now always returns 0. This copy of Digester uses JULI; see the documentation for that library for more information. 
org.apache.naming.resources.ResourceAttributes.getETag(boolean)
            
org.apache.jasper.JspC.getJspCompilerPath()
          Removed in Tomcat 7 
org.apache.jasper.JspC.getJspCompilerPlugin()
          Removed in Tomcat 7 
org.apache.el.parser.SimpleCharStream.getLine()
           
org.apache.tomcat.util.res.StringManager.getManager(ResourceBundle)
          This is unused in Tomcat 6 and will be removed in Tomcat 7 
org.apache.catalina.ha.tcp.SimpleTcpCluster.getManagerClassName()
          use getManagerTemplate().getClass().getName() instead. 
org.apache.catalina.tribes.membership.McastService.getMcastAddr()
          use getAddress 
org.apache.catalina.tribes.membership.McastService.getMcastBindAddress()
          use getBind 
org.apache.catalina.tribes.membership.McastService.getMcastDropTime()
          use getDropTime 
org.apache.catalina.tribes.membership.McastService.getMcastFrequency()
          use getFrequency 
org.apache.catalina.tribes.membership.McastService.getMcastPort()
          use getPort() 
org.apache.catalina.tribes.membership.McastService.getMcastSoTimeout()
          use getSoTimeout 
org.apache.catalina.tribes.membership.McastService.getMcastTTL()
          use getTtl 
org.apache.jasper.JspC.getProtectionDomain()
          Removed in Tomcat 7 
org.apache.catalina.Cluster.getProtocol()
            
org.apache.tomcat.util.digester.Digester.getReader()
          Use getXMLReader() instead, which can throw a SAXException if the reader cannot be instantiated 
org.apache.catalina.connector.Request.getRealPath(String)
          As of version 2.1 of the Java Servlet API, use ServletContext.getRealPath(). 
org.apache.tomcat.util.modeler.Registry.getRegistry()
          Not enough info - use the method that takes CL and domain 
org.apache.jasper.Options.getSendErrorToClient()
            
org.apache.jasper.JspC.getSendErrorToClient()
            
org.apache.jasper.EmbeddedServletOptions.getSendErrorToClient()
            
org.apache.tomcat.util.modeler.Registry.getServer()
          Use the instance method 
org.apache.catalina.core.ApplicationContext.getServlet(String)
          As of Java Servlet API 2.1, with no direct replacement. 
org.apache.jasper.servlet.JspCServletContext.getServlet(String)
          This method has been deprecated with no replacement 
org.apache.catalina.core.ApplicationContext.getServletNames()
          As of Java Servlet API 2.1, with no direct replacement. 
org.apache.jasper.servlet.JspCServletContext.getServletNames()
          This method has been deprecated with no replacement 
org.apache.catalina.core.ApplicationContext.getServlets()
          As of Java Servlet API 2.1, with no direct replacement. 
org.apache.jasper.servlet.JspCServletContext.getServlets()
          This method has been deprecated with no replacement 
org.apache.catalina.session.StandardSession.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.apache.tomcat.util.net.SSLImplementation.getSSLSupport(SSLSession)
          This method has been deprecated since it adds a JSSE dependency to this interface. It will be removed in versions after 6.0.x. 
org.apache.jasper.compiler.JspUtil.getTagHandlerClassName(String, ErrorDispatcher)
          Use JspUtil.getTagHandlerClassName(String, String, ErrorDispatcher) See https://issues.apache.org/bugzilla/show_bug.cgi?id=46471 
org.apache.jasper.JspC.getTagPoolSize()
          Removed in Tomcat 7 
org.apache.catalina.tribes.transport.ReceiverBase.getTcpListenAddress()
          use getAddress 
org.apache.catalina.tribes.transport.ReceiverBase.getTcpListenPort()
          use getPort 
org.apache.catalina.tribes.transport.ReceiverBase.getTcpSelectorTimeout()
          use getSelectorTimeout 
org.apache.catalina.tribes.transport.ReceiverBase.getTcpThreadCount()
          use getMinThreads()/getMaxThreads() 
org.apache.tomcat.util.buf.MessageBytes.getTime()
          The buffer are general purpose, caching for headers should be done in headers 
org.apache.catalina.Context.getTldNamespaceAware()
          This option will be removed in 8.0.x. 
org.apache.catalina.startup.TldConfig.getTldNamespaceAware()
          This option will be removed in 7.0.x. 
org.apache.catalina.startup.TldConfig.getTldValidation()
          This option will be removed in 7.0.x. 
org.apache.tomcat.util.http.Cookies.getTokenEndPosition(byte[], int, int)
          - Use private method Cookies.getTokenEndPosition(byte[], int, int, boolean) instead 
org.apache.catalina.session.StandardSession.getValue(String)
          As of Version 2.2, this method is replaced by getAttribute() 
org.apache.catalina.session.StandardSession.getValueNames()
          As of Version 2.2, this method is replaced by getAttributeNames() 
org.apache.catalina.connector.Request.isRequestedSessionIdFromUrl()
          As of Version 2.1 of the Java Servlet API, use isRequestedSessionIdFromURL() instead. 
org.apache.tomcat.util.modeler.Registry.load(String, Object, String)
          bad interface, mixing of metadata and mbeans 
org.apache.tomcat.util.modeler.Registry.loadCachedDescriptors(Object)
          Loaded automatically or using a File or Url ending in .ser 
org.apache.tomcat.util.modeler.Registry.loadDescriptors(String, Object, String)
            
org.apache.tomcat.util.modeler.Registry.loadRegistry(InputStream)
          use normal class method instead 
org.apache.catalina.core.ApplicationContext.log(Exception, String)
          As of Java Servlet API 2.1, use log(String, Throwable) instead 
org.apache.jasper.servlet.JspCServletContext.log(Exception, String)
          Use log(String,Throwable) instead 
org.apache.tomcat.util.digester.Digester.log(String)
          Call getLogger() and use it's logging methods 
org.apache.tomcat.util.digester.Digester.log(String, Throwable)
          Call getLogger() and use it's logging methods 
org.apache.tomcat.util.digester.RulesBase.match(String)
          Call match(namespaceURI,pattern) instead. 
org.apache.tomcat.util.digester.Rules.match(String)
          Call match(namespaceURI,pattern) instead. 
org.apache.tomcat.util.digester.AbstractRulesImpl.match(String)
          Call match(namespaceURI,pattern) instead. 
org.apache.tomcat.util.http.ServerCookie.maybeQuote(int, StringBuffer, String)
          - Not used 
org.apache.jasper.compiler.JspUtil.nextTemporaryVariableName()
            
org.apache.catalina.ssi.SSIServletRequestUtil.normalize(String)
            
org.apache.coyote.http11.filters.ChunkedInputFilter.parseCRLF()
          Use ChunkedInputFilter.parseCRLF(boolean) 
org.apache.catalina.connector.CoyoteAdapter.parseSessionId(Request, Request)
          Not used since 6.0.33 
org.apache.catalina.authenticator.DigestAuthenticator.parseUsername(String)
          Unused. Will be removed in Tomcat 8.0.x 
org.apache.catalina.session.StandardSession.putValue(String, Object)
          As of Version 2.2, this method is replaced by setAttribute() 
org.apache.catalina.tribes.tipis.AbstractReplicatedMap.MapMessage.readMembers(ObjectInput)
          Unused - will be removed in 8.0.x 
org.apache.tomcat.util.modeler.Registry.registerComponent(Object, String, String, String)
          - may still be used in code using pre-1.1 builds 
org.apache.catalina.session.StandardSession.removeValue(String)
          As of Version 2.2, this method is replaced by removeAttribute() 
org.apache.tomcat.util.IntrospectionUtils.replaceProperties(String, Object)
          Use the explicit method 
org.apache.jasper.compiler.JspUtil.resetTemporaryVariableName()
            
org.apache.catalina.realm.JAASRealm.setAppName(String)
          JAAS should use the Engine (domain) name and webpp/host overrides 
org.apache.tomcat.util.net.TcpConnectionHandler.setAttribute(String, Object)
          This has nothing to do with Tcp, was used as a workaround. 
org.apache.catalina.connector.Connector.setBufferSize(int)
            
org.apache.catalina.startup.Catalina.setCatalinaBase()
          Use initDirs() 
org.apache.catalina.startup.Catalina.setCatalinaHome()
          Use initDirs() 
org.apache.tomcat.util.digester.Digester.setDebug(int)
          This method now has no effect at all. This copy of Digester uses JULI; see the documentation for that library for more information. 
org.apache.naming.resources.ResourceAttributes.setLastModified(Date)
            
org.apache.catalina.ha.tcp.SimpleTcpCluster.setManagerClassName(String)
          use nested <Manager> element inside the cluster config instead. 
org.apache.catalina.tribes.membership.McastService.setMcastAddr(String)
          use setAddress 
org.apache.catalina.tribes.membership.McastService.setMcastFrequency(long)
          use setFrequency 
org.apache.catalina.tribes.membership.McastService.setMcastPort(int)
          use setPort 
org.apache.catalina.tribes.membership.McastService.setMcastSoTimeout(int)
          use setSoTimeout 
org.apache.catalina.tribes.membership.McastService.setMcastTTL(int)
          use setTtl 
org.apache.catalina.ha.session.JvmRouteBinderValve.setNewSessionCookie(Request, Response, String)
          Use Request.changeSessionId(String) 
org.apache.catalina.Cluster.setProtocol(String)
            
org.apache.tomcat.util.modeler.Registry.setServer(MBeanServer)
          Use the instance method 
org.apache.tomcat.util.net.TcpConnectionHandler.setServer(Object)
          This has nothing to do with TcpHandling, was used as a workaround 
org.apache.catalina.connector.Response.setStatus(int, String)
          As of Version 2.1 of the Java Servlet API, this method has been deprecated due to the ambiguous meaning of the message parameter. 
org.apache.catalina.tribes.transport.ReceiverBase.setTcpListenAddress(String)
          use setAddress 
org.apache.catalina.tribes.transport.ReceiverBase.setTcpListenPort(int)
          use setPort 
org.apache.catalina.tribes.transport.ReceiverBase.setTcpSelectorTimeout(long)
          use setSelectorTimeout 
org.apache.catalina.tribes.transport.ReceiverBase.setTcpThreadCount(int)
          use setMaxThreads/setMinThreads 
org.apache.tomcat.util.buf.MessageBytes.setTime(long)
            
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.catalina.Context.setTldNamespaceAware(boolean)
          This option will be removed in 8.0.x. 
org.apache.catalina.startup.TldConfig.setTldNamespaceAware(boolean)
          This option will be removed in 7.0.x. 
org.apache.catalina.startup.TldConfig.setTldValidation(boolean)
          This option will be removed in 7.0.x. 
org.apache.catalina.tribes.io.XByteBuffer.toBytes(boolean)
          use toBytes(boolean,byte[],int) 
org.apache.catalina.tribes.io.XByteBuffer.toBytes(int)
          use toBytes(int,byte[],int) 
org.apache.catalina.tribes.io.XByteBuffer.toBytes(long)
          use toBytes(long,byte[],int) 
org.apache.jasper.compiler.JspUtil.validateExpressions(Mark, String, Class, FunctionMapper, ErrorDispatcher)
          now delegated to the org.apache.el Package 
org.apache.catalina.tribes.tipis.AbstractReplicatedMap.MapMessage.writeMembers(ObjectOutput, Member[])
          Unused - will be removed in 8.0.x 
 

Deprecated Constructors
org.apache.catalina.tribes.tipis.AbstractReplicatedMap.MapMessage()
          Unused - will be removed in Tomcat 8.0.x 
org.apache.tomcat.util.digester.CallMethodRule(Digester, String, int)
          The digester instance is now set in the Digester.addRule(java.lang.String, org.apache.tomcat.util.digester.Rule) method. Use CallMethodRule.CallMethodRule(String methodName,int paramCount) instead. 
org.apache.tomcat.util.digester.CallMethodRule(Digester, String, int, Class[])
          The digester instance is now set in the Digester.addRule(java.lang.String, org.apache.tomcat.util.digester.Rule) method. Use CallMethodRule.CallMethodRule(String methodName,int paramCount, Class [] paramTypes) instead. 
org.apache.tomcat.util.digester.CallMethodRule(Digester, String, int, String[])
          The digester instance is now set in the Digester.addRule(java.lang.String, org.apache.tomcat.util.digester.Rule) method. Use CallMethodRule.CallMethodRule(String methodName,int paramCount, String [] paramTypes) instead. 
org.apache.tomcat.util.digester.CallParamRule(Digester, int)
          The digester instance is now set in the Digester.addRule(java.lang.String, org.apache.tomcat.util.digester.Rule) method. Use CallParamRule.CallParamRule(int paramIndex) instead. 
org.apache.tomcat.util.digester.CallParamRule(Digester, int, String)
          The digester instance is now set in the Digester.addRule(java.lang.String, org.apache.tomcat.util.digester.Rule) method. Use CallParamRule.CallParamRule(int paramIndex, String attributeName) instead. 
org.apache.tomcat.util.digester.FactoryCreateRule(Digester, Class)
          The digester instance is now set in the Digester.addRule(java.lang.String, org.apache.tomcat.util.digester.Rule) method. Use FactoryCreateRule.FactoryCreateRule(Class clazz) instead. 
org.apache.tomcat.util.digester.FactoryCreateRule(Digester, Class, String)
          The digester instance is now set in the Digester.addRule(java.lang.String, org.apache.tomcat.util.digester.Rule) method. Use FactoryCreateRule.FactoryCreateRule(Class clazz, String attributeName) instead. 
org.apache.tomcat.util.digester.FactoryCreateRule(Digester, ObjectCreationFactory)
          The digester instance is now set in the Digester.addRule(java.lang.String, org.apache.tomcat.util.digester.Rule) method. Use FactoryCreateRule.FactoryCreateRule(ObjectCreationFactory creationFactory) instead. 
org.apache.tomcat.util.digester.FactoryCreateRule(Digester, String)
          The digester instance is now set in the Digester.addRule(java.lang.String, org.apache.tomcat.util.digester.Rule) method. Use FactoryCreateRule.FactoryCreateRule(String className) instead. 
org.apache.tomcat.util.digester.FactoryCreateRule(Digester, String, String)
          The digester instance is now set in the Digester.addRule(java.lang.String, org.apache.tomcat.util.digester.Rule) method. Use FactoryCreateRule.FactoryCreateRule(String className, String attributeName) instead. 
org.apache.jk.common.JkInputStream(MsgContext)
            
org.apache.tomcat.util.buf.MessageBytes()
          Use static newInstance() in order to allow future hooks. 
org.apache.jk.common.MsgAjp()
          Use the buffer size constructor. 
org.apache.jk.core.MsgContext()
            
org.apache.tomcat.util.digester.ObjectCreateRule(Digester, Class)
          The digester instance is now set in the Digester.addRule(java.lang.String, org.apache.tomcat.util.digester.Rule) method. Use ObjectCreateRule.ObjectCreateRule(Class clazz) instead. 
org.apache.tomcat.util.digester.ObjectCreateRule(Digester, String)
          The digester instance is now set in the Digester.addRule(java.lang.String, org.apache.tomcat.util.digester.Rule) method. Use ObjectCreateRule.ObjectCreateRule(String className) instead. 
org.apache.tomcat.util.digester.ObjectCreateRule(Digester, String, Class)
          The digester instance is now set in the Digester.addRule(java.lang.String, org.apache.tomcat.util.digester.Rule) method. Use ObjectCreateRule.ObjectCreateRule(String attributeName, Class clazz) instead. 
org.apache.tomcat.util.digester.ObjectCreateRule(Digester, String, String)
          The digester instance is now set in the Digester.addRule(java.lang.String, org.apache.tomcat.util.digester.Rule) method. Use ObjectCreateRule.ObjectCreateRule(String className, String attributeName) instead. 
org.apache.jasper.xmlparser.ParserUtils()
          Unused. Will be removed in Tomcat 7. Use ParserUtils.ParserUtils(boolean,boolean) instead. 
org.apache.tomcat.util.digester.Rule(Digester)
          The digester instance is now set in the Digester.addRule(java.lang.String, org.apache.tomcat.util.digester.Rule) method. Use Rule.Rule() instead. 
org.apache.tomcat.util.digester.SetNextRule(Digester, String)
          The digester instance is now set in the Digester.addRule(java.lang.String, org.apache.tomcat.util.digester.Rule) method. Use SetNextRule.SetNextRule(String methodName) instead. 
org.apache.tomcat.util.digester.SetNextRule(Digester, String, String)
          The digester instance is now set in the Digester.addRule(java.lang.String, org.apache.tomcat.util.digester.Rule) method. Use SetNextRule.SetNextRule(String methodName,String paramType) instead. 
org.apache.tomcat.util.digester.SetPropertiesRule(Digester)
          The digester instance is now set in the Digester.addRule(java.lang.String, org.apache.tomcat.util.digester.Rule) method. Use SetPropertiesRule.SetPropertiesRule() instead. 
org.apache.tomcat.util.digester.SetPropertyRule(Digester, String, String)
          The digester instance is now set in the Digester.addRule(java.lang.String, org.apache.tomcat.util.digester.Rule) method. Use SetPropertyRule.SetPropertyRule(String name, String value) instead. 
org.apache.tomcat.util.digester.SetRootRule(Digester, String)
          The digester instance is now set in the Digester.addRule(java.lang.String, org.apache.tomcat.util.digester.Rule) method. Use SetRootRule.SetRootRule(String methodName) instead. 
org.apache.tomcat.util.digester.SetRootRule(Digester, String, String)
          The digester instance is now set in the Digester.addRule(java.lang.String, org.apache.tomcat.util.digester.Rule) method. Use SetRootRule.SetRootRule(String methodName,String paramType) instead. 
org.apache.tomcat.util.digester.SetTopRule(Digester, String)
          The digester instance is now set in the Digester.addRule(java.lang.String, org.apache.tomcat.util.digester.Rule) method. Use SetTopRule.SetTopRule(String methodName) instead. 
org.apache.tomcat.util.digester.SetTopRule(Digester, String, String)
          The digester instance is now set in the Digester.addRule(java.lang.String, org.apache.tomcat.util.digester.Rule) method. Use SetTopRule.SetTopRule(String methodName, String paramType) instead. 
org.apache.jasper.runtime.TagHandlerPool(int)
          Use static getTagHandlerPool 
 


Apache Tomcat 6.0.41

Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.