Class AbstractTemplateViewResolverProperties
java.lang.Object
org.springframework.boot.autoconfigure.template.AbstractViewResolverProperties
org.springframework.boot.autoconfigure.template.AbstractTemplateViewResolverProperties
- Direct Known Subclasses:
FreeMarkerProperties,GroovyTemplateProperties
Base class for
@ConfigurationProperties of a
AbstractTemplateViewResolver.- Since:
- 1.1.0
- Author:
- Andy Wilkinson
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractTemplateViewResolverProperties(String defaultPrefix, String defaultSuffix) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyToMvcViewResolver(Object viewResolver) Apply the given properties to aAbstractTemplateViewResolver.booleanbooleanbooleanbooleanbooleanvoidsetAllowRequestOverride(boolean allowRequestOverride) voidsetAllowSessionOverride(boolean allowSessionOverride) voidsetExposeRequestAttributes(boolean exposeRequestAttributes) voidsetExposeSessionAttributes(boolean exposeSessionAttributes) voidsetExposeSpringMacroHelpers(boolean exposeSpringMacroHelpers) voidvoidsetRequestContextAttribute(String requestContextAttribute) voidMethods inherited from class org.springframework.boot.autoconfigure.template.AbstractViewResolverProperties
getCharset, getCharsetName, getContentType, getViewNames, isCache, isCheckTemplateLocation, isEnabled, setCache, setCharset, setCheckTemplateLocation, setContentType, setEnabled, setViewNames
-
Constructor Details
-
AbstractTemplateViewResolverProperties
-
-
Method Details
-
getPrefix
-
setPrefix
-
getSuffix
-
setSuffix
-
getRequestContextAttribute
-
setRequestContextAttribute
-
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
Apply the given properties to aAbstractTemplateViewResolver. 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.
-