Package com.vdoc.sdk.commons.freemarker
Class Templates
java.lang.Object
com.vdoc.sdk.commons.freemarker.Templates
Deprecated.
Templates
- Author:
- vmartinon
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetTemplateContent(String relativePath, String template, Collection<freemarker.template.ObjectWrapper> objectWrappers, Map<String, Object> parameters) Deprecated.Get template contentstatic StringDeprecated.Get template content
-
Constructor Details
-
Templates
public Templates()Deprecated.
-
-
Method Details
-
getTemplateContent
public static String getTemplateContent(String relativePath, String template, Map<String, Object> parameters) throws IOException, freemarker.template.TemplateExceptionDeprecated.Get template content- Parameters:
relativePath- relative folder path (relative to /vdoc.ear/vdoc.war/)template- the .flt file nameparameters- all template input param- Returns:
- the template content
- Throws:
IOException- on errorfreemarker.template.TemplateException- on error
-
getTemplateContent
public static String getTemplateContent(String relativePath, String template, Collection<freemarker.template.ObjectWrapper> objectWrappers, Map<String, Object> parameters) throws IOException, freemarker.template.TemplateExceptionDeprecated.Get template content- Parameters:
relativePath- relative folder path (relative to /vdoc.ear/vdoc.war/)template- the .flt file nameobjectWrappers- the object wrappersparameters- all template input param- Returns:
- the template content
- Throws:
IOException- on errorfreemarker.template.TemplateException- on error
-