Enum Class ValidationMetrics.SkipReason

java.lang.Object
java.lang.Enum<ValidationMetrics.SkipReason>
ch.nexsol.gateway.validation.ValidationMetrics.SkipReason
All Implemented Interfaces:
Serializable, Comparable<ValidationMetrics.SkipReason>, Constable
Enclosing class:
ValidationMetrics

public static enum ValidationMetrics.SkipReason extends Enum<ValidationMetrics.SkipReason>
Why a body was forwarded without being held against its schema.
  • Enum Constant Details

    • NOT_JSON

      public static final ValidationMetrics.SkipReason NOT_JSON
      The media type carries nothing a JSON schema applies to: an upload, a binary stream, a form submission.
    • ENCODED

      public static final ValidationMetrics.SkipReason ENCODED
      The body is compressed, and decompressing it to validate it is out of scope.
    • TOO_LARGE

      public static final ValidationMetrics.SkipReason TOO_LARGE
      The body is larger than the configured maximum.
    • UNKNOWN_LENGTH

      public static final ValidationMetrics.SkipReason UNKNOWN_LENGTH
      The length of the body is not announced, so buffering it could not be bounded.
  • Method Details

    • values

      public static ValidationMetrics.SkipReason[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ValidationMetrics.SkipReason valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null