Enum HttpHeader

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<HttpHeader>

    public enum HttpHeader
    extends java.lang.Enum<HttpHeader>
    • Enum Constant Detail

      • CONNECTION

        public static final HttpHeader CONNECTION
        General Fields.
      • CACHE_CONTROL

        public static final HttpHeader CACHE_CONTROL
      • PROXY_CONNECTION

        public static final HttpHeader PROXY_CONNECTION
      • TRANSFER_ENCODING

        public static final HttpHeader TRANSFER_ENCODING
      • NEGOTIATE

        public static final HttpHeader NEGOTIATE
      • ALLOW

        public static final HttpHeader ALLOW
        Entity Fields.
      • 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_TYPE

        public static final HttpHeader CONTENT_TYPE
      • 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
      • AUTHORIZATION

        public static final HttpHeader AUTHORIZATION
      • FORWARDED

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

        public static final HttpHeader REQUEST_RANGE
      • 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.
      • LOCATION

        public static final HttpHeader LOCATION
      • PROXY_AUTHENTICATE

        public static final HttpHeader PROXY_AUTHENTICATE
      • RETRY_AFTER

        public static final HttpHeader RETRY_AFTER
      • SERVLET_ENGINE

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

        public static final HttpHeader COOKIE
        Other Fields.
      • SET_COOKIE

        public static final HttpHeader SET_COOKIE
      • 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_STATUS

        public static final HttpHeader C_STATUS
    • Method Detail

      • values

        public static HttpHeader[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (HttpHeader c : HttpHeader.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static HttpHeader valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • toBuffer

        public java.nio.ByteBuffer toBuffer()
      • getBytes

        public byte[] getBytes()
      • getBytesColonSpace

        public byte[] getBytesColonSpace()
      • is

        public boolean is​(java.lang.String s)
      • asString

        public java.lang.String asString()
      • toString

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