Package io.micronaut.aws.alexa.locale
Class HandlerInputLocaleResolutionConfigurationProperties
java.lang.Object
io.micronaut.aws.alexa.locale.HandlerInputLocaleResolutionConfigurationProperties
- All Implemented Interfaces:
HandlerInputLocaleResolutionConfiguration
,io.micronaut.core.util.locale.LocaleResolutionConfiguration
@ConfigurationProperties("alexa.locale-resolution")
public class HandlerInputLocaleResolutionConfigurationProperties
extends Object
implements HandlerInputLocaleResolutionConfiguration
ConfigurationProperties
implementation of HandlerInputLocaleResolutionConfiguration
.- Since:
- 3.10.0
- Author:
- Sergio del Amo
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NonNull Locale
getFixed()
void
setDefaultLocale
(@NonNull Locale defaultLocale) Sets the locale that will be used if the locale cannot be resolved through any means.void
Sets the fixed locale.
-
Field Details
-
PREFIX
- See Also:
-
DEFAULT_LOCALE
The default locale.- See Also:
-
-
Constructor Details
-
HandlerInputLocaleResolutionConfigurationProperties
public HandlerInputLocaleResolutionConfigurationProperties()
-
-
Method Details
-
getFixed
- Specified by:
getFixed
in interfaceio.micronaut.core.util.locale.LocaleResolutionConfiguration
- Returns:
- The fixed locale
-
setFixed
Sets the fixed locale. Any of ar-SA, de-DE, en-AU, en-CA, en-GB, en-IN, en-US, es-ES, es-MX, es-US, fr-CA, fr-FR, hi-IN, it-IT, ja-JP, pt-BR- Parameters:
fixed
- The fixed locale
-
getDefaultLocale
- Specified by:
getDefaultLocale
in interfaceio.micronaut.core.util.locale.LocaleResolutionConfiguration
- Returns:
- The locale to be used if one cannot be resolved.
-
setDefaultLocale
Sets the locale that will be used if the locale cannot be resolved through any means. Defaults to "en-US".- Parameters:
defaultLocale
- The default locale.
-