Class HttpFixedLocaleResolver

java.lang.Object
io.micronaut.core.util.locale.FixedLocaleResolver<HttpRequest<?>>
io.micronaut.http.server.util.locale.HttpFixedLocaleResolver
All Implemented Interfaces:
Ordered, LocaleResolver<HttpRequest<?>>, HttpLocaleResolver

@Singleton @Requires(property="micronaut.server.locale-resolution.fixed") public class HttpFixedLocaleResolver extends FixedLocaleResolver<HttpRequest<?>> implements HttpLocaleResolver
Generic implementation of LocaleResolver for fixed locale resolution.
Since:
2.3.0
Author:
Sergio del Amo
  • Field Details

    • ORDER

      public static final Integer ORDER
  • Constructor Details

    • HttpFixedLocaleResolver

      public HttpFixedLocaleResolver(HttpLocaleResolutionConfiguration localeResolutionConfiguration)
      Parameters:
      localeResolutionConfiguration - The locale resolution configuration
  • Method Details

    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface Ordered
      Returns:
      The order of the object. Defaults to zero (no order).