| java.lang.Object | |
| ↳ | org.springframework.ui.velocity.VelocityEngineUtils |
Utility class for working with a VelocityEngine. Provides convenience methods to merge a Velocity template with a model.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Merge the specified Velocity template with the given model and write
the result to the given Writer.
| |||||||||||
Merge the specified Velocity template with the given model and write
the result to the given Writer.
| |||||||||||
Merge the specified Velocity template with the given model into a String.
| |||||||||||
Merge the specified Velocity template with the given model into a String.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Merge the specified Velocity template with the given model and write the result to the given Writer.
| velocityEngine | VelocityEngine to work with |
|---|---|
| templateLocation | the location of template, relative to Velocity's resource loader path |
| model | the Map that contains model names as keys and model objects as values |
| writer | the Writer to write the result to |
| if the template wasn't found or rendering failed | |
| VelocityException |
Merge the specified Velocity template with the given model and write the result to the given Writer.
| velocityEngine | VelocityEngine to work with |
|---|---|
| templateLocation | the location of template, relative to Velocity's resource loader path |
| encoding | the encoding of the template file |
| model | the Map that contains model names as keys and model objects as values |
| writer | the Writer to write the result to |
| if the template wasn't found or rendering failed | |
| VelocityException |
Merge the specified Velocity template with the given model into a String.
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 with |
|---|---|
| templateLocation | the location of template, relative to Velocity's resource loader path |
| encoding | the encoding of the template file |
| model | the Map that contains model names as keys and model objects as values |
| if the template wasn't found or rendering failed | |
| VelocityException |
Merge the specified Velocity template with the given model into a String.
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 with |
|---|---|
| templateLocation | the location of template, relative to Velocity's resource loader path |
| model | the Map that contains model names as keys and model objects as values |
| if the template wasn't found or rendering failed | |
| VelocityException |