Class HttpAbstractLocaleResolver
java.lang.Object
io.micronaut.core.util.locale.AbstractLocaleResolver<HttpRequest<?>>
io.micronaut.http.server.util.locale.HttpAbstractLocaleResolver
- All Implemented Interfaces:
Ordered
,LocaleResolver<HttpRequest<?>>
,HttpLocaleResolver
- Direct Known Subclasses:
CompositeHttpLocaleResolver
,CookieLocaleResolver
,RequestLocaleResolver
public abstract class HttpAbstractLocaleResolver
extends AbstractLocaleResolver<HttpRequest<?>>
implements HttpLocaleResolver
Provides an abstract class which implements
LocaleResolver
and handles default locale resolution.- Since:
- 2.3.0
- Author:
- Sergio del Amo
-
Field Summary
Modifier and TypeFieldDescriptionprotected HttpLocaleResolutionConfiguration
static final Integer
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
ConstructorDescriptionHttpAbstractLocaleResolver
(HttpLocaleResolutionConfiguration httpLocaleResolutionConfiguration) -
Method Summary
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
resolve, resolveOrDefault
-
Field Details
-
ORDER
-
httpLocaleResolutionConfiguration
-
-
Constructor Details
-
HttpAbstractLocaleResolver
public HttpAbstractLocaleResolver(HttpLocaleResolutionConfiguration httpLocaleResolutionConfiguration) - Parameters:
httpLocaleResolutionConfiguration
- Locale Resolution configuration for HTTP Requests
-
-
Method Details