In addition to the RequestLocale properties that require configuration, the RequestLocale component contains the following optional properties.

locale

The java.util.Locale objects used in locale-sensitive operations. These Locale objects are cached for reuse.

localeString

A String representation of the locale. Calling toString() on a java.util.Locale results in a new String allocation for each call. The localeString property uses the same String representation repeatedly for a given Locale.

previousLocale

Sometimes a locale is changed during a session. The previousLocale is the Locale object used in the previous request.

previousLocaleString

A String representation of the previousLocale. The previousLocaleString property uses the same String representation repeatedly for a given Locale.

acceptLanguage

The ACCEPT-LANGUAGE HTTP header field from the request that defined the RequestLocale component for the session.

acceptLanguageList

The acceptLanguage property parsed into an array of Strings.

acceptCharset

The ACCEPT-CHARSET HTTP header field from the request that defined the RequestLocale component for the session.

acceptCharsetList

The acceptCharset property parsed into an array of Strings.