Annotation Type Idempotent


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

      Fields 
      Modifier and Type Fields Description
      static java.lang.String DEFAULT_TOKEN_NAME  
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      WebSource source
      The source of the token value
      WebTarget target
      The target of the token value
      java.lang.String tokenName
      The name of the token
      org.springframework.web.bind.annotation.RequestMethod[] validatedMethod
      The request methods for idempotent validation.
    • Field Detail

      • DEFAULT_TOKEN_NAME

        static final java.lang.String DEFAULT_TOKEN_NAME
    • Element Detail

      • tokenName

        java.lang.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:
        {org.springframework.web.bind.annotation.RequestMethod.POST, org.springframework.web.bind.annotation.RequestMethod.PATCH}