|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface LocaleResolver
This interface is responsible for resolving the current locale.
| Method Summary | |
|---|---|
Locale |
getLocale(javax.servlet.http.HttpServletRequest request)
Given a request, resolve the Locale that should be used in internationalization and localization. |
Set<Locale> |
getSupportedLocales()
Returns a set of all the supported locales by the host application. |
| Method Detail |
|---|
Locale getLocale(javax.servlet.http.HttpServletRequest request)
Locale that should be used in internationalization and localization.
The locale should be determined by first checking the remote users preferences, then checking the preferred
locale as specified in the request and finally defaulting to the system locale if no preferred locale is set.
request - Request to check
Locale.getDefault() if none found.Set<Locale> getSupportedLocales()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||