Package io.micronaut.aws.alexa.locale
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
-
Field Summary
Fields inherited from class io.micronaut.aws.alexa.locale.HandlerInputAbstractLocaleResolver
localeResolutionConfiguration, ORDER
Fields inherited from class io.micronaut.core.util.locale.AbstractLocaleResolver
defaultLocale
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
ConstructorDescriptionCompositeHandlerInputLocaleResolver
(HandlerInputLocaleResolver[] localeResolvers, HandlerInputLocaleResolutionConfiguration handlerInputLocaleResolutionConfiguration) -
Method Summary
Methods inherited from class io.micronaut.aws.alexa.locale.HandlerInputAbstractLocaleResolver
getOrder
Methods inherited from class io.micronaut.core.util.locale.AbstractLocaleResolver
resolveOrDefault
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.core.util.LocaleResolver
resolveOrDefault
-
Constructor Details
-
CompositeHandlerInputLocaleResolver
public CompositeHandlerInputLocaleResolver(HandlerInputLocaleResolver[] localeResolvers, HandlerInputLocaleResolutionConfiguration handlerInputLocaleResolutionConfiguration) - Parameters:
localeResolvers
- Locale ResolvershandlerInputLocaleResolutionConfiguration
- Locale Resolution configuration for HTTP Requests
-
-
Method Details
-
resolve
-