java.lang.Object
java.lang.Enum<Headers>
net.jonathangiles.tools.teenyhttpd.model.Headers
All Implemented Interfaces:
Serializable, Comparable<Headers>, java.lang.constant.Constable

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

    • ACCEPT

      public static final Headers ACCEPT
    • ACCESS_CONTROL_ALLOW_ORIGIN

      public static final Headers ACCESS_CONTROL_ALLOW_ORIGIN
    • CACHE_CONTROL

      public static final Headers CACHE_CONTROL
    • CONNECTION

      public static final Headers CONNECTION
    • CONTENT_TYPE

      public static final Headers CONTENT_TYPE
    • CONTENT_LENGTH

      public static final Headers CONTENT_LENGTH
  • Method Details

    • values

      public static Headers[] 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 Headers 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
    • getKey

      public String getKey()
    • asHeader

      public Header asHeader(String value)
    • asHeader

      public Header asHeader(Object value)