Class DefaultHandlerInputLocaleResolver

java.lang.Object
io.micronaut.core.util.locale.AbstractLocaleResolver<com.amazon.ask.dispatcher.request.handler.HandlerInput>
io.micronaut.aws.alexa.locale.HandlerInputAbstractLocaleResolver
io.micronaut.aws.alexa.locale.DefaultHandlerInputLocaleResolver
All Implemented Interfaces:
HandlerInputLocaleResolver, io.micronaut.core.order.Ordered, io.micronaut.core.util.LocaleResolver<com.amazon.ask.dispatcher.request.handler.HandlerInput>

@Singleton public class DefaultHandlerInputLocaleResolver extends HandlerInputAbstractLocaleResolver
Resolves Locale from the HandlerInput request.
Since:
3.10.0
Author:
Sergio del Amo
See Also:
  • Constructor Details

    • DefaultHandlerInputLocaleResolver

      protected DefaultHandlerInputLocaleResolver(HandlerInputLocaleResolutionConfiguration localeResolutionConfiguration)
      Parameters:
      localeResolutionConfiguration - The locale resolution configuration
  • Method Details

    • resolve

      @NonNull public @NonNull Optional<Locale> resolve(@NonNull @NonNull com.amazon.ask.dispatcher.request.handler.HandlerInput input)