java.lang.Object
io.helidon.http.HeaderNames
Utility class with a list of names of standard HTTP headers and related tooling methods.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HeaderNameTheAcceptheader name.static final HeaderNameTheAccept-Charsetheader name.static final HeaderNameTheAccept-Datetimeheader name.static final HeaderNameTheAccept-Encodingheader name.static final HeaderNameTheAccept-Languageheader name.static final HeaderNameTheAccept-Patchheader name.static final HeaderNameTheAccept-Rangesheader name.static final HeaderNameTheAccess-Control-Allow-Credentialsheader name.static final HeaderNameTheAccess-Control-Allow-Headersheader name.static final HeaderNameTheAccess-Control-Allow-Methodsheader name.static final HeaderNameTheAccess-Control-Allow-Originheader name.static final HeaderNameTheAccess-Control-Expose-Headersheader name.static final HeaderNameTheAccess-Control-Max-Ageheader name.static final HeaderNameTheAccess-Control-Request-Headersheader name.static final HeaderNameTheAccess-Control-Request-Methodheader name.static final HeaderNameTheAgeheader name.static final HeaderNameTheAllowheader name.static final HeaderNameThe<code>{@value}</code>header name.static final HeaderNameTheAuthorizationheader name.static final HeaderNameTheCache-Controlheader name.static final HeaderNameTheConnectionheader name.static final HeaderNameThe<code>{@value}</code>header name.static final HeaderNameTheContent-Encodingheader name.static final HeaderNameTheContent-Languageheader name.static final HeaderNameTheContent-Lengthheader name.static final HeaderNameTheContent-Locationheader name.static final HeaderNameTheContent-Rangeheader name.static final HeaderNameTheContent-Typeheader name.static final HeaderNameTheCookieheader name.static final HeaderNameTheDateheader name.static final HeaderNameTheEtagheader name.static final HeaderNameTheExpectheader name.static final HeaderNameTheExpiresheader name.static final HeaderNameTheForwardedheader name.static final HeaderNameTheFromheader name.static final HeaderNameTheHostheader name.static final StringThe "Host" header.static final HeaderNameTheIf-Matchheader name.static final HeaderNameTheIf-Modified-Sinceheader name.static final HeaderNameTheIf-None-Matchheader name.static final HeaderNameTheIf-Rangeheader name.static final HeaderNameTheIf-Unmodified-Sinceheader name.static final HeaderNameTheLast-Modifiedheader name.static final HeaderNameTheLinkheader name.static final HeaderNameTheLocationheader name.static final HeaderNameTheMax-Forwardsheader name.static final HeaderNameThe<code>{@value}</code>header name.static final HeaderNameThePragmaheader name.static final HeaderNameTheProxy-Authenticateheader name.static final HeaderNameTheProxy-Authorizationheader name.static final HeaderNameThePublic-Key-Pinsheader name.static final HeaderNameTheRangeheader name.static final HeaderNameThe<code>{@value}</code>header name.static final HeaderNameThe<code>{@value}</code>header name.static final HeaderNameThe<code>{@value}</code>header name.static final HeaderNameTheServerheader name.static final HeaderNameTheSet-Cookieheader name.static final HeaderNameTheSet-Cookie2header name.static final HeaderNameTheStrict-Transport-Securityheader name.static final HeaderNameThe<code>{@value}</code>header name.static final HeaderNameTheTrailerheader name.static final HeaderNameTheTransfer-Encodingheader name.static final HeaderNameTheTsvheader name.static final HeaderNameTheUpgradeheader name.static final HeaderNameTheUser-Agentheader name.static final HeaderNameTheVaryheader name.static final HeaderNameTheViaheader name.static final HeaderNameTheWarningheader name.static final HeaderNameTheWWW-Authenticateheader name.static final HeaderNameTheX-Forwarded-Forheader name.static final HeaderNameTheX_FORWARDED_HOSTheader name.static final HeaderNameTheX_FORWARDED_PORTheader name.static final HeaderNameTheX_FORWARDED_PREFIXheader name.static final HeaderNameTheX_FORWARDED_PROTOheader name.static final HeaderNameTheX_HELIDON_CNheader name. -
Method Summary
Modifier and TypeMethodDescriptionstatic HeaderNameFind or create a header name.static HeaderNameFind or create a header name.static HeaderNamecreateFromLowercase(String lowerCase) Create a header name from lower case letters.
-
Field Details
-
ACCEPT
TheAcceptheader name. Content-Types that are acceptedTypes for the response. -
ACCEPT_CHARSET
TheAccept-Charsetheader name. Character sets that are acceptedTypes. -
ACCEPT_ENCODING
TheAccept-Encodingheader name. List of acceptedTypes encodings. -
ACCEPT_LANGUAGE
TheAccept-Languageheader name. List of acceptedTypes human languages for response. -
ACCEPT_DATETIME
TheAccept-Datetimeheader name. Acceptable version in time. -
ACCESS_CONTROL_ALLOW_CREDENTIALS
TheAccess-Control-Allow-Credentialsheader name. CORS configuration. -
ACCESS_CONTROL_ALLOW_HEADERS
TheAccess-Control-Allow-Headersheader name. CORS configuration -
ACCESS_CONTROL_ALLOW_METHODS
TheAccess-Control-Allow-Methodsheader name. CORS configuration -
ACCESS_CONTROL_ALLOW_ORIGIN
TheAccess-Control-Allow-Originheader name. CORS configuration. -
ACCESS_CONTROL_EXPOSE_HEADERS
TheAccess-Control-Expose-Headersheader name. CORS configuration. -
ACCESS_CONTROL_MAX_AGE
TheAccess-Control-Max-Ageheader name. CORS configuration. -
ACCESS_CONTROL_REQUEST_HEADERS
TheAccess-Control-Request-Headersheader name. CORS configuration. -
ACCESS_CONTROL_REQUEST_METHOD
TheAccess-Control-Request-Methodheader name. CORS configuration. -
AUTHORIZATION
TheAuthorizationheader name. Authentication credentials for HTTP authentication. -
COOKIE
TheCookieheader name. An HTTP cookie previously sent by the server withSet-Cookie. -
EXPECT
TheExpectheader name. Indicates that particular server behaviors are required by the client. -
FORWARDED
TheForwardedheader name. Disclose original information of a client connecting to a web server through an HTTP proxy. -
FROM
TheFromheader name. The email address of the user making the request. -
HOST
TheHostheader name. The domain name of the server (for virtual hosting), and the TCP port number on which the server is listening. The port number may be omitted if the port is the standard port for the service requested. -
HOST_STRING
The "Host" header.- See Also:
-
IF_MATCH
TheIf-Matchheader name. Only perform the action if the client supplied entity matches the same entity on the server. This is mainly for methods like PUT to only update a resource if it has not been modified since the user last updated it. -
IF_MODIFIED_SINCE
TheIf-Modified-Sinceheader name. Allows a 304 Not Modified to be returned if content is unchanged. -
IF_NONE_MATCH
TheIf-None-Matchheader name. Allows a 304 Not Modified to be returned if content is unchanged, based onETAG. -
IF_RANGE
TheIf-Rangeheader name. If the entity is unchanged, send me the part(s) that I am missing; otherwise, send me the entire new entity. -
IF_UNMODIFIED_SINCE
TheIf-Unmodified-Sinceheader name. Only send Theresponse if The Entityhas not been modified since a specific time. -
MAX_FORWARDS
TheMax-Forwardsheader name. Limit the number of times the message can be forwarded through proxies or gateways. -
ORIGIN
The<code>{@value}</code>header name. Initiates a request for cross-origin resource sharing (asks server for an'Access-Control-Allow-Origin'response field). -
PROXY_AUTHENTICATE
TheProxy-Authenticateheader name. Proxy authentication information. -
PROXY_AUTHORIZATION
TheProxy-Authorizationheader name. Proxy authorization information. -
RANGE
TheRangeheader name. Request only part of an entity. Bytes are numbered from 0. -
REFERER
The<code>{@value}</code>header name. This is the address of the previous web page from which a link to the currently requested page was followed. (Theword <i>referrer</i>has been misspelled in TheRFC as well as in most implementations to the point that ithas become standard usage and is considered correct terminology.) -
REFRESH
The<code>{@value}</code>header name. -
TE
The<code>{@value}</code>header name. Thetransfer encodings the user agent is willing to acceptedTypes: the same values as for The Responseheader fieldTransfer-Encodingcan be used, plus the trailers value (related to the chunked transfer method) to notify the server it expects to receive additional fields in the trailer after the last, zero-sized, chunk. -
USER_AGENT
TheUser-Agentheader name. The user agent string of the user agent. -
VIA
TheViaheader name. Informs the server of proxies through which the request was sent. -
ACCEPT_PATCH
TheAccept-Patchheader name. Specifies which patch document formats this server supports. -
ACCEPT_RANGES
TheAccept-Rangesheader name. What partial content range types this server supports via byte serving. -
AGE
TheAgeheader name. Theage The Objecthas been in a proxy cache in seconds. -
ALLOW
TheAllowheader name. Valid actions for a specified resource. To be used for a 405 Method not allowed. -
ALT_SVC
The<code>{@value}</code>header name. A server uses Alt-Svc header (meaning Alternative Services) to indicate that its resources can also be accessed at a different network location (host or port) or using a different protocol. -
CACHE_CONTROL
TheCache-Controlheader name. Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds. -
CONNECTION
TheConnectionheader name. Control options for Thecurrent connection and list ofhop-by-hop response fields. -
CONTENT_DISPOSITION
The<code>{@value}</code>header name. An opportunity to raise a File Download dialogue box for a known MIME type with binary format or suggest a filename for dynamic content. Quotes are necessary with special characters. -
CONTENT_ENCODING
TheContent-Encodingheader name. The type of encoding used on the data. -
CONTENT_LANGUAGE
TheContent-Languageheader name. The natural language or languages of the intended audience for the enclosed content. -
CONTENT_LENGTH
TheContent-Lengthheader name. The length of the response body in octets. -
CONTENT_LOCATION
TheContent-Locationheader name. An alternate location for the returned data. -
CONTENT_RANGE
TheContent-Rangeheader name. Where in a full body message this partial message belongs. -
CONTENT_TYPE
TheContent-Typeheader name. The MIME type of this content. -
DATE
TheDateheader name. The date and time that the message was sent (in HTTP-date format as defined by RFC 7231). -
ETAG
TheEtagheader name. An identifier for a specific version of a resource, often a message digest. -
EXPIRES
TheExpiresheader name. Gives the date/time after which the response is considered stale (in HTTP-date format as defined by RFC 7231) -
LAST_MODIFIED
TheLast-Modifiedheader name. The last modified date for the requested object (in HTTP-date format as defined by RFC 7231) -
LINK
TheLinkheader name. Used to express a typed relationship with another resource, where the relation type is defined by RFC 5988. -
LOCATION
TheLocationheader name. Used in redirection, or whenRequest a new resource has been created. -
PRAGMA
ThePragmaheader name. Implementation-specific fields that may have various effects anywhere along the request-response chain. -
PUBLIC_KEY_PINS
ThePublic-Key-Pinsheader name. HTTP Public Key Pinning, announces hash of website's authentic TLS certificate. -
RETRY_AFTER
The<code>{@value}</code>header name. If an entity is temporarily unavailable, this instructs the client to try again later. Value could be a specified period of time (in seconds) or an HTTP-date. -
SERVER
TheServerheader name. A name for the server. -
SET_COOKIE
TheSet-Cookieheader name. An HTTP cookie set directive. -
SET_COOKIE2
TheSet-Cookie2header name. An HTTP cookie set directive. -
STRICT_TRANSPORT_SECURITY
TheStrict-Transport-Securityheader name. A HSTS Policy informing TheHTTP clienthow long to cache the HTTPS only policy and whether this applies to subdomains. -
TRAILER
TheTrailerheader name. The Trailer general field value indicates that the given set of} header fields is present in the trailer of a message encoded with chunked transfer coding. -
TRANSFER_ENCODING
TheTransfer-Encodingheader name. The form of encoding used to safely transfer the entity to the user. Currently defined methods are:chunked, compress, deflate, gzip, identity. -
TSV
TheTsvheader name. Tracking Status Value, value suggested to be sent in response to a DNT(do-not-track). -
UPGRADE
TheUpgradeheader name. Ask to upgrade to another protocol. -
VARY
TheVaryheader name. Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server. -
WARNING
TheWarningheader name. A general warning about possible problems with the entity body. -
WWW_AUTHENTICATE
TheWWW-Authenticateheader name. Indicates the authentication scheme that should be used to access the requested entity. -
X_HELIDON_CN
TheX_HELIDON_CNheader name. Corresponds to the certificate CN subject value when client authentication enabled. This header will be removed if it is part of the request. -
X_FORWARDED_FOR
TheX-Forwarded-Forheader name. Represents the originating client and intervening proxies when the request has passed through one or more proxies. -
X_FORWARDED_HOST
TheX_FORWARDED_HOSTheader name. Represents the host specified by the originating client when the request has passed through one or more proxies. -
X_FORWARDED_PORT
TheX_FORWARDED_PORTheader name. Represents the port specified by the originating client when the request has passed through one or more proxies. -
X_FORWARDED_PREFIX
TheX_FORWARDED_PREFIXheader name. Represents the path prefix to be applied to relative paths resolved against this request when the request has passed through one or more proxies. -
X_FORWARDED_PROTO
TheX_FORWARDED_PROTOheader name. Represents the protocol specified by the originating client when the request has passed through one or more proxies.
-
-
Method Details
-
create
Find or create a header name. If a known indexed header exists for the name, the instance is returned. Otherwise a new header name is created with the provided name.- Parameters:
name- default case to use for custom header names (header names not known by Helidon)- Returns:
- header name instance
-
create
Find or create a header name. If a known indexed header exists for the lower case name, the instance is returned. Otherwise a new header name is created with the provided names.- Parameters:
lowerCase- lower case namedefaultCase- default case to use for custom header names (header names not known by Helidon)- Returns:
- header name instance
-
createFromLowercase
Create a header name from lower case letters.- Parameters:
lowerCase- lower case- Returns:
- a new header name
-