@Deprecated public abstract class VelocityEngineUtils extends Object
| 构造器和说明 |
|---|
VelocityEngineUtils()
已过时。
|
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
mergeTemplate(org.apache.velocity.app.VelocityEngine velocityEngine,
String templateLocation,
Map<String,Object> model,
Writer writer)
已过时。
Use
mergeTemplate(VelocityEngine, String, String, Map, Writer)
instead, following Velocity 1.6's corresponding deprecation in its own API. |
static void |
mergeTemplate(org.apache.velocity.app.VelocityEngine velocityEngine,
String templateLocation,
String encoding,
Map<String,Object> model,
Writer writer)
已过时。
Merge the specified Velocity template with the given model and write the result
to the given Writer.
|
static String |
mergeTemplateIntoString(org.apache.velocity.app.VelocityEngine velocityEngine,
String templateLocation,
Map<String,Object> model)
已过时。
Use
mergeTemplateIntoString(VelocityEngine, String, String, Map)
instead, following Velocity 1.6's corresponding deprecation in its own API. |
static String |
mergeTemplateIntoString(org.apache.velocity.app.VelocityEngine velocityEngine,
String templateLocation,
String encoding,
Map<String,Object> model)
已过时。
Merge the specified Velocity template with the given model into a String.
|
@Deprecated public static void mergeTemplate(org.apache.velocity.app.VelocityEngine velocityEngine, String templateLocation, Map<String,Object> model, Writer writer) throws org.apache.velocity.exception.VelocityException
mergeTemplate(VelocityEngine, String, String, Map, Writer)
instead, following Velocity 1.6's corresponding deprecation in its own API.velocityEngine - VelocityEngine to work withtemplateLocation - the location of template, relative to Velocity's resource loader pathmodel - the Map that contains model names as keys and model objects as valueswriter - the Writer to write the result toorg.apache.velocity.exception.VelocityException - if the template wasn't found or rendering failedpublic static void mergeTemplate(org.apache.velocity.app.VelocityEngine velocityEngine,
String templateLocation,
String encoding,
Map<String,Object> model,
Writer writer)
throws org.apache.velocity.exception.VelocityException
velocityEngine - VelocityEngine to work withtemplateLocation - the location of template, relative to Velocity's resource loader pathencoding - the encoding of the template filemodel - the Map that contains model names as keys and model objects as valueswriter - the Writer to write the result toorg.apache.velocity.exception.VelocityException - if the template wasn't found or rendering failed@Deprecated public static String mergeTemplateIntoString(org.apache.velocity.app.VelocityEngine velocityEngine, String templateLocation, Map<String,Object> model) throws org.apache.velocity.exception.VelocityException
mergeTemplateIntoString(VelocityEngine, String, String, Map)
instead, following Velocity 1.6's corresponding deprecation in its own API.When using this method to prepare a text for a mail to be sent with Spring's mail support, consider wrapping VelocityException in MailPreparationException.
velocityEngine - VelocityEngine to work withtemplateLocation - the location of template, relative to Velocity's resource loader pathmodel - the Map that contains model names as keys and model objects as valuesorg.apache.velocity.exception.VelocityException - if the template wasn't found or rendering failedpublic static String mergeTemplateIntoString(org.apache.velocity.app.VelocityEngine velocityEngine, String templateLocation, String encoding, Map<String,Object> model) throws org.apache.velocity.exception.VelocityException
When using this method to prepare a text for a mail to be sent with Spring's mail support, consider wrapping VelocityException in MailPreparationException.
velocityEngine - VelocityEngine to work withtemplateLocation - the location of template, relative to Velocity's resource loader pathencoding - the encoding of the template filemodel - the Map that contains model names as keys and model objects as valuesorg.apache.velocity.exception.VelocityException - if the template wasn't found or rendering failedCopyright © 2022. All rights reserved.