Class TemplateResolver

  • All Implemented Interfaces:
    org.thymeleaf.templateresolver.ITemplateResolver

    public class TemplateResolver
    extends org.thymeleaf.templateresolver.AbstractConfigurableTemplateResolver
    The template resolver.
    Author:
    Christian Bremer
    • Field Summary

      • Fields inherited from class org.thymeleaf.templateresolver.AbstractConfigurableTemplateResolver

        DEFAULT_CACHE_TTL_MS, DEFAULT_CACHEABLE, DEFAULT_TEMPLATE_MODE
      • Fields inherited from class org.thymeleaf.templateresolver.AbstractTemplateResolver

        DEFAULT_EXISTENCE_CHECK, DEFAULT_USE_DECOUPLED_LOGIC
    • Constructor Summary

      Constructors 
      Constructor Description
      TemplateResolver()
      Instantiates a new template resolver.
      TemplateResolver​(org.springframework.core.io.ResourceLoader resourceLoader)
      Instantiates a new template resolver.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.thymeleaf.templateresource.ITemplateResource computeTemplateResource​(org.thymeleaf.IEngineConfiguration configuration, String ownerTemplate, String template, String resourceName, String characterEncoding, Map<String,​Object> templateResolutionAttributes)  
      • Methods inherited from class org.thymeleaf.templateresolver.AbstractConfigurableTemplateResolver

        addTemplateAlias, clearTemplateAliases, computeResourceName, computeResourceName, computeTemplateMode, computeTemplateResource, computeValidity, getCacheablePatterns, getCacheablePatternSpec, getCacheTTLMs, getCharacterEncoding, getCSSTemplateModePatterns, getCSSTemplateModePatternSpec, getForceSuffix, getForceTemplateMode, getHtml5TemplateModePatterns, getHtml5TemplateModePatternSpec, getHtmlTemplateModePatterns, getHtmlTemplateModePatternSpec, getJavaScriptTemplateModePatterns, getJavaScriptTemplateModePatternSpec, getLegacyHtml5TemplateModePatterns, getLegacyHtml5TemplateModePatternSpec, getNonCacheablePatterns, getNonCacheablePatternSpec, getPrefix, getRawTemplateModePatterns, getRawTemplateModePatternSpec, getSuffix, getTemplateAliases, getTemplateMode, getTextTemplateModePatterns, getTextTemplateModePatternSpec, getValidXhtmlTemplateModePatterns, getValidXhtmlTemplateModePatternSpec, getValidXmlTemplateModePatterns, getValidXmlTemplateModePatternSpec, getXhtmlTemplateModePatterns, getXhtmlTemplateModePatternSpec, getXmlTemplateModePatterns, getXmlTemplateModePatternSpec, isCacheable, setCacheable, setCacheablePatterns, setCacheTTLMs, setCharacterEncoding, setCSSTemplateModePatterns, setForceSuffix, setForceTemplateMode, setHtml5TemplateModePatterns, setHtmlTemplateModePatterns, setJavaScriptTemplateModePatterns, setLegacyHtml5TemplateModePatterns, setNonCacheablePatterns, setPrefix, setRawTemplateModePatterns, setSuffix, setTemplateAliases, setTemplateMode, setTemplateMode, setTextTemplateModePatterns, setValidXhtmlTemplateModePatterns, setValidXmlTemplateModePatterns, setXhtmlTemplateModePatterns, setXmlTemplateModePatterns
      • Methods inherited from class org.thymeleaf.templateresolver.AbstractTemplateResolver

        computeResolvable, getCheckExistence, getName, getOrder, getResolvablePatterns, getResolvablePatternSpec, getUseDecoupledLogic, resolveTemplate, setCheckExistence, setName, setOrder, setResolvablePatterns, setUseDecoupledLogic
    • Constructor Detail

      • TemplateResolver

        public TemplateResolver()
        Instantiates a new template resolver.
      • TemplateResolver

        public TemplateResolver​(org.springframework.core.io.ResourceLoader resourceLoader)
        Instantiates a new template resolver.
        Parameters:
        resourceLoader - the resource loader
    • Method Detail

      • computeTemplateResource

        protected org.thymeleaf.templateresource.ITemplateResource computeTemplateResource​(org.thymeleaf.IEngineConfiguration configuration,
                                                                                           String ownerTemplate,
                                                                                           String template,
                                                                                           String resourceName,
                                                                                           String characterEncoding,
                                                                                           Map<String,​Object> templateResolutionAttributes)
        Specified by:
        computeTemplateResource in class org.thymeleaf.templateresolver.AbstractConfigurableTemplateResolver