Package org.restheart.exchange
Enum Class ExchangeKeys.ETAG_CHECK_POLICY
java.lang.Object
java.lang.Enum<ExchangeKeys.ETAG_CHECK_POLICY>
org.restheart.exchange.ExchangeKeys.ETAG_CHECK_POLICY
- All Implemented Interfaces:
Serializable,Comparable<ExchangeKeys.ETAG_CHECK_POLICY>,Constable
- Enclosing interface:
ExchangeKeys
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionchecks the etag only if provided by client via If-Match headeralways requires the etag, return PRECONDITION FAILED if missingonly requires the etag for DELETE, return PRECONDITION FAILED if missing -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static ExchangeKeys.ETAG_CHECK_POLICY[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
REQUIRED
always requires the etag, return PRECONDITION FAILED if missing -
REQUIRED_FOR_DELETE
only requires the etag for DELETE, return PRECONDITION FAILED if missing -
OPTIONAL
checks the etag only if provided by client via If-Match header
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-