Class IdempotentAttributes

    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.util.AbstractMap

        java.util.AbstractMap.SimpleEntry<K extends java.lang.Object,​V extends java.lang.Object>, java.util.AbstractMap.SimpleImmutableEntry<K extends java.lang.Object,​V extends java.lang.Object>
      • Nested classes/interfaces inherited from interface java.util.Map

        java.util.Map.Entry<K extends java.lang.Object,​V extends java.lang.Object>
    • Constructor Summary

      Constructors 
      Constructor Description
      IdempotentAttributes​(Idempotent annotation, org.springframework.core.env.PropertyResolver propertyResolver)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      WebSource getSource()
      Get the request source
      WebTarget getTarget()
      Get the request target
      java.lang.String getTokenName()
      Get the token name
      org.springframework.web.bind.annotation.RequestMethod[] getValidatedMethod()
      Get the request methods for idempotent validation.
      boolean isValidatedMethod​(java.lang.String method)
      Determine whether the specified request method should be validated
      static IdempotentAttributes of​(Idempotent annotation)
      Create the Idempotent annotation attributes
      static IdempotentAttributes of​(Idempotent annotation, org.springframework.core.env.PropertyResolver propertyResolver)
      Create the Idempotent annotation attributes
      • Methods inherited from class org.springframework.core.annotation.AnnotationAttributes

        fromMap, getAnnotation, getAnnotation, getAnnotationArray, getAnnotationArray, getBoolean, getClass, getClassArray, getEnum, getNumber, getString, getStringArray
      • Methods inherited from class java.util.LinkedHashMap

        clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values
      • Methods inherited from class java.util.HashMap

        clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Map

        compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
    • Constructor Detail

      • IdempotentAttributes

        public IdempotentAttributes​(Idempotent annotation,
                                    @Nullable
                                    org.springframework.core.env.PropertyResolver propertyResolver)
    • Method Detail

      • getTokenName

        @Nonnull
        public java.lang.String getTokenName()
        Get the token name
        Returns:
        non-null
        See Also:
        Idempotent.tokenName()
      • getValidatedMethod

        @Nonnull
        public org.springframework.web.bind.annotation.RequestMethod[] getValidatedMethod()
        Get the request methods for idempotent validation.
        Returns:
        non-null
        See Also:
        Idempotent.validatedMethod()
      • isValidatedMethod

        public boolean isValidatedMethod​(java.lang.String method)
        Determine whether the specified request method should be validated
        Parameters:
        method - the request method
        Returns:
        true if the specified request method should be validated; false otherwise
      • of

        @Nonnull
        public static IdempotentAttributes of​(Idempotent annotation,
                                              @Nullable
                                              org.springframework.core.env.PropertyResolver propertyResolver)
        Create the Idempotent annotation attributes
        Parameters:
        annotation - the Idempotent annotation
        propertyResolver - the PropertyResolver
        Returns:
        non-null