Class CompositeHttpLocaleResolver

    • Field Summary

      • Fields inherited from class io.micronaut.core.util.locale.AbstractLocaleResolver

        defaultLocale
      • Fields inherited from interface io.micronaut.core.order.Ordered

        HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Optional<java.util.Locale> resolve​(io.micronaut.http.HttpRequest<?> request)  
      • 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 Detail

      • CompositeHttpLocaleResolver

        public CompositeHttpLocaleResolver​(HttpLocaleResolver[] localeResolvers,
                                           HttpLocaleResolutionConfiguration httpLocaleResolutionConfiguration)
        Parameters:
        localeResolvers - HTTP Locale Resolvers
        httpLocaleResolutionConfiguration - Locale Resolution configuration for HTTP Requests
    • Method Detail

      • resolve

        @NonNull
        public java.util.Optional<java.util.Locale> resolve​(@NonNull
                                                            io.micronaut.http.HttpRequest<?> request)