Class IdempotentAttributes
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<K,V>
java.util.LinkedHashMap<String,Object>
org.springframework.core.annotation.AnnotationAttributes
io.microsphere.spring.core.annotation.GenericAnnotationAttributes<A>
io.microsphere.spring.core.annotation.ResolvablePlaceholderAnnotationAttributes<Idempotent>
io.microsphere.spring.web.idempotent.IdempotentAttributes
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,Object>
public class IdempotentAttributes
extends io.microsphere.spring.core.annotation.ResolvablePlaceholderAnnotationAttributes<Idempotent>
ResolvablePlaceholderAnnotationAttributes for Idempotent annotation- Since:
- 1.0.0
- Author:
- Mercy
- See Also:
-
ResolvablePlaceholderAnnotationAttributes- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Constructor Summary
ConstructorsConstructorDescriptionIdempotentAttributes(Idempotent annotation, org.springframework.core.env.PropertyResolver propertyResolver) -
Method Summary
Modifier and TypeMethodDescriptionGet the request sourceGet the request targetGet the token nameorg.springframework.web.bind.annotation.RequestMethod[]Get the request methods for idempotent validation.booleanisValidatedMethod(String method) Determine whether the specified request method should be validatedstatic IdempotentAttributesof(Idempotent annotation) Create theIdempotentannotation attributesstatic IdempotentAttributesof(Idempotent annotation, org.springframework.core.env.PropertyResolver propertyResolver) Create theIdempotentannotation attributesMethods inherited from class io.microsphere.spring.core.annotation.ResolvablePlaceholderAnnotationAttributes
of, of, of, ofSetMethods inherited from class io.microsphere.spring.core.annotation.GenericAnnotationAttributes
annotationType, equals, hashCode, of, of, ofSet, toStringMethods inherited from class org.springframework.core.annotation.AnnotationAttributes
fromMap, getAnnotation, getAnnotation, getAnnotationArray, getAnnotationArray, getBoolean, getClass, getClassArray, getEnum, getNumber, getString, getStringArrayMethods inherited from class java.util.LinkedHashMap
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, valuesMethods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, sizeMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
-
Constructor Details
-
IdempotentAttributes
public IdempotentAttributes(Idempotent annotation, @Nullable org.springframework.core.env.PropertyResolver propertyResolver)
-
-
Method Details
-
getTokenName
Get the token name- Returns:
- non-null
- See Also:
-
getValidatedMethod
@Nonnull public org.springframework.web.bind.annotation.RequestMethod[] getValidatedMethod()Get the request methods for idempotent validation.- Returns:
- non-null
- See Also:
-
getSource
Get the request source- Returns:
- non-null
- See Also:
-
getTarget
Get the request target- Returns:
- non-null
- See Also:
-
isValidatedMethod
Determine whether the specified request method should be validated- Parameters:
method- the request method- Returns:
trueif the specified request method should be validated;falseotherwise
-
of
Create theIdempotentannotation attributes- Parameters:
annotation- theIdempotentannotation- Returns:
- non-null
-
of
@Nonnull public static IdempotentAttributes of(Idempotent annotation, @Nullable org.springframework.core.env.PropertyResolver propertyResolver) Create theIdempotentannotation attributes- Parameters:
annotation- theIdempotentannotationpropertyResolver- thePropertyResolver- Returns:
- non-null
-