Class AbstractTemplateViewResolverProperties
java.lang.Object
org.springframework.boot.autoconfigure.template.AbstractViewResolverProperties
org.springframework.boot.autoconfigure.template.AbstractTemplateViewResolverProperties
- Direct Known Subclasses:
FreeMarkerProperties
,GroovyTemplateProperties
,MustacheProperties
Base class for
@ConfigurationProperties
of a
AbstractTemplateViewResolver
.- Since:
- 1.1.0
- Author:
- Andy Wilkinson
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractTemplateViewResolverProperties
(String defaultPrefix, String defaultSuffix) -
Method Summary
Modifier and TypeMethodDescriptionvoid
applyToMvcViewResolver
(Object viewResolver) Apply the given properties to aAbstractTemplateViewResolver
.boolean
boolean
boolean
boolean
boolean
void
setAllowRequestOverride
(boolean allowRequestOverride) void
setAllowSessionOverride
(boolean allowSessionOverride) void
setExposeRequestAttributes
(boolean exposeRequestAttributes) void
setExposeSessionAttributes
(boolean exposeSessionAttributes) void
setExposeSpringMacroHelpers
(boolean exposeSpringMacroHelpers) void
void
setRequestContextAttribute
(String requestContextAttribute) void
Methods 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.
-