Enum HttpHeader

java.lang.Object
java.lang.Enum<HttpHeader>
net.aifusion.cimserver.HttpHeader
All Implemented Interfaces:
Serializable, Comparable<HttpHeader>, java.lang.constant.Constable

public enum HttpHeader extends Enum<HttpHeader>
Predefined Http Headers. These have the same meaning as standard HTTP headers (RFC 2616), but not all are used (or understood) by the current implementation.
Author:
Sharad Singhal
  • Enum Constant Details

    • ACCEPT

      public static final HttpHeader ACCEPT
    • ACCEPT_CHARSET

      public static final HttpHeader ACCEPT_CHARSET
    • ACCEPT_ENCODING

      public static final HttpHeader ACCEPT_ENCODING
    • ACCEPT_LANGUAGE

      public static final HttpHeader ACCEPT_LANGUAGE
    • AUTHORIZATION

      public static final HttpHeader AUTHORIZATION
    • EXPECT

      public static final HttpHeader EXPECT
    • FROM

      public static final HttpHeader FROM
    • HOST

      public static final HttpHeader HOST
    • IF_MATCH

      public static final HttpHeader IF_MATCH
    • IF_MODIFIED_SINCE

      public static final HttpHeader IF_MODIFIED_SINCE
    • IF_NONE_MATCH

      public static final HttpHeader IF_NONE_MATCH
    • IF_RANGE

      public static final HttpHeader IF_RANGE
    • IF_UNMODIFIED_SINCE

      public static final HttpHeader IF_UNMODIFIED_SINCE
    • MAX_FORWARDS

      public static final HttpHeader MAX_FORWARDS
    • PROXY_AUTHORIZATION

      public static final HttpHeader PROXY_AUTHORIZATION
    • RANGE

      public static final HttpHeader RANGE
    • REFERRER

      public static final HttpHeader REFERRER
    • TE

      public static final HttpHeader TE
    • USER_AGENT

      public static final HttpHeader USER_AGENT
    • AGE

      public static final HttpHeader AGE
    • ETAG

      public static final HttpHeader ETAG
    • LOCATION

      public static final HttpHeader LOCATION
    • PROXY_AUTHENTICATE

      public static final HttpHeader PROXY_AUTHENTICATE
    • RETRY_AFTER

      public static final HttpHeader RETRY_AFTER
    • SERVER

      public static final HttpHeader SERVER
    • VARY

      public static final HttpHeader VARY
    • WWW_AUTHENTICATE

      public static final HttpHeader WWW_AUTHENTICATE
    • ALLOW

      public static final HttpHeader ALLOW
    • CONTENT_ENCODING

      public static final HttpHeader CONTENT_ENCODING
    • CONTENT_LANGUAGE

      public static final HttpHeader CONTENT_LANGUAGE
    • CONTENT_LENGTH

      public static final HttpHeader CONTENT_LENGTH
    • CONTENT_LOCATION

      public static final HttpHeader CONTENT_LOCATION
    • CONTENT_TYPE

      public static final HttpHeader CONTENT_TYPE
    • EXPIRES

      public static final HttpHeader EXPIRES
    • LAST_MODIFIED

      public static final HttpHeader LAST_MODIFIED
    • DATE

      public static final HttpHeader DATE
    • ACCEPT_RANGES

      public static final HttpHeader ACCEPT_RANGES
    • CACHE_CONTROL

      public static final HttpHeader CACHE_CONTROL
    • CONNECTION

      public static final HttpHeader CONNECTION
    • MIME_VERSION

      public static final HttpHeader MIME_VERSION
    • PRAGMA

      public static final HttpHeader PRAGMA
    • TRANSFER_ENCODING

      public static final HttpHeader TRANSFER_ENCODING
    • UPGRADE

      public static final HttpHeader UPGRADE
    • WARNING

      public static final HttpHeader WARNING
  • Method Details

    • values

      public static HttpHeader[] 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 HttpHeader 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
    • lookup

      public static HttpHeader lookup(String headerValue)
      Get the header corresponding to a headerValue
      Parameters:
      headerValue - - value to test
      Returns:
      corresponding header value. Null if this headerValue is not defined
    • toString

      public String toString()
      Overrides:
      toString in class Enum<HttpHeader>