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


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

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

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.