public enum StateValidationModel extends Enum<StateValidationModel>
| Enum Constant and Description |
|---|
ENSURE_STATE_MATCHES
PUT operation will be executed only if the client retains the current state for the resource.
|
NO_VALIDATE
Disable the state validation for the PUT operation.
|
VALIDATE_IF_PRESENT
If the target resource was previously loaded and the client retain some state for this resource, Crux will
ensure that the PUT operation will be executed only if this state matches the current state of the resource
|
| Modifier and Type | Method and Description |
|---|---|
static StateValidationModel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StateValidationModel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StateValidationModel NO_VALIDATE
public static final StateValidationModel VALIDATE_IF_PRESENT
public static final StateValidationModel ENSURE_STATE_MATCHES
public static StateValidationModel[] values()
for (StateValidationModel c : StateValidationModel.values()) System.out.println(c);
public static StateValidationModel 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 nullCopyright © 2016. All rights reserved.