Enum Class HttpHeader

java.lang.Object
java.lang.Enum<HttpHeader>
org.eclipse.jetty.http.HttpHeader
All Implemented Interfaces:
Serializable, Comparable<HttpHeader>, Constable

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

    • CONNECTION

      public static final HttpHeader CONNECTION
      General Fields.
    • CACHE_CONTROL

      public static final HttpHeader CACHE_CONTROL
    • DATE

      public static final HttpHeader DATE
    • PRAGMA

      public static final HttpHeader PRAGMA
    • PROXY_CONNECTION

      public static final HttpHeader PROXY_CONNECTION
    • TRAILER

      public static final HttpHeader TRAILER
    • TRANSFER_ENCODING

      public static final HttpHeader TRANSFER_ENCODING
    • UPGRADE

      public static final HttpHeader UPGRADE
    • VIA

      public static final HttpHeader VIA
    • WARNING

      public static final HttpHeader WARNING
    • NEGOTIATE

      public static final HttpHeader NEGOTIATE
    • ALLOW

      public static final HttpHeader ALLOW
      Entity Fields.
    • CONTENT_DISPOSITION

      public static final HttpHeader CONTENT_DISPOSITION
    • 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_MD5

      public static final HttpHeader CONTENT_MD5
    • CONTENT_RANGE

      public static final HttpHeader CONTENT_RANGE
    • CONTENT_TRANSFER_ENCODING

      public static final HttpHeader CONTENT_TRANSFER_ENCODING
    • CONTENT_TYPE

      public static final HttpHeader CONTENT_TYPE
    • EXPIRES

      public static final HttpHeader EXPIRES
    • LAST_MODIFIED

      public static final HttpHeader LAST_MODIFIED
    • ACCEPT

      public static final HttpHeader ACCEPT
      Request Fields.
    • ACCEPT_CHARSET

      public static final HttpHeader ACCEPT_CHARSET
    • ACCEPT_ENCODING

      public static final HttpHeader ACCEPT_ENCODING
    • ACCEPT_LANGUAGE

      public static final HttpHeader ACCEPT_LANGUAGE
    • ACCESS_CONTROL_REQUEST_HEADERS

      public static final HttpHeader ACCESS_CONTROL_REQUEST_HEADERS
    • ACCESS_CONTROL_REQUEST_METHOD

      public static final HttpHeader ACCESS_CONTROL_REQUEST_METHOD
    • AUTHORIZATION

      public static final HttpHeader AUTHORIZATION
    • EXPECT

      public static final HttpHeader EXPECT
    • FORWARDED

      public static final HttpHeader FORWARDED
    • 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
    • KEEP_ALIVE

      public static final HttpHeader KEEP_ALIVE
    • MAX_FORWARDS

      public static final HttpHeader MAX_FORWARDS
    • PROXY_AUTHORIZATION

      public static final HttpHeader PROXY_AUTHORIZATION
    • RANGE

      public static final HttpHeader RANGE
    • REQUEST_RANGE

      public static final HttpHeader REQUEST_RANGE
    • REFERER

      public static final HttpHeader REFERER
    • TE

      public static final HttpHeader TE
    • USER_AGENT

      public static final HttpHeader USER_AGENT
    • X_FORWARDED_FOR

      public static final HttpHeader X_FORWARDED_FOR
    • X_FORWARDED_PORT

      public static final HttpHeader X_FORWARDED_PORT
    • X_FORWARDED_PROTO

      public static final HttpHeader X_FORWARDED_PROTO
    • X_FORWARDED_SERVER

      public static final HttpHeader X_FORWARDED_SERVER
    • X_FORWARDED_HOST

      public static final HttpHeader X_FORWARDED_HOST
    • ACCEPT_RANGES

      public static final HttpHeader ACCEPT_RANGES
      Response Fields.
    • ACCESS_CONTROL_ALLOW_ORIGIN

      public static final HttpHeader ACCESS_CONTROL_ALLOW_ORIGIN
    • ACCESS_CONTROL_ALLOW_METHODS

      public static final HttpHeader ACCESS_CONTROL_ALLOW_METHODS
    • ACCESS_CONTROL_ALLOW_HEADERS

      public static final HttpHeader ACCESS_CONTROL_ALLOW_HEADERS
    • ACCESS_CONTROL_MAX_AGE

      public static final HttpHeader ACCESS_CONTROL_MAX_AGE
    • ACCESS_CONTROL_ALLOW_CREDENTIALS

      public static final HttpHeader ACCESS_CONTROL_ALLOW_CREDENTIALS
    • ACCESS_CONTROL_EXPOSE_HEADERS

      public static final HttpHeader ACCESS_CONTROL_EXPOSE_HEADERS
    • AGE

      public static final HttpHeader AGE
    • ALT_SVC

      public static final HttpHeader ALT_SVC
    • 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
    • SERVLET_ENGINE

      public static final HttpHeader SERVLET_ENGINE
    • TIMING_ALLOW_ORIGIN

      public static final HttpHeader TIMING_ALLOW_ORIGIN
    • VARY

      public static final HttpHeader VARY
    • WWW_AUTHENTICATE

      public static final HttpHeader WWW_AUTHENTICATE
    • ORIGIN

      public static final HttpHeader ORIGIN
      WebSocket Fields.
    • SEC_WEBSOCKET_KEY

      public static final HttpHeader SEC_WEBSOCKET_KEY
    • SEC_WEBSOCKET_VERSION

      public static final HttpHeader SEC_WEBSOCKET_VERSION
    • SEC_WEBSOCKET_EXTENSIONS

      public static final HttpHeader SEC_WEBSOCKET_EXTENSIONS
    • SEC_WEBSOCKET_SUBPROTOCOL

      public static final HttpHeader SEC_WEBSOCKET_SUBPROTOCOL
    • SEC_WEBSOCKET_ACCEPT

      public static final HttpHeader SEC_WEBSOCKET_ACCEPT
    • SET_COOKIE2

      public static final HttpHeader SET_COOKIE2
    • MIME_VERSION

      public static final HttpHeader MIME_VERSION
    • IDENTITY

      public static final HttpHeader IDENTITY
    • X_POWERED_BY

      public static final HttpHeader X_POWERED_BY
    • HTTP2_SETTINGS

      public static final HttpHeader HTTP2_SETTINGS
    • STRICT_TRANSPORT_SECURITY

      public static final HttpHeader STRICT_TRANSPORT_SECURITY
    • C_METHOD

      public static final HttpHeader C_METHOD
      HTTP2 Fields.
    • C_SCHEME

      public static final HttpHeader C_SCHEME
    • C_AUTHORITY

      public static final HttpHeader C_AUTHORITY
    • C_PATH

      public static final HttpHeader C_PATH
    • C_STATUS

      public static final HttpHeader C_STATUS
    • C_PROTOCOL

      public static final HttpHeader C_PROTOCOL
  • Field Details

  • Method Details

    • values

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

      public String lowerCaseName()
    • toBuffer

      public ByteBuffer toBuffer()
    • getBytes

      public byte[] getBytes()
    • getBytesColonSpace

      public byte[] getBytesColonSpace()
    • is

      public boolean is(String s)
    • isPseudo

      public boolean isPseudo()
      Returns:
      True if the header is a HTTP2 Pseudo header (eg ':path')
    • asString

      public String asString()
    • toString

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