LocaleService

public interface LocaleService

A service responsible for localization. Allows retrieval/settings of user language as well as retrieving localized messages for a user request. Can also be used to retrieve a list of usable languages.

Methods

getMessages

Map<String, String> getMessages(HttpServletRequest request)

getSupportedLanguages

NavigableMap<String, String> getSupportedLanguages()

getUserLocale

Locale getUserLocale(HttpServletRequest request)

setSessionLocale

void setSessionLocale(HttpServletRequest request, HttpServletResponse response, Locale locale)

setUserLocale

void setUserLocale(HttpServletRequest request, HttpServletResponse response, Locale locale)