Top Description Fields Constructors Methods
org.glassfish.grizzly.http.util

public final Enum Header

extends Enum<Header>
Class Inheritance
Imports
java.util.Locale, .Map, .TreeMap, org.glassfish.grizzly.utils.Charsets

Enumeration of all headers as defined in RFC 2616.
Since
2.1.2

Field Summary

Modifier and TypeField and Description
public static final Header
public static final Header
public static final Header
public static final Header
public static final Header
public static final Header
public static final Header
public static final Header
public static final Header
public static final Header
public static final Header
public static final Header
public static final Header
public static final Header
public static final Header
public static final Header
public static final Header
public static final Header
public static final Header
public static final Header
public static final Header
public static final Header
public static final Header
private final String
private final byte[]
private final String
private final byte[]
public static final Header
public static final Header
public static final Header
public static final Header
public static final Header
public static final Header
public static final Header
public static final Header
public static final Header
private final int
public static final Header
public static final Header
public static final Header
public static final Header
public static final Header
public static final Header
public static final Header
public static final Header
public static final Header
public static final Header
public static final Header
public static final Header
public static final Header
public static final Header
public static final Header
public static final Header
private static final Map<String, Header>
public static final Header
public static final Header
public static final Header
public static final Header
public static final Header

Constructor Summary

AccessConstructor and Description
private
Header(final String headerName)

Method Summary

Modifier and TypeMethod and Description
public static Header

Returns:

the Header for the specified text representation. If no Header matches or if the specified argument is null/zero-length, this method returns null.
find
(final String
the name of the Header to attempt to find.
name
)

Attempts to find a HTTP header by it's standard textual definition which may differ from value value returned by name.

public final byte[]

Returns:

the byte representation of this header encoded using ISO-8859-1.
getBytes
()

Returns the byte representation of this header encoded using ISO-8859-1.

public final int

Returns:

the length this header encoded using ISO-8859-1.
getLength
()

Returns the length this header encoded using ISO-8859-1.

public final String

Returns:

the lower-case String representation of this header
getLowerCase
()

Returns the lower-case String representation of this header.

public final byte[]

Returns:

the lower-case byte representation of this header encoded using ISO-8859-1.
getLowerCaseBytes
()

Returns the lower-case byte representation of this header encoded using ISO-8859-1.

public final byte[]

Returns:

the US-ASCII encoded byte representation of this Header.
toByteArray
()

Returns the US-ASCII encoded byte representation of this Header.

public final String

Returns:

Returns the name of the header properly hyphenated if necessary.
toString
()

Overrides java.lang.Enum.toString.

Returns the name of the header properly hyphenated if necessary.

public static Header
public static Header[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinalvalueOf

Field Detail

Acceptback to summary
public static final Header Accept
AcceptCharsetback to summary
public static final Header AcceptCharset
AcceptEncodingback to summary
public static final Header AcceptEncoding
AcceptRangesback to summary
public static final Header AcceptRanges
Ageback to summary
public static final Header Age
Allowback to summary
public static final Header Allow
Authorizationback to summary
public static final Header Authorization
CacheControlback to summary
public static final Header CacheControl
Connectionback to summary
public static final Header Connection
ContentDispositionback to summary
public static final Header ContentDisposition
ContentEncodingback to summary
public static final Header ContentEncoding
ContentLanguageback to summary
public static final Header ContentLanguage
ContentLengthback to summary
public static final Header ContentLength
ContentLocationback to summary
public static final Header ContentLocation
ContentMD5back to summary
public static final Header ContentMD5
ContentRangeback to summary
public static final Header ContentRange
ContentTypeback to summary
public static final Header ContentType
Dateback to summary
public static final Header Date
ETagback to summary
public static final Header ETag
Expectback to summary
public static final Header Expect
Expiresback to summary
public static final Header Expires
Fromback to summary
public static final Header From
headerNameback to summary
private final String headerName
headerNameBytesback to summary
private final byte[] headerNameBytes
headerNameLowerCaseback to summary
private final String headerNameLowerCase
headerNameLowerCaseBytesback to summary
private final byte[] headerNameLowerCaseBytes
Hostback to summary
public static final Header Host
HTTP2Settingsback to summary
public static final Header HTTP2Settings
IfMatchback to summary
public static final Header IfMatch
IfModifiedSinceback to summary
public static final Header IfModifiedSince
IfNoneMatchback to summary
public static final Header IfNoneMatch
IfRangeback to summary
public static final Header IfRange
IfUnmodifiedSinceback to summary
public static final Header IfUnmodifiedSince
KeepAliveback to summary
public static final Header KeepAlive
LastModifiedback to summary
public static final Header LastModified
lengthback to summary
private final int length
Locationback to summary
public static final Header Location
MaxForwardsback to summary
public static final Header MaxForwards
Pragmaback to summary
public static final Header Pragma
ProxyAuthenticateback to summary
public static final Header ProxyAuthenticate
ProxyAuthorizationback to summary
public static final Header ProxyAuthorization
ProxyConnectionback to summary
public static final Header ProxyConnection
Rangeback to summary
public static final Header Range
Refererback to summary
public static final Header Referer
Annotations
@SuppressWarnings:SpellCheckingInspection
RetryAfterback to summary
public static final Header RetryAfter
Serverback to summary
public static final Header Server
SetCookieback to summary
public static final Header SetCookie
TEback to summary
public static final Header TE
Trailerback to summary
public static final Header Trailer
TransferEncodingback to summary
public static final Header TransferEncoding
Upgradeback to summary
public static final Header Upgrade
UserAgentback to summary
public static final Header UserAgent
VALUESback to summary
private static final Map<String, Header> VALUES
Varyback to summary
public static final Header Vary
Viaback to summary
public static final Header Via
Warningsback to summary
public static final Header Warnings
WWWAuthenticateback to summary
public static final Header WWWAuthenticate
XPoweredByback to summary
public static final Header XPoweredBy

Constructor Detail

Headerback to summary
private Header(final String headerName)

Method Detail

findback to summary
public static Header find(final String name)

Attempts to find a HTTP header by it's standard textual definition which may differ from value value returned by name. Note that this search is case insensitive.

Parameters
name:String

the name of the Header to attempt to find.

Returns:Header

the Header for the specified text representation. If no Header matches or if the specified argument is null/zero-length, this method returns null.

getBytesback to summary
public final byte[] getBytes()

Returns the byte representation of this header encoded using ISO-8859-1.

Returns:byte[]

the byte representation of this header encoded using ISO-8859-1.

getLengthback to summary
public final int getLength()

Returns the length this header encoded using ISO-8859-1.

Returns:int

the length this header encoded using ISO-8859-1.

getLowerCaseback to summary
public final String getLowerCase()

Returns the lower-case String representation of this header.

Returns:String

the lower-case String representation of this header

getLowerCaseBytesback to summary
public final byte[] getLowerCaseBytes()

Returns the lower-case byte representation of this header encoded using ISO-8859-1.

Returns:byte[]

the lower-case byte representation of this header encoded using ISO-8859-1.

toByteArrayback to summary
public final byte[] toByteArray()

Returns the US-ASCII encoded byte representation of this Header.

Returns:byte[]

the US-ASCII encoded byte representation of this Header.

toStringback to summary
public final String toString()

Overrides java.lang.Enum.toString.

Returns the name of the header properly hyphenated if necessary.

Returns:String

Returns the name of the header properly hyphenated if necessary.

Annotations
@Override
valueOfback to summary
public static Header valueOf(String name)
valuesback to summary
public static Header[] values()