@ConfigurationProperties(value="micronaut.views.thymeleaf") public class ThymeleafViewsRendererConfigurationProperties extends java.lang.Object implements ThymeleafViewsRendererConfiguration
ConfigurationProperties
implementation of ThymeleafViewsRendererConfiguration
.Modifier and Type | Field and Description |
---|---|
static java.lang.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 java.lang.String |
DEFAULT_SUFFIX
The default suffix.
|
static java.lang.String |
PREFIX
The prefix to use for configuration.
|
Constructor and Description |
---|
ThymeleafViewsRendererConfigurationProperties() |
Modifier and Type | Method and Description |
---|---|
boolean |
getCacheable() |
java.lang.Long |
getCacheTTLMs() |
java.lang.String |
getCharacterEncoding() |
boolean |
getCheckExistence() |
boolean |
getForceSuffix() |
boolean |
getForceTemplateMode() |
java.lang.String |
getSuffix() |
org.thymeleaf.templatemode.TemplateMode |
getTemplateMode() |
boolean |
isEnabled()
enabled getter.
|
void |
setCacheable(boolean cacheable)
Sets whether templates are cacheable.
|
void |
setCacheTTL(java.time.Duration duration)
Sets the cache TTL as a duration.
|
void |
setCacheTTLMs(long cacheTTLMs)
Sets the cache TTL in millis.
|
void |
setCharacterEncoding(java.lang.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(java.lang.String suffix)
Sets the suffix to use.
|
void |
setTemplateMode(org.thymeleaf.templatemode.TemplateMode templateMode)
Sets the template mode.
|
public static final java.lang.String PREFIX
public static final java.lang.String DEFAULT_SUFFIX
public static final boolean DEFAULT_ENABLED
public static final java.lang.String DEFAULT_CHARACTER_ENCODING
public static final boolean DEFAULT_FORCESUFFIX
public static final boolean DEFAULT_FORCETEMPLATEMODE
public ThymeleafViewsRendererConfigurationProperties()
public java.lang.String getCharacterEncoding()
getCharacterEncoding
in interface ThymeleafViewsRendererConfiguration
AbstractConfigurableTemplateResolver.getCharacterEncoding()
public org.thymeleaf.templatemode.TemplateMode getTemplateMode()
getTemplateMode
in interface ThymeleafViewsRendererConfiguration
AbstractConfigurableTemplateResolver.getTemplateMode()
public java.lang.String getSuffix()
getSuffix
in interface ThymeleafViewsRendererConfiguration
AbstractConfigurableTemplateResolver.getSuffix()
public boolean getForceSuffix()
getForceSuffix
in interface ThymeleafViewsRendererConfiguration
AbstractConfigurableTemplateResolver.getForceSuffix()
public boolean getForceTemplateMode()
getForceTemplateMode
in interface ThymeleafViewsRendererConfiguration
AbstractConfigurableTemplateResolver.getForceTemplateMode()
public java.lang.Long getCacheTTLMs()
getCacheTTLMs
in interface ThymeleafViewsRendererConfiguration
AbstractConfigurableTemplateResolver.getCacheTTLMs()
public boolean getCheckExistence()
getCheckExistence
in interface ThymeleafViewsRendererConfiguration
AbstractTemplateResolver.getCheckExistence()
public boolean getCacheable()
getCacheable
in interface ThymeleafViewsRendererConfiguration
AbstractConfigurableTemplateResolver.isCacheable()
public boolean isEnabled()
isEnabled
in interface io.micronaut.core.util.Toggleable
ThymeleafViewsRenderer
is enabled.public void setEnabled(boolean enabled)
enabled
- True if is enabledpublic void setCharacterEncoding(java.lang.String characterEncoding)
characterEncoding
- The character encodingpublic void setTemplateMode(org.thymeleaf.templatemode.TemplateMode templateMode)
templateMode
- The template modepublic void setSuffix(java.lang.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(java.time.Duration duration)
duration
- The durationpublic void setCheckExistence(boolean checkExistence)
checkExistence
- True if they should be