- All Known Implementing Classes:
public interface PersistentLocaleManages the persistent locale stored in the browser (inside the URL).
All Methods Instance Methods Abstract Methods Modifier and Type Method Description
get()Gets the locale obtained from the request, or null if the response did not indicate a specific locale (in which case the active locale may have been determined from request headers).
set(Locale locale)Sets the locale value that will be encoded into the response.
setSets the locale value that will be encoded into the response. This must match a locale configured via
IllegalArgumentException- if the locale is not valid
- true if a locale was present in the request URL; false otherwise.