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 SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescription@NonNull LocalegetFixed()voidsetDefaultLocale(@NonNull Locale defaultLocale) Sets the locale that will be used if the locale cannot be resolved through any means.voidSets the fixed locale.
- 
Field Details- 
PREFIX- See Also:
 
- 
DEFAULT_LOCALEThe default locale.- See Also:
 
 
- 
- 
Constructor Details- 
HandlerInputLocaleResolutionConfigurationPropertiespublic HandlerInputLocaleResolutionConfigurationProperties()
 
- 
- 
Method Details- 
getFixed- Specified by:
- getFixedin interface- io.micronaut.core.util.locale.LocaleResolutionConfiguration
- Returns:
- The fixed locale
 
- 
setFixedSets 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:
- getDefaultLocalein interface- io.micronaut.core.util.locale.LocaleResolutionConfiguration
- Returns:
- The locale to be used if one cannot be resolved.
 
- 
setDefaultLocaleSets the locale that will be used if the locale cannot be resolved through any means. Defaults to "en-US".- Parameters:
- defaultLocale- The default locale.
 
 
-