Annotation Interface Idempotent


@Target({TYPE,METHOD}) @Retention(RUNTIME) @Inherited @Documented public @interface Idempotent
Idempotent Annotation
Since:
1.0.0
Author:
Mercy
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The source of the token value
    The target of the token value
    The name of the token
    org.springframework.web.bind.annotation.RequestMethod[]
    The request methods for idempotent validation.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Field Details

  • Element Details

    • tokenName

      String tokenName
      The name of the token
      Returns:
      "_token_" as default
      Default:
      "_token_"
    • validatedMethod

      org.springframework.web.bind.annotation.RequestMethod[] validatedMethod
      The request methods for idempotent validation.
      Returns:
      RequestMethod.POST and RequestMethod.PATCH as default
      Default:
      {POST, PATCH}
    • source

      WebSource source
      The source of the token value
      Returns:
      WebSource.REQUEST_HEADER as default
      See Also:
      Default:
      REQUEST_HEADER
    • target

      WebTarget target
      The target of the token value
      Returns:
      WebTarget.RESPONSE_HEADER as default
      See Also:
      Default:
      RESPONSE_HEADER