Package com.microstrategy.utils
Class LocaleHelper
- java.lang.Object
-
- com.microstrategy.utils.LocaleHelper
-
public class LocaleHelper extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description LocaleHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static void
configureLocalesFromRequest(WebIServerSession activeSession, java.lang.String acceptLanguage)
static java.util.Locale
createLocale(java.lang.String language, java.lang.String country)
static java.lang.String[]
getAllDossierSupportedLocaleName()
static java.lang.String
getCurrentDisplayLocale()
static java.util.Locale
getLocale(java.lang.String acceptLanguage)
static java.lang.String
getLocaleInRange(java.lang.String acceptLanguage, java.lang.String[] localeNames)
static java.lang.String
getSupportedLocale(java.lang.String acceptLanguage)
static java.lang.String
getSupportedLocaleFileName(java.lang.String acceptLanguage)
Deprecated, for removal: This API element is subject to removal in a future version.We don't use this method any more and the only purpose we leave this method here is for backward compatibility.
-
-
-
Method Detail
-
createLocale
public static java.util.Locale createLocale(java.lang.String language, java.lang.String country)
-
configureLocalesFromRequest
public static void configureLocalesFromRequest(WebIServerSession activeSession, java.lang.String acceptLanguage)
-
getCurrentDisplayLocale
public static java.lang.String getCurrentDisplayLocale()
-
getLocale
public static java.util.Locale getLocale(java.lang.String acceptLanguage)
-
getLocaleInRange
public static java.lang.String getLocaleInRange(java.lang.String acceptLanguage, java.lang.String[] localeNames)
-
getSupportedLocale
public static java.lang.String getSupportedLocale(java.lang.String acceptLanguage)
-
getSupportedLocaleFileName
@Deprecated(since="11.3.8", forRemoval=true) public static java.lang.String getSupportedLocaleFileName(java.lang.String acceptLanguage)
Deprecated, for removal: This API element is subject to removal in a future version.We don't use this method any more and the only purpose we leave this method here is for backward compatibility.
-
getAllDossierSupportedLocaleName
public static java.lang.String[] getAllDossierSupportedLocaleName()
-
-