Package org.restheart.exchange
Enum 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>
- Enclosing interface:
- ExchangeKeys
public static enum ExchangeKeys.ETAG_CHECK_POLICY extends Enum<ExchangeKeys.ETAG_CHECK_POLICY>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description OPTIONALchecks the etag only if provided by client via If-Match headerREQUIREDalways requires the etag, return PRECONDITION FAILED if missingREQUIRED_FOR_DELETEonly requires the etag for DELETE, return PRECONDITION FAILED if missing
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ExchangeKeys.ETAG_CHECK_POLICYvalueOf(String name)Returns the enum constant of this type with the specified name.static ExchangeKeys.ETAG_CHECK_POLICY[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
REQUIRED
public static final ExchangeKeys.ETAG_CHECK_POLICY REQUIRED
always requires the etag, return PRECONDITION FAILED if missing
-
REQUIRED_FOR_DELETE
public static final ExchangeKeys.ETAG_CHECK_POLICY REQUIRED_FOR_DELETE
only requires the etag for DELETE, return PRECONDITION FAILED if missing
-
OPTIONAL
public static final ExchangeKeys.ETAG_CHECK_POLICY OPTIONAL
checks the etag only if provided by client via If-Match header
-
-
Method Detail
-
values
public static ExchangeKeys.ETAG_CHECK_POLICY[] 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 (ExchangeKeys.ETAG_CHECK_POLICY c : ExchangeKeys.ETAG_CHECK_POLICY.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ExchangeKeys.ETAG_CHECK_POLICY valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-