public static enum WebProperties.LocaleResolver extends Enum<WebProperties.LocaleResolver>
Enum Constant and Description |
---|
ACCEPT_HEADER
Use the "Accept-Language" header or the configured locale if the header is not
set.
|
FIXED
Always use the configured locale.
|
Modifier and Type | Method and Description |
---|---|
static WebProperties.LocaleResolver |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WebProperties.LocaleResolver[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WebProperties.LocaleResolver FIXED
public static final WebProperties.LocaleResolver ACCEPT_HEADER
public static WebProperties.LocaleResolver[] values()
for (WebProperties.LocaleResolver c : WebProperties.LocaleResolver.values()) System.out.println(c);
public static WebProperties.LocaleResolver valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null