Enum Class ConditionalRequestResult.Precondition
java.lang.Object
java.lang.Enum<ConditionalRequestResult.Precondition>
com.soklet.ConditionalRequestResult.Precondition
- All Implemented Interfaces:
Serializable, Comparable<ConditionalRequestResult.Precondition>, Constable
- Enclosing interface:
ConditionalRequestResult
public static enum ConditionalRequestResult.Precondition
extends Enum<ConditionalRequestResult.Precondition>
Preconditions handled by this decision API. Range selection and
If-Range are separate.
This is a closed domain; exhaustive switches are supported, and any new alternative requires an explicit reviewed contract amendment.
- Author:
- Mark Allen
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionTheIf-Matchstrong entity-tag or existence precondition.TheIf-Modified-SinceGET/HEAD modification-date precondition.TheIf-None-Matchweak entity-tag or nonexistence precondition.TheIf-Unmodified-Sincemodification-date precondition. -
Method Summary
Modifier and TypeMethodDescriptionThe name of the request header that carries this precondition, such asIf-Match.Returns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
IF_MATCH
TheIf-Matchstrong entity-tag or existence precondition. -
IF_UNMODIFIED_SINCE
TheIf-Unmodified-Sincemodification-date precondition. -
IF_NONE_MATCH
TheIf-None-Matchweak entity-tag or nonexistence precondition. -
IF_MODIFIED_SINCE
TheIf-Modified-SinceGET/HEAD modification-date precondition.
-
-
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
-
getHeaderName
The name of the request header that carries this precondition, such asIf-Match.Useful when an application-owned response or log entry names the precondition that decided a request.
- Returns:
- the request header name
-