Uses of Interface
org.springframework.context.i18n.LocaleContext
Package
Description
Abstraction for determining the current Locale,
plus global holder that exposes a thread-bound Locale.
Core interfaces and classes for Spring's generic, reactive web support.
Implementations to adapt to the underlying
org.springframework.http.client.reactive
reactive HTTP adapter
and HttpHandler
.Locale related support classes.
Provides servlets that integrate with the application context
infrastructure, and the core interfaces and classes for the
Spring web MVC framework.
Locale support classes for Spring's web MVC framework.
-
Uses of LocaleContext in org.springframework.context.i18n
Modifier and TypeInterfaceDescriptioninterface
Extension ofLocaleContext
, adding awareness of the current time zone.Modifier and TypeClassDescriptionclass
Simple implementation of theLocaleContext
interface, always returning a specifiedLocale
.class
Simple implementation of theTimeZoneAwareLocaleContext
interface, always returning a specifiedLocale
andTimeZone
.Modifier and TypeMethodDescriptionstatic LocaleContext
LocaleContextHolder.getLocaleContext()
Return the LocaleContext associated with the current thread, if any.Modifier and TypeMethodDescriptionstatic Locale
LocaleContextHolder.getLocale
(LocaleContext localeContext) Return the Locale associated with the given user context, if any, or the system default Locale otherwise.static TimeZone
LocaleContextHolder.getTimeZone
(LocaleContext localeContext) Return the TimeZone associated with the given user context, if any, or the system default TimeZone otherwise.static void
LocaleContextHolder.setLocaleContext
(LocaleContext localeContext) Associate the given LocaleContext with the current thread, not exposing it as inheritable for child threads.static void
LocaleContextHolder.setLocaleContext
(LocaleContext localeContext, boolean inheritable) Associate the given LocaleContext with the current thread. -
Uses of LocaleContext in org.springframework.web.server
Modifier and TypeMethodDescriptionServerWebExchange.getLocaleContext()
Return theLocaleContext
using the configuredLocaleContextResolver
.ServerWebExchangeDecorator.getLocaleContext()
-
Uses of LocaleContext in org.springframework.web.server.adapter
-
Uses of LocaleContext in org.springframework.web.server.i18n
Modifier and TypeMethodDescriptionAcceptHeaderLocaleContextResolver.resolveLocaleContext
(ServerWebExchange exchange) FixedLocaleContextResolver.resolveLocaleContext
(ServerWebExchange exchange) LocaleContextResolver.resolveLocaleContext
(ServerWebExchange exchange) Resolve the current locale context via the given exchange.Modifier and TypeMethodDescriptionvoid
AcceptHeaderLocaleContextResolver.setLocaleContext
(ServerWebExchange exchange, LocaleContext locale) void
FixedLocaleContextResolver.setLocaleContext
(ServerWebExchange exchange, LocaleContext localeContext) void
LocaleContextResolver.setLocaleContext
(ServerWebExchange exchange, LocaleContext localeContext) Set the current locale context to the given one, potentially including a locale with associated time zone information. -
Uses of LocaleContext in org.springframework.web.servlet
Modifier and TypeMethodDescriptionprotected LocaleContext
DispatcherServlet.buildLocaleContext
(HttpServletRequest request) Build a LocaleContext for the given request, exposing the request's primary locale as current locale.protected LocaleContext
FrameworkServlet.buildLocaleContext
(HttpServletRequest request) Build a LocaleContext for the given request, exposing the request's primary locale as current locale.LocaleContextResolver.resolveLocaleContext
(HttpServletRequest request) Resolve the current locale context via the given request.Modifier and TypeMethodDescriptionvoid
LocaleContextResolver.setLocaleContext
(HttpServletRequest request, HttpServletResponse response, LocaleContext localeContext) Set the current locale context to the given one, potentially including a locale with associated time zone information. -
Uses of LocaleContext in org.springframework.web.servlet.i18n
Modifier and TypeMethodDescriptionCookieLocaleResolver.resolveLocaleContext
(HttpServletRequest request) FixedLocaleResolver.resolveLocaleContext
(HttpServletRequest request) SessionLocaleResolver.resolveLocaleContext
(HttpServletRequest request) Modifier and TypeMethodDescriptionvoid
CookieLocaleResolver.setLocaleContext
(HttpServletRequest request, HttpServletResponse response, LocaleContext localeContext) void
FixedLocaleResolver.setLocaleContext
(HttpServletRequest request, HttpServletResponse response, LocaleContext localeContext) void
SessionLocaleResolver.setLocaleContext
(HttpServletRequest request, HttpServletResponse response, LocaleContext localeContext)