Enum CorsConstants.Key
- java.lang.Object
-
- java.lang.Enum<CorsConstants.Key>
-
- de.hybris.platform.core.cors.constants.CorsConstants.Key
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<CorsConstants.Key>
- Enclosing class:
- CorsConstants
public static enum CorsConstants.Key extends java.lang.Enum<CorsConstants.Key>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description allowCredentialsallowedHeadersallowedMethodsallowedOriginsexposedHeadersmaxAge
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected java.util.List<java.lang.String>asList(java.lang.String values)abstract voidupdateConfiguration(org.springframework.web.cors.CorsConfiguration configuration, java.lang.String value)static CorsConstants.KeyvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static CorsConstants.Key[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
allowCredentials
public static final CorsConstants.Key allowCredentials
-
allowedHeaders
public static final CorsConstants.Key allowedHeaders
-
allowedMethods
public static final CorsConstants.Key allowedMethods
-
allowedOrigins
public static final CorsConstants.Key allowedOrigins
-
exposedHeaders
public static final CorsConstants.Key exposedHeaders
-
maxAge
public static final CorsConstants.Key maxAge
-
-
Method Detail
-
values
public static CorsConstants.Key[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CorsConstants.Key c : CorsConstants.Key.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CorsConstants.Key valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
updateConfiguration
public abstract void updateConfiguration(org.springframework.web.cors.CorsConfiguration configuration, java.lang.String value)
-
asList
protected java.util.List<java.lang.String> asList(java.lang.String values)
-
-