public static enum WebMvcProperties.LocaleResolver extends Enum<WebMvcProperties.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 WebMvcProperties.LocaleResolver |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WebMvcProperties.LocaleResolver[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WebMvcProperties.LocaleResolver FIXED
public static final WebMvcProperties.LocaleResolver ACCEPT_HEADER
public static WebMvcProperties.LocaleResolver[] values()
for (WebMvcProperties.LocaleResolver c : WebMvcProperties.LocaleResolver.values()) System.out.println(c);
public static WebMvcProperties.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 nullCopyright © 2021 Pivotal Software, Inc.. All rights reserved.