Enum BlockingContentType

java.lang.Object
java.lang.Enum<BlockingContentType>
datadog.appsec.api.blocking.BlockingContentType
All Implemented Interfaces:
Serializable, Comparable<BlockingContentType>, java.lang.constant.Constable

public enum BlockingContentType extends Enum<BlockingContentType>
  • Enum Constant Details

    • AUTO

      public static final BlockingContentType AUTO
      Automatically choose between HTML and JSON, depending on the value of the Accept header. If the preference value is the same, JSON will be preferred.
    • HTML

      public static final BlockingContentType HTML
      An HTTP response.
    • JSON

      public static final BlockingContentType JSON
      A JSON response.
    • NONE

      public static final BlockingContentType NONE
      No body in the response
  • Method Details

    • values

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

      public static BlockingContentType valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null