Class IdempotentAttributes

All Implemented Interfaces:
Serializable, Cloneable, Map<String,Object>

public class IdempotentAttributes extends ResolvablePlaceholderAnnotationAttributes<Idempotent>
Since:
1.0.0
Author:
Mercy
See Also:
  • Constructor Details

    • IdempotentAttributes

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

    • getTokenName

      @Nonnull public String 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

      @Nonnull public WebSource getSource()
      Get the request source
      Returns:
      non-null
      See Also:
    • getTarget

      @Nonnull public WebTarget getTarget()
      Get the request target
      Returns:
      non-null
      See Also:
    • isValidatedMethod

      public boolean isValidatedMethod(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)
      Create the Idempotent annotation attributes
      Parameters:
      annotation - the Idempotent annotation
      Returns:
      non-null
    • 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