Uses of Interface
org.springframework.context.i18n.LocaleContext
Packages that use 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
Subinterfaces of LocaleContext in org.springframework.context.i18nModifier and TypeInterfaceDescriptioninterfaceExtension ofLocaleContext, adding awareness of the current time zone.Classes in org.springframework.context.i18n that implement LocaleContextModifier and TypeClassDescriptionclassSimple implementation of theLocaleContextinterface, always returning a specifiedLocale.classSimple implementation of theTimeZoneAwareLocaleContextinterface, always returning a specifiedLocaleandTimeZone.Classes in org.springframework.context.i18n that implement interfaces with type arguments of type LocaleContextModifier and TypeClassDescriptionclassAdaptLocaleContextHolderto theThreadLocalAccessorcontract to assist the Micrometer Context Propagation library withLocaleContextpropagation.Methods in org.springframework.context.i18n that return LocaleContextModifier and TypeMethodDescriptionstatic @Nullable LocaleContextLocaleContextHolder.getLocaleContext()Return the LocaleContext associated with the current thread, if any.LocaleContextThreadLocalAccessor.getValue()Methods in org.springframework.context.i18n with parameters of type LocaleContextModifier and TypeMethodDescriptionstatic LocaleLocaleContextHolder.getLocale(@Nullable LocaleContext localeContext) Return the Locale associated with the given user context, if any, or the system default Locale otherwise.static TimeZoneLocaleContextHolder.getTimeZone(@Nullable LocaleContext localeContext) Return the TimeZone associated with the given user context, if any, or the system default TimeZone otherwise.static voidLocaleContextHolder.setLocaleContext(@Nullable LocaleContext localeContext) Associate the given LocaleContext with the current thread, not exposing it as inheritable for child threads.static voidLocaleContextHolder.setLocaleContext(@Nullable LocaleContext localeContext, boolean inheritable) Associate the given LocaleContext with the current thread.voidLocaleContextThreadLocalAccessor.setValue(LocaleContext value) -
Uses of LocaleContext in org.springframework.web.server
Methods in org.springframework.web.server that return LocaleContextModifier and TypeMethodDescriptionServerWebExchange.getLocaleContext()Return theLocaleContextusing the configuredLocaleContextResolver.ServerWebExchangeDecorator.getLocaleContext() -
Uses of LocaleContext in org.springframework.web.server.adapter
Methods in org.springframework.web.server.adapter that return LocaleContext -
Uses of LocaleContext in org.springframework.web.server.i18n
Methods in org.springframework.web.server.i18n that return LocaleContextModifier and TypeMethodDescriptionAcceptHeaderLocaleContextResolver.resolveLocaleContext(ServerWebExchange exchange) FixedLocaleContextResolver.resolveLocaleContext(ServerWebExchange exchange) LocaleContextResolver.resolveLocaleContext(ServerWebExchange exchange) Resolve the current locale context via the given exchange.Methods in org.springframework.web.server.i18n with parameters of type LocaleContextModifier and TypeMethodDescriptionvoidAcceptHeaderLocaleContextResolver.setLocaleContext(ServerWebExchange exchange, @Nullable LocaleContext locale) voidFixedLocaleContextResolver.setLocaleContext(ServerWebExchange exchange, @Nullable LocaleContext localeContext) voidLocaleContextResolver.setLocaleContext(ServerWebExchange exchange, @Nullable 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
Methods in org.springframework.web.servlet that return LocaleContextModifier and TypeMethodDescriptionprotected LocaleContextDispatcherServlet.buildLocaleContext(jakarta.servlet.http.HttpServletRequest request) Build a LocaleContext for the given request, exposing the request's primary locale as current locale.protected @Nullable LocaleContextFrameworkServlet.buildLocaleContext(jakarta.servlet.http.HttpServletRequest request) Build a LocaleContext for the given request, exposing the request's primary locale as current locale.LocaleContextResolver.resolveLocaleContext(jakarta.servlet.http.HttpServletRequest request) Resolve the current locale context via the given request.Methods in org.springframework.web.servlet with parameters of type LocaleContextModifier and TypeMethodDescriptionvoidLocaleContextResolver.setLocaleContext(jakarta.servlet.http.HttpServletRequest request, @Nullable jakarta.servlet.http.HttpServletResponse response, @Nullable 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
Methods in org.springframework.web.servlet.i18n that return LocaleContextModifier and TypeMethodDescriptionCookieLocaleResolver.resolveLocaleContext(jakarta.servlet.http.HttpServletRequest request) FixedLocaleResolver.resolveLocaleContext(jakarta.servlet.http.HttpServletRequest request) SessionLocaleResolver.resolveLocaleContext(jakarta.servlet.http.HttpServletRequest request) Methods in org.springframework.web.servlet.i18n with parameters of type LocaleContextModifier and TypeMethodDescriptionvoidCookieLocaleResolver.setLocaleContext(jakarta.servlet.http.HttpServletRequest request, @Nullable jakarta.servlet.http.HttpServletResponse response, @Nullable LocaleContext localeContext) voidFixedLocaleResolver.setLocaleContext(jakarta.servlet.http.HttpServletRequest request, @Nullable jakarta.servlet.http.HttpServletResponse response, @Nullable LocaleContext localeContext) voidSessionLocaleResolver.setLocaleContext(jakarta.servlet.http.HttpServletRequest request, @Nullable jakarta.servlet.http.HttpServletResponse response, @Nullable LocaleContext localeContext)