Java org.springframework.context.i18n LocaleContextHolder fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.context.i18n LocaleContextHolder fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.context.i18n LocaleContextHolder.

The text is from its open source code.

Method

LocalegetLocale()
Return the Locale associated with the current thread, if any, or the system default Locale otherwise.
LocaleContextgetLocaleContext()
Return the LocaleContext associated with the current thread, if any.
voidresetLocaleContext()
Reset the LocaleContext for the current thread.
voidsetLocale(@Nullable Locale locale)
Associate the given Locale with the current thread, preserving any TimeZone that may have been set already.
voidsetLocale(@Nullable Locale locale, boolean inheritable)
Associate the given Locale with the current thread, preserving any TimeZone that may have been set already.
voidsetLocaleContext(@Nullable LocaleContext localeContext)
Associate the given LocaleContext with the current thread, not exposing it as inheritable for child threads.