public enum CorsConfig extends Enum<CorsConfig> implements ConfigKey
| Enum Constant and Description |
|---|
CORS_ALLOW_CREDENTIALS |
CORS_ALLOWED_HEADERS |
CORS_ALLOWED_METHODS |
CORS_ALLOWED_ORIGINS |
CORS_ENABLE |
CORS_EXPOSED_HEADERS |
CORS_MAPPING |
CORS_MAX_AGE_SECOND |
| Modifier and Type | Method and Description |
|---|---|
Object |
getDefaultValue() |
String |
getKey() |
boolean |
isRequired() |
static CorsConfig |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CorsConfig[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CorsConfig CORS_MAPPING
public static final CorsConfig CORS_ALLOWED_ORIGINS
public static final CorsConfig CORS_ALLOWED_METHODS
public static final CorsConfig CORS_ALLOWED_HEADERS
public static final CorsConfig CORS_EXPOSED_HEADERS
public static final CorsConfig CORS_ALLOW_CREDENTIALS
public static final CorsConfig CORS_MAX_AGE_SECOND
public static final CorsConfig CORS_ENABLE
public static CorsConfig[] values()
for (CorsConfig c : CorsConfig.values()) System.out.println(c);
public static CorsConfig 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 nullpublic Object getDefaultValue()
getDefaultValue in interface ConfigKeypublic boolean isRequired()
isRequired in interface ConfigKeyCopyright © 2020. All rights reserved.