public class LocaleUtils extends Object
Constructor and Description |
---|
LocaleUtils() |
Modifier and Type | Method and Description |
---|---|
static Locale |
getLocaleFromString(String localeString) |
static List<Locale> |
getLocalesFromHeader(List<String> acceptLanguage)
Parse a header string and return the list of locales that were found.
|
static List<Locale> |
getLocalesFromHeader(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 © 2019 JBoss by Red Hat. All rights reserved.