org.springframework.boot.autoconfigure.template

Class AbstractTemplateViewResolverProperties

    • Constructor Detail

      • AbstractTemplateViewResolverProperties

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

      • 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.