Class CompositeHttpLocaleResolver
java.lang.Object
io.micronaut.core.util.locale.AbstractLocaleResolver<HttpRequest<?>>
io.micronaut.http.server.util.locale.HttpAbstractLocaleResolver
io.micronaut.http.server.util.locale.CompositeHttpLocaleResolver
- All Implemented Interfaces:
Ordered
,LocaleResolver<HttpRequest<?>>
,HttpLocaleResolver
- Since:
- 2.3.0
- Author:
- Sergio del Amo, James Kleeh
-
Field Summary
Fields inherited from class io.micronaut.http.server.util.locale.HttpAbstractLocaleResolver
httpLocaleResolutionConfiguration, 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
ConstructorDescriptionCompositeHttpLocaleResolver
(HttpLocaleResolver[] localeResolvers, HttpLocaleResolutionConfiguration httpLocaleResolutionConfiguration) -
Method Summary
Methods inherited from class io.micronaut.http.server.util.locale.HttpAbstractLocaleResolver
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
-
CompositeHttpLocaleResolver
public CompositeHttpLocaleResolver(HttpLocaleResolver[] localeResolvers, HttpLocaleResolutionConfiguration httpLocaleResolutionConfiguration) - Parameters:
localeResolvers
- HTTP Locale ResolvershttpLocaleResolutionConfiguration
- Locale Resolution configuration for HTTP Requests
-
-
Method Details
-
resolve
Description copied from interface:LocaleResolver
Resolves the locale for the given context.- Parameters:
request
- The context to retrieve the locale from- Returns:
- The locale
-