Deprecated API


Contents
Deprecated Classes
org.apache.velocity.runtime.configuration.Configuration
          As of version 1.1, please use ExtendedProperties from the Jakarta Commons Collections component. 
org.apache.velocity.test.ConfigurationTestCase
          Will be removed when Configuration class is removed 
org.apache.velocity.runtime.Runtime
          Use RuntimeInstance or RuntimeSingleton instead. 
org.apache.velocity.servlet.VelocityServlet
          This servlet has been replaced by VelocityViewServlet, available from the Velocity-Tools sub-project. VelocityViewServlet provides support for quick, clean MVC web development. VelocityServlet will be removed in a future version of Velocity. 
 

Deprecated Methods
org.apache.velocity.app.VelocityEngine.evaluate(Context, Writer, String, InputStream)
          Use VelocityEngine.evaluate( Context context, Writer writer, String logTag, Reader reader ) 
org.apache.velocity.app.Velocity.evaluate(Context, Writer, String, InputStream)
          Use Velocity.evaluate( Context context, Writer writer, String logTag, Reader reader ) 
org.apache.velocity.runtime.parser.CharStream.getColumn()
            
org.apache.velocity.runtime.parser.VelocityCharStream.getColumn()
            
org.apache.velocity.runtime.configuration.Configuration.getExtendedProperties()
          Do not use. For deprecation assistance only. 
org.apache.velocity.runtime.parser.CharStream.getLine()
            
org.apache.velocity.runtime.parser.VelocityCharStream.getLine()
            
org.apache.velocity.runtime.resource.ResourceManagerImpl.getResource(String, int)
          Use ResourceManagerImpl.getResource(String resourceName, int resourceType, String encoding ) 
org.apache.velocity.runtime.RuntimeSingleton.getRuntimeInstance()
          Use getRuntimeServices() instead. 
org.apache.velocity.servlet.VelocityServlet.handleRequest(Context)
          Use VelocityServlet.handleRequest( HttpServletRequest request, HttpServletResponse response, Context ctx ) 
org.apache.velocity.servlet.VelocityServlet.loadConfiguration(ServletConfig)
          Use VelocityViewServlet from the Velocity Tools library instead. 
org.apache.velocity.app.VelocityEngine.mergeTemplate(String, Context, Writer)
           
org.apache.velocity.app.Velocity.mergeTemplate(String, Context, Writer)
          Use Velocity.mergeTemplate( String templateName, String encoding, Context context, Writer writer ) 
org.apache.velocity.util.StringUtils.removeUnderScores(String)
          Use the org.apache.commons.util.StringUtils class instead. Using its firstLetterCaps() method in conjunction with a StringTokenizer will achieve the same result. 
org.apache.velocity.app.VelocityEngine.setConfiguration(Configuration)
          Use VelocityEngine.setExtendedProperties( ExtendedProperties ) 
org.apache.velocity.app.Velocity.setConfiguration(Configuration)
          Use Velocity.setExtendedProperties( ExtendedProperties ) 
org.apache.velocity.app.VelocityEngine.templateExists(String)
          Use resourceExists(String) instead. 
org.apache.velocity.app.Velocity.templateExists(String)
          Use resourceExists(String) instead. 
 



Copyright © 2002 Apache Software Foundation. All Rights Reserved.