com.atlassian.sal.confluence.message
Class ConfluenceLocaleResolver

java.lang.Object
  extended by 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
ConfluenceLocaleResolver(LanguageManager languageManager, LocaleManager localeManager)
           
ConfluenceLocaleResolver(LocaleManager localeManager, UserAccessor userAccessor, LanguageManager languageManager)
           
 
Method Summary
 Locale getLocale()
           
 Locale getLocale(javax.servlet.http.HttpServletRequest request)
           
 Locale getLocale(com.atlassian.sal.api.user.UserKey userKey)
          
 Set<Locale> getSupportedLocales()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 interface com.atlassian.sal.api.message.LocaleResolver

getLocale

public Locale getLocale()
Specified by:
getLocale in interface com.atlassian.sal.api.message.LocaleResolver

getLocale

public Locale getLocale(com.atlassian.sal.api.user.UserKey userKey)

Specified by:
getLocale in interface com.atlassian.sal.api.message.LocaleResolver
Since:
5.2

getSupportedLocales

public Set<Locale> getSupportedLocales()
Specified by:
getSupportedLocales in interface com.atlassian.sal.api.message.LocaleResolver


Copyright © 2003–2015 Atlassian. All rights reserved.