org.cruxframework.crux.core.shared.rest.annotation
Annotation Type PUT


@Target(value=METHOD)
@Retention(value=RUNTIME)
@HttpMethod(value="PUT")
public @interface PUT

Indicates that the annotated method responds to HTTP PUT requests. PUT operations are used to write data (insert or updates). PUT operations are idempotent, which means it can be performed repeatedly without side-effects.

See Also:
HttpMethod

Optional Element Summary
 StateValidationModel validatePreviousState
          If this state validation is enabled, Crux will add an If-Match HTTP header to ensure that the PUT operation will only be executed if the client retains the current state of the resource being updated.
 

validatePreviousState

public abstract StateValidationModel validatePreviousState
If this state validation is enabled, Crux will add an If-Match HTTP header to ensure that the PUT operation will only be executed if the client retains the current state of the resource being updated.

Returns:
Default:
org.cruxframework.crux.core.shared.rest.annotation.StateValidationModel.NO_VALIDATE


Copyright © 2015. All rights reserved.