The org. object can potentially
include associated time zone and other locale related information.
LocaleContext
| Modifier and Type | Method and Description |
|---|---|
| public LocaleContext | Returns: the current locale context (nevernull)current server exchange exchange)Resolve the current locale context via the given exchange. |
| public void | setLocaleContext(ServerWebExchange
current server exchange exchange, LocaleContext the new locale context, or localeContext)null to clear the localeSet the current locale context to the given one, potentially including a locale with associated time zone information. |
| resolveLocaleContext | back to summary |
|---|---|
| public LocaleContext resolveLocaleContext(ServerWebExchange exchange) Resolve the current locale context via the given exchange. The returned context may be a
Custom resolver implementations may also return extra settings in the returned context, which again can be accessed through downcasting.
| |
| setLocaleContext | back to summary |
|---|---|
| public void setLocaleContext(ServerWebExchange exchange, LocaleContext localeContext) Set the current locale context to the given one, potentially including a locale with associated time zone information.
| |