|
spring-context-support | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.ui.freemarker.FreeMarkerTemplateUtils
public abstract class FreeMarkerTemplateUtils
Utility class for working with FreeMarker. Provides convenience methods to process a FreeMarker template with a model.
| Constructor Summary | |
|---|---|
FreeMarkerTemplateUtils()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
processTemplateIntoString(freemarker.template.Template template,
java.lang.Object model)
Process the specified FreeMarker template with the given model and write the result to the given Writer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FreeMarkerTemplateUtils()
| Method Detail |
|---|
public static java.lang.String processTemplateIntoString(freemarker.template.Template template,
java.lang.Object model)
throws java.io.IOException,
freemarker.template.TemplateException
When using this method to prepare a text for a mail to be sent with Spring's mail support, consider wrapping IO/TemplateException in MailPreparationException.
model - the model object, typically a Map that contains model names
as keys and model objects as values
java.io.IOException - if the template wasn't found or couldn't be read
freemarker.template.TemplateException - if rendering failedMailPreparationException
|
spring-context-support | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||