Class CompositeHandlerInputLocaleResolver

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.CompositeHandlerInputLocaleResolver
All Implemented Interfaces:
HandlerInputLocaleResolver, io.micronaut.core.order.Ordered, io.micronaut.core.util.LocaleResolver<com.amazon.ask.dispatcher.request.handler.HandlerInput>

@Primary @Singleton public class CompositeHandlerInputLocaleResolver extends HandlerInputAbstractLocaleResolver
Primary HandlerInputLocaleResolver which evaluates every HandlerInputLocaleResolver by order to resolve a Locale.
Since:
3.10.0
Author:
Sergio del Amo
  • Constructor Details

    • CompositeHandlerInputLocaleResolver

      public CompositeHandlerInputLocaleResolver(HandlerInputLocaleResolver[] localeResolvers, HandlerInputLocaleResolutionConfiguration handlerInputLocaleResolutionConfiguration)
      Parameters:
      localeResolvers - Locale Resolvers
      handlerInputLocaleResolutionConfiguration - Locale Resolution configuration for HTTP Requests
  • Method Details

    • resolve

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