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.LocaleResolutionConfigurationConfiguration for Locale Resolution in a HTTP Request.- Since:
- 2.3.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Optional<java.lang.String>getCookieName()java.util.Optional<java.lang.String>getSessionAttribute()booleanisHeader()
-
-
-
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.
-
-