public class CacheAwareGeneralTemplateWriter
extends org.thymeleaf.templatewriter.AbstractGeneralTemplateWriter
AbstractGeneralTemplateWriter
that provides content caching
on the node level.Modifier and Type | Field and Description |
---|---|
protected net.sf.ehcache.Cache |
cache |
protected org.thymeleaf.templatewriter.AbstractGeneralTemplateWriter |
delegateWriter |
protected static org.apache.commons.logging.Log |
LOG |
Constructor and Description |
---|
CacheAwareGeneralTemplateWriter(org.thymeleaf.templatewriter.AbstractGeneralTemplateWriter delegateWriter) |
Modifier and Type | Method and Description |
---|---|
net.sf.ehcache.Cache |
getCache() |
void |
setCache(net.sf.ehcache.Cache cache) |
protected boolean |
shouldWriteXmlDeclaration() |
protected boolean |
useXhtmlTagMinimizationRules() |
void |
writeNode(org.thymeleaf.Arguments arguments,
Writer writer,
org.thymeleaf.dom.Node node) |
protected static final org.apache.commons.logging.Log LOG
protected net.sf.ehcache.Cache cache
protected org.thymeleaf.templatewriter.AbstractGeneralTemplateWriter delegateWriter
public CacheAwareGeneralTemplateWriter(org.thymeleaf.templatewriter.AbstractGeneralTemplateWriter delegateWriter)
public void writeNode(org.thymeleaf.Arguments arguments, Writer writer, org.thymeleaf.dom.Node node) throws IOException
writeNode
in class org.thymeleaf.templatewriter.AbstractGeneralTemplateWriter
IOException
protected boolean shouldWriteXmlDeclaration()
shouldWriteXmlDeclaration
in class org.thymeleaf.templatewriter.AbstractGeneralTemplateWriter
protected boolean useXhtmlTagMinimizationRules()
useXhtmlTagMinimizationRules
in class org.thymeleaf.templatewriter.AbstractGeneralTemplateWriter
public void setCache(net.sf.ehcache.Cache cache)
public net.sf.ehcache.Cache getCache()
Copyright © 2017. All rights reserved.