Annotation Type Idempotent
-
@Target({TYPE,METHOD}) @Retention(RUNTIME) @Inherited @Documented public @interface IdempotentIdempotent Annotation- Since:
- 1.0.0
- Author:
- Mercy
-
-
Field Summary
Fields Modifier and Type Fields Description static java.lang.StringDEFAULT_TOKEN_NAME
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description WebSourcesourceThe source of the token valueWebTargettargetThe target of the token valuejava.lang.StringtokenNameThe name of the tokenorg.springframework.web.bind.annotation.RequestMethod[]validatedMethodThe request methods for idempotent validation.
-
-
-
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.POSTandRequestMethod.PATCHas default
- Default:
- {org.springframework.web.bind.annotation.RequestMethod.POST, org.springframework.web.bind.annotation.RequestMethod.PATCH}
-
-
-
source
WebSource source
The source of the token value- Returns:
WebSource.REQUEST_HEADERas default- See Also:
WebSource
- Default:
- io.microsphere.spring.web.util.WebSource.REQUEST_HEADER
-
-
-
target
WebTarget target
The target of the token value- Returns:
WebTarget.RESPONSE_HEADERas default- See Also:
WebTarget
- Default:
- io.microsphere.spring.web.util.WebTarget.RESPONSE_HEADER
-
-