com.atlassian.jira.i18n
Class JiraLocaleResolver

java.lang.Object
  extended by com.atlassian.jira.i18n.JiraLocaleResolver
All Implemented Interfaces:
com.atlassian.sal.api.message.LocaleResolver

public class JiraLocaleResolver
extends Object
implements com.atlassian.sal.api.message.LocaleResolver

Resolves the locale for a particular request. Depends on the user that's currently logged in, otherwise the system default locale will be used.

Since:
v2.1

Constructor Summary
JiraLocaleResolver(LocaleManager localeManager, JiraAuthenticationContext jiraAuthenticationContext)
           
 
Method Summary
 Locale getLocale()
           
 Locale getLocale(javax.servlet.http.HttpServletRequest request)
           
 Set<Locale> getSupportedLocales()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JiraLocaleResolver

public JiraLocaleResolver(LocaleManager localeManager,
                          JiraAuthenticationContext jiraAuthenticationContext)
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

getSupportedLocales

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


Copyright © 2002-2012 Atlassian. All Rights Reserved.