@ConfigurationProperties(value="alexa.locale-resolution") public class HandlerInputLocaleResolutionConfigurationProperties extends java.lang.Object implements HandlerInputLocaleResolutionConfiguration
ConfigurationProperties
implementation of HandlerInputLocaleResolutionConfiguration
.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_LOCALE
The default locale.
|
static java.lang.String |
PREFIX |
Constructor and Description |
---|
HandlerInputLocaleResolutionConfigurationProperties() |
Modifier and Type | Method and Description |
---|---|
java.util.Locale |
getDefaultLocale() |
java.util.Optional<java.util.Locale> |
getFixed() |
void |
setDefaultLocale(java.util.Locale defaultLocale)
Sets the locale that will be used if the locale cannot be
resolved through any means.
|
void |
setFixed(java.util.Locale fixed)
Sets the fixed locale.
|
public static final java.lang.String PREFIX
public static final java.lang.String DEFAULT_LOCALE
public HandlerInputLocaleResolutionConfigurationProperties()
@NonNull public java.util.Optional<java.util.Locale> getFixed()
getFixed
in interface io.micronaut.core.util.locale.LocaleResolutionConfiguration
public void setFixed(@Nullable java.util.Locale fixed)
fixed
- The fixed locale@NonNull public java.util.Locale getDefaultLocale()
getDefaultLocale
in interface io.micronaut.core.util.locale.LocaleResolutionConfiguration
public void setDefaultLocale(@NonNull java.util.Locale defaultLocale)
defaultLocale
- The default locale.