public class LocaleUtils extends Object
Constructor | Description |
---|---|
LocaleUtils() |
Modifier and Type | Method | Description |
---|---|---|
static Locale |
getLocaleFromString(String localeString) |
|
static List<Locale> |
getLocalesFromHeader(String acceptLanguage) |
Parse a header string and return the list of locales that were found.
|
static List<Locale> |
getLocalesFromHeader(List<String> acceptLanguage) |
Parse a header string and return the list of locales that were found.
|
public static List<Locale> getLocalesFromHeader(String acceptLanguage)
acceptLanguage
- The Accept-Language headerpublic static List<Locale> getLocalesFromHeader(List<String> acceptLanguage)
acceptLanguage
- The Accept-Language headerCopyright © 2018. All rights reserved.