@Requires(classes=org.thymeleaf.TemplateEngine.class) @ConfigurationProperties(value="micronaut.views.thymeleaf") public class ThymeleafViewsRendererConfigurationProperties extends Object implements ThymeleafViewsRendererConfiguration
ConfigurationProperties implementation of ThymeleafViewsRendererConfiguration.| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_CHARACTER_ENCODING
The default character encoding value.
|
static boolean |
DEFAULT_ENABLED
The default enable value.
|
static boolean |
DEFAULT_FORCESUFFIX
The default force suffix.
|
static boolean |
DEFAULT_FORCETEMPLATEMODE
The default force template mode.
|
static String |
DEFAULT_SUFFIX
The default suffix.
|
static String |
PREFIX
The prefix to use for configuration.
|
| Constructor and Description |
|---|
ThymeleafViewsRendererConfigurationProperties() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getCacheable() |
Long |
getCacheTTLMs() |
String |
getCharacterEncoding() |
boolean |
getCheckExistence() |
boolean |
getForceSuffix() |
boolean |
getForceTemplateMode() |
String |
getSuffix() |
org.thymeleaf.templatemode.TemplateMode |
getTemplateMode() |
boolean |
isEnabled()
enabled getter.
|
void |
setCacheable(boolean cacheable)
Sets whether templates are cacheable.
|
void |
setCacheTTL(Duration duration)
Sets the cache TTL as a duration.
|
void |
setCacheTTLMs(long cacheTTLMs)
Sets the cache TTL in millis.
|
void |
setCharacterEncoding(String characterEncoding)
Sets the character encoding to use.
|
void |
setCheckExistence(boolean checkExistence)
Sets whether templates should be checked for existence.
|
void |
setEnabled(boolean enabled)
Sets whether thymeleaf rendering is enabled.
|
void |
setForceSuffix(boolean forceSuffix)
Sets whether to force the suffix.
|
void |
setForceTemplateMode(boolean forceTemplateMode)
Sets whether to force template mode.
|
void |
setSuffix(String suffix)
Sets the suffix to use.
|
void |
setTemplateMode(org.thymeleaf.templatemode.TemplateMode templateMode)
Sets the template mode.
|
public static final String PREFIX
public static final String DEFAULT_SUFFIX
public static final boolean DEFAULT_ENABLED
public static final String DEFAULT_CHARACTER_ENCODING
public static final boolean DEFAULT_FORCESUFFIX
public static final boolean DEFAULT_FORCETEMPLATEMODE
public ThymeleafViewsRendererConfigurationProperties()
public String getCharacterEncoding()
getCharacterEncoding in interface ThymeleafViewsRendererConfigurationAbstractConfigurableTemplateResolver.getCharacterEncoding()public org.thymeleaf.templatemode.TemplateMode getTemplateMode()
getTemplateMode in interface ThymeleafViewsRendererConfigurationAbstractConfigurableTemplateResolver.getTemplateMode()public String getSuffix()
getSuffix in interface ThymeleafViewsRendererConfigurationAbstractConfigurableTemplateResolver.getSuffix()public boolean getForceSuffix()
getForceSuffix in interface ThymeleafViewsRendererConfigurationAbstractConfigurableTemplateResolver.getForceSuffix()public boolean getForceTemplateMode()
getForceTemplateMode in interface ThymeleafViewsRendererConfigurationAbstractConfigurableTemplateResolver.getForceTemplateMode()public Long getCacheTTLMs()
getCacheTTLMs in interface ThymeleafViewsRendererConfigurationAbstractConfigurableTemplateResolver.getCacheTTLMs()public boolean getCheckExistence()
getCheckExistence in interface ThymeleafViewsRendererConfigurationAbstractTemplateResolver.getCheckExistence()public boolean getCacheable()
getCacheable in interface ThymeleafViewsRendererConfigurationAbstractConfigurableTemplateResolver.isCacheable()public boolean isEnabled()
isEnabled in interface ToggleableThymeleafViewsRenderer is enabled.public void setEnabled(boolean enabled)
enabled - True if is enabledpublic void setCharacterEncoding(String characterEncoding)
characterEncoding - The character encodingpublic void setTemplateMode(org.thymeleaf.templatemode.TemplateMode templateMode)
templateMode - The template modepublic void setSuffix(String suffix)
suffix - The suffixpublic void setForceSuffix(boolean forceSuffix)
forceSuffix - True if the suffix should be forcedpublic void setForceTemplateMode(boolean forceTemplateMode)
forceTemplateMode - True if template mode should be forcedpublic void setCacheable(boolean cacheable)
cacheable - True if they are cacheablepublic void setCacheTTLMs(long cacheTTLMs)
cacheTTLMs - The cache millispublic void setCacheTTL(Duration duration)
duration - The durationpublic void setCheckExistence(boolean checkExistence)
checkExistence - True if they should be