Class FreeMarkerProperties
java.lang.Object
org.springframework.boot.freemarker.autoconfigure.FreeMarkerProperties
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
applyToMvcViewResolver
(Object viewResolver) Apply the given properties to aAbstractTemplateViewResolver
.String[]
String[]
boolean
boolean
boolean
isCache()
boolean
boolean
boolean
boolean
boolean
boolean
void
setAllowRequestOverride
(boolean allowRequestOverride) void
setAllowSessionOverride
(boolean allowSessionOverride) void
setCache
(boolean cache) void
setCharset
(Charset charset) void
setCheckTemplateLocation
(boolean checkTemplateLocation) void
setContentType
(MimeType contentType) void
setEnabled
(boolean enabled) void
setExposeRequestAttributes
(boolean exposeRequestAttributes) void
setExposeSessionAttributes
(boolean exposeSessionAttributes) void
setExposeSpringMacroHelpers
(boolean exposeSpringMacroHelpers) void
setPreferFileSystemAccess
(boolean preferFileSystemAccess) void
void
setRequestContextAttribute
(String requestContextAttribute) void
setSettings
(Map<String, String> settings) void
void
setTemplateLoaderPath
(String... templateLoaderPaths) void
setViewNames
(String[] viewNames)
-
Field Details
-
DEFAULT_TEMPLATE_LOADER_PATH
- See Also:
-
DEFAULT_PREFIX
- See Also:
-
DEFAULT_SUFFIX
- See Also:
-
-
Constructor Details
-
FreeMarkerProperties
public FreeMarkerProperties()
-
-
Method Details
-
setEnabled
public void setEnabled(boolean enabled) -
isEnabled
public boolean isEnabled() -
setCheckTemplateLocation
public void setCheckTemplateLocation(boolean checkTemplateLocation) -
isCheckTemplateLocation
public boolean isCheckTemplateLocation() -
getViewNames
-
setViewNames
-
isCache
public boolean isCache() -
setCache
public void setCache(boolean cache) -
getContentType
-
setContentType
-
getCharset
-
getCharsetName
-
setCharset
-
getSettings
-
setSettings
-
getTemplateLoaderPath
-
setTemplateLoaderPath
-
isPreferFileSystemAccess
public boolean isPreferFileSystemAccess() -
setPreferFileSystemAccess
public void setPreferFileSystemAccess(boolean preferFileSystemAccess) -
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.
-