Class AbstractTemplateViewResolverProperties

java.lang.Object
org.springframework.boot.autoconfigure.template.AbstractViewResolverProperties
org.springframework.boot.autoconfigure.template.AbstractTemplateViewResolverProperties
Direct Known Subclasses:
FreeMarkerProperties, GroovyTemplateProperties

public abstract class AbstractTemplateViewResolverProperties extends AbstractViewResolverProperties
Since:
1.1.0
Author:
Andy Wilkinson
  • Constructor Details

    • AbstractTemplateViewResolverProperties

      protected AbstractTemplateViewResolverProperties(String defaultPrefix, String defaultSuffix)
  • Method Details

    • getPrefix

      public String getPrefix()
    • setPrefix

      public void setPrefix(String prefix)
    • getSuffix

      public String getSuffix()
    • setSuffix

      public void setSuffix(String suffix)
    • getRequestContextAttribute

      public String getRequestContextAttribute()
    • setRequestContextAttribute

      public void setRequestContextAttribute(String requestContextAttribute)
    • isExposeRequestAttributes

      public boolean isExposeRequestAttributes()
    • setExposeRequestAttributes

      public void setExposeRequestAttributes(boolean exposeRequestAttributes)
    • isExposeSessionAttributes

      public boolean isExposeSessionAttributes()
    • setExposeSessionAttributes

      public void setExposeSessionAttributes(boolean exposeSessionAttributes)
    • isAllowRequestOverride

      public boolean isAllowRequestOverride()
    • setAllowRequestOverride

      public void setAllowRequestOverride(boolean allowRequestOverride)
    • isAllowSessionOverride

      public boolean isAllowSessionOverride()
    • setAllowSessionOverride

      public void setAllowSessionOverride(boolean allowSessionOverride)
    • isExposeSpringMacroHelpers

      public boolean isExposeSpringMacroHelpers()
    • setExposeSpringMacroHelpers

      public void setExposeSpringMacroHelpers(boolean exposeSpringMacroHelpers)
    • applyToMvcViewResolver

      public void applyToMvcViewResolver(Object viewResolver)
      Apply the given properties to a AbstractTemplateViewResolver. Use Object in signature to avoid runtime dependency on MVC, which means that the template engine can be used in a non-web application.
      Parameters:
      viewResolver - the resolver to apply the properties to.