|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.sal.core.message.SystemDefaultLocaleResolver
public class SystemDefaultLocaleResolver
Simple resolver that only supports the system default locale.
| Constructor Summary | |
|---|---|
SystemDefaultLocaleResolver()
|
|
| Method Summary | |
|---|---|
Locale |
getLocale()
Resolve the Locale that should be used in internationalization and localization. |
Locale |
getLocale(javax.servlet.http.HttpServletRequest request)
Given a request, resolve the Locale that should be used in internationalization and localization. |
Locale |
getLocale(UserKey userKey)
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SystemDefaultLocaleResolver()
| Method Detail |
|---|
public Locale getLocale(javax.servlet.http.HttpServletRequest request)
LocaleResolverLocale that should be used in internationalization and localization.
The locale should be determined by first checking the remote users preferences, then defaulting to the
application default locale if no preferred locale is set. May consult the given request for the preferred
browser locales (if supported by the product).
getLocale in interface LocaleResolverrequest - Request to check
Locale.getDefault() if none found.public Locale getLocale()
LocaleResolver
getLocale in interface LocaleResolverLocale.getDefault() if none found.public Locale getLocale(UserKey userKey)
LocaleResolver
getLocale in interface LocaleResolveruserKey - the user. Can be null.
Locale.getDefault() if none found.public Set<Locale> getSupportedLocales()
LocaleResolver
getSupportedLocales in interface LocaleResolver
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||