Save This Page
Home » struts-2.1.8.1-src » org.apache » struts2 » components » template » [javadoc | source]
org.apache.struts2.components.template
public class: FreemarkerTemplateEngine [javadoc | source]
java.lang.Object
   org.apache.struts2.components.template.BaseTemplateEngine
      org.apache.struts2.components.template.FreemarkerTemplateEngine

All Implemented Interfaces:
    TemplateEngine

Freemarker based template engine.
Field Summary
static  Class bodyContent     
protected  FreemarkerManager freemarkerManager     
protected final  Map<String, Template> templates     
protected final  Set<String> missingTemplates     
protected  boolean freemarkerCaching     
Fields inherited from org.apache.struts2.components.template.BaseTemplateEngine:
DEFAULT_THEME_PROPERTIES_FILE_NAME,  themeProps
Method from org.apache.struts2.components.template.FreemarkerTemplateEngine Summary:
addToCache,   addToMissingTemplateCache,   clearTemplatesCache,   findInCache,   getSuffix,   isTemplateMissing,   renderTemplate,   setCacheTemplates,   setFreemarkerManager
Methods from org.apache.struts2.components.template.BaseTemplateEngine:
getFinalTemplateName,   getSuffix,   getThemePropertiesFileName,   getThemeProps
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.struts2.components.template.FreemarkerTemplateEngine Detail:
 protected  void addToCache(String templateName,
    Template template) 
 protected  void addToMissingTemplateCache(String templateName) 
 public  void clearTemplatesCache() 
    Clear the templates and missing templates cache
 protected Template findInCache(String templateName) 
 protected String getSuffix() 
 protected boolean isTemplateMissing(String templateName) 
 public  void renderTemplate(TemplateRenderingContext templateContext) throws Exception 
 public  void setCacheTemplates(String cacheTemplates) 
    Enables or disables Struts caching of Freemarker templates. By default disabled. Set struts.freemarker.templatesCache=true to enable cache
 public  void setFreemarkerManager(FreemarkerManager mgr)