Class ConfluenceLocaleResolver
- java.lang.Object
-
- com.atlassian.sal.confluence.message.ConfluenceLocaleResolver
-
- All Implemented Interfaces:
com.atlassian.sal.api.message.LocaleResolver
public class ConfluenceLocaleResolver extends Object implements com.atlassian.sal.api.message.LocaleResolver
-
-
Constructor Summary
Constructors Constructor Description ConfluenceLocaleResolver(LanguageManager languageManager, LocaleManager localeManager)
ConfluenceLocaleResolver(LocaleManager localeManager, UserAccessor userAccessor, LanguageManager languageManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Locale
getApplicationLocale()
Locale
getLocale()
Locale
getLocale(com.atlassian.sal.api.user.UserKey userKey)
Locale
getLocale(javax.servlet.http.HttpServletRequest request)
Set<Locale>
getSupportedLocales()
-
-
-
Constructor Detail
-
ConfluenceLocaleResolver
public ConfluenceLocaleResolver(LocaleManager localeManager, UserAccessor userAccessor, LanguageManager languageManager)
-
ConfluenceLocaleResolver
public ConfluenceLocaleResolver(LanguageManager languageManager, LocaleManager localeManager)
-
-
Method Detail
-
getLocale
public Locale getLocale(javax.servlet.http.HttpServletRequest request)
- Specified by:
getLocale
in interfacecom.atlassian.sal.api.message.LocaleResolver
-
getLocale
public Locale getLocale()
- Specified by:
getLocale
in interfacecom.atlassian.sal.api.message.LocaleResolver
-
getLocale
public Locale getLocale(com.atlassian.sal.api.user.UserKey userKey)
- Specified by:
getLocale
in interfacecom.atlassian.sal.api.message.LocaleResolver
- Since:
- 5.2
-
getApplicationLocale
public Locale getApplicationLocale()
- Specified by:
getApplicationLocale
in interfacecom.atlassian.sal.api.message.LocaleResolver
-
-