Interface HttpLocaleResolutionConfiguration

All Superinterfaces:
io.micronaut.core.util.locale.LocaleResolutionConfiguration
All Known Implementing Classes:
HttpServerConfiguration.HttpLocaleResolutionConfigurationProperties

public interface HttpLocaleResolutionConfiguration extends io.micronaut.core.util.locale.LocaleResolutionConfiguration
Configuration for Locale Resolution in a HTTP Request.
Since:
2.3.0
  • Method Details

    • getSessionAttribute

      @NonNull @NonNull Optional<String> getSessionAttribute()
      Returns:
      The key in the session that stores the locale
    • getCookieName

      @NonNull @NonNull Optional<String> getCookieName()
      Returns:
      The name of the cookie that contains the locale.
    • isHeader

      boolean isHeader()
      Returns:
      True if the accept header should be searched for the locale.