Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -134,13 +134,26 @@ public TimeZone getTimeZone() {

/**
* Change the current locale to the specified one.
* <p>This change is scoped to this {@code RequestContext} instance for the
* current rendering operation and does not update the
* {@link org.springframework.web.server.i18n.LocaleContextResolver}.
* @param locale the new locale
* @see #changeLocale(java.util.Locale, java.util.TimeZone)
* @see org.springframework.web.server.i18n.LocaleContextResolver#setLocaleContext
*/
public void changeLocale(Locale locale) {
this.locale = locale;
}

/**
* Change the current locale to the specified locale and time zone context.
* <p>This change is scoped to this {@code RequestContext} instance for the
* current rendering operation and does not update the
* {@link org.springframework.web.server.i18n.LocaleContextResolver}.
* @param locale the new locale
* @param timeZone the new time zone
* @see org.springframework.context.i18n.SimpleTimeZoneAwareLocaleContext
* @see org.springframework.web.server.i18n.LocaleContextResolver#setLocaleContext
*/
public void changeLocale(Locale locale, TimeZone timeZone) {
this.locale = locale;
Expand Down