Package httpclient

Enum HeaderStrategy

java.lang.Object
java.lang.Enum<HeaderStrategy>
httpclient.HeaderStrategy
All Implemented Interfaces:
Serializable, Comparable<HeaderStrategy>

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

    • SILENT_REMOVE_NULL_HEADERS

      public static final HeaderStrategy SILENT_REMOVE_NULL_HEADERS
    • THROW_EXCEPTION_ON_NULL

      public static final HeaderStrategy THROW_EXCEPTION_ON_NULL
  • Method Details

    • values

      public static HeaderStrategy[] 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 HeaderStrategy 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