Class FreeMarkerTemplateEngine

  • All Implemented Interfaces:
    TemplateEngine

    public class FreeMarkerTemplateEngine
    extends java.lang.Object
    implements TemplateEngine
    The Class FreeMarkerTemplateEngine.

    Created: 2016. 1. 9.

    • Constructor Summary

      Constructors 
      Constructor Description
      FreeMarkerTemplateEngine​(freemarker.template.Configuration configuration)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void process​(java.lang.String templateName, java.util.Map<java.lang.String,​java.lang.Object> model, java.io.Writer writer)
      Executes template, using the data-model provided, writing the generated output to the supplied Writer.
      void process​(java.lang.String templateName, java.util.Map<java.lang.String,​java.lang.Object> model, java.io.Writer writer, java.util.Locale locale)
      Executes template, using the data-model provided, writing the generated output to the supplied Writer.
      void process​(java.lang.String templateName, java.util.Map<java.lang.String,​java.lang.Object> model, java.lang.String templateSource, java.io.Writer writer)
      Executes template, using the data-model provided, writing the generated output to the supplied Writer.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FreeMarkerTemplateEngine

        public FreeMarkerTemplateEngine​(freemarker.template.Configuration configuration)
    • Method Detail

      • process

        public void process​(java.lang.String templateName,
                            java.util.Map<java.lang.String,​java.lang.Object> model,
                            java.lang.String templateSource,
                            java.io.Writer writer)
                     throws TemplateEngineProcessException
        Description copied from interface: TemplateEngine
        Executes template, using the data-model provided, writing the generated output to the supplied Writer.
        Specified by:
        process in interface TemplateEngine
        Parameters:
        templateName - the template name
        model - the holder of the variables visible from the template (name-value pairs)
        templateSource - the template source
        writer - the Writer where the output of the template will go. Writer.close() is not called.
        Throws:
        TemplateEngineProcessException - if an exception occurs during template processing
      • process

        public void process​(java.lang.String templateName,
                            java.util.Map<java.lang.String,​java.lang.Object> model,
                            java.io.Writer writer)
                     throws TemplateEngineProcessException
        Description copied from interface: TemplateEngine
        Executes template, using the data-model provided, writing the generated output to the supplied Writer.
        Specified by:
        process in interface TemplateEngine
        Parameters:
        templateName - the template name
        model - the holder of the variables visible from the template (name-value pairs)
        writer - the Writer where the output of the template will go. Writer.close() is not called.
        Throws:
        TemplateEngineProcessException - if an exception occurs during template processing
      • process

        public void process​(java.lang.String templateName,
                            java.util.Map<java.lang.String,​java.lang.Object> model,
                            java.io.Writer writer,
                            java.util.Locale locale)
                     throws TemplateEngineProcessException
        Description copied from interface: TemplateEngine
        Executes template, using the data-model provided, writing the generated output to the supplied Writer.
        Specified by:
        process in interface TemplateEngine
        Parameters:
        templateName - the template name
        model - the holder of the variables visible from the template (name-value pairs)
        writer - the Writer where the output of the template will go. Writer.close() is not called.
        locale - the locale
        Throws:
        TemplateEngineProcessException - if an exception occurs during template processing