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 Detail

      • getSessionAttribute

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

        @NonNull
        java.util.Optional<java.lang.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.