java.lang.Object
io.helidon.http.HeaderNames
Utility class with a list of names of standard HTTP headers and related tooling methods.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HeaderName
TheAccept
header name.static final HeaderName
TheAccept-Charset
header name.static final HeaderName
TheAccept-Datetime
header name.static final HeaderName
TheAccept-Encoding
header name.static final HeaderName
TheAccept-Language
header name.static final HeaderName
TheAccept-Patch
header name.static final HeaderName
TheAccept-Ranges
header name.static final HeaderName
TheAccess-Control-Allow-Credentials
header name.static final HeaderName
TheAccess-Control-Allow-Headers
header name.static final HeaderName
TheAccess-Control-Allow-Methods
header name.static final HeaderName
TheAccess-Control-Allow-Origin
header name.static final HeaderName
TheAccess-Control-Expose-Headers
header name.static final HeaderName
TheAccess-Control-Max-Age
header name.static final HeaderName
TheAccess-Control-Request-Headers
header name.static final HeaderName
TheAccess-Control-Request-Method
header name.static final HeaderName
TheAge
header name.static final HeaderName
TheAllow
header name.static final HeaderName
The<code>{@value}</code>
header name.static final HeaderName
TheAuthorization
header name.static final HeaderName
TheCache-Control
header name.static final HeaderName
TheConnection
header name.static final HeaderName
The<code>{@value}</code>
header name.static final HeaderName
TheContent-Encoding
header name.static final HeaderName
TheContent-Language
header name.static final HeaderName
TheContent-Length
header name.static final HeaderName
TheContent-Location
header name.static final HeaderName
TheContent-Range
header name.static final HeaderName
TheContent-Type
header name.static final HeaderName
TheCookie
header name.static final HeaderName
TheDate
header name.static final HeaderName
TheEtag
header name.static final HeaderName
TheExpect
header name.static final HeaderName
TheExpires
header name.static final HeaderName
TheForwarded
header name.static final HeaderName
TheFrom
header name.static final HeaderName
TheHost
header name.static final String
The "Host" header.static final HeaderName
TheIf-Match
header name.static final HeaderName
TheIf-Modified-Since
header name.static final HeaderName
TheIf-None-Match
header name.static final HeaderName
TheIf-Range
header name.static final HeaderName
TheIf-Unmodified-Since
header name.static final HeaderName
TheLast-Modified
header name.static final HeaderName
TheLink
header name.static final HeaderName
TheLocation
header name.static final HeaderName
TheMax-Forwards
header name.static final HeaderName
The<code>{@value}</code>
header name.static final HeaderName
ThePragma
header name.static final HeaderName
TheProxy-Authenticate
header name.static final HeaderName
TheProxy-Authorization
header name.static final HeaderName
ThePublic-Key-Pins
header name.static final HeaderName
TheRange
header name.static final HeaderName
The<code>{@value}</code>
header name.static final HeaderName
The<code>{@value}</code>
header name.static final HeaderName
The<code>{@value}</code>
header name.static final HeaderName
TheServer
header name.static final HeaderName
TheSet-Cookie
header name.static final HeaderName
TheSet-Cookie2
header name.static final HeaderName
TheStrict-Transport-Security
header name.static final HeaderName
The<code>{@value}</code>
header name.static final HeaderName
TheTrailer
header name.static final HeaderName
TheTransfer-Encoding
header name.static final HeaderName
TheTsv
header name.static final HeaderName
TheUpgrade
header name.static final HeaderName
TheUser-Agent
header name.static final HeaderName
TheVary
header name.static final HeaderName
TheVia
header name.static final HeaderName
TheWarning
header name.static final HeaderName
TheWWW-Authenticate
header name.static final HeaderName
TheX-Forwarded-For
header name.static final HeaderName
TheX_FORWARDED_HOST
header name.static final HeaderName
TheX_FORWARDED_PORT
header name.static final HeaderName
TheX_FORWARDED_PREFIX
header name.static final HeaderName
TheX_FORWARDED_PROTO
header name.static final HeaderName
TheX_HELIDON_CN
header name. -
Method Summary
Modifier and TypeMethodDescriptionstatic HeaderName
Find or create a header name.static HeaderName
Find or create a header name.static HeaderName
createFromLowercase
(String lowerCase) Create a header name from lower case letters.
-
Field Details
-
ACCEPT
TheAccept
header name. Content-Types that are acceptedTypes for the response. -
ACCEPT_CHARSET
TheAccept-Charset
header name. Character sets that are acceptedTypes. -
ACCEPT_ENCODING
TheAccept-Encoding
header name. List of acceptedTypes encodings. -
ACCEPT_LANGUAGE
TheAccept-Language
header name. List of acceptedTypes human languages for response. -
ACCEPT_DATETIME
TheAccept-Datetime
header name. Acceptable version in time. -
ACCESS_CONTROL_ALLOW_CREDENTIALS
TheAccess-Control-Allow-Credentials
header name. CORS configuration. -
ACCESS_CONTROL_ALLOW_HEADERS
TheAccess-Control-Allow-Headers
header name. CORS configuration -
ACCESS_CONTROL_ALLOW_METHODS
TheAccess-Control-Allow-Methods
header name. CORS configuration -
ACCESS_CONTROL_ALLOW_ORIGIN
TheAccess-Control-Allow-Origin
header name. CORS configuration. -
ACCESS_CONTROL_EXPOSE_HEADERS
TheAccess-Control-Expose-Headers
header name. CORS configuration. -
ACCESS_CONTROL_MAX_AGE
TheAccess-Control-Max-Age
header name. CORS configuration. -
ACCESS_CONTROL_REQUEST_HEADERS
TheAccess-Control-Request-Headers
header name. CORS configuration. -
ACCESS_CONTROL_REQUEST_METHOD
TheAccess-Control-Request-Method
header name. CORS configuration. -
AUTHORIZATION
TheAuthorization
header name. Authentication credentials for HTTP authentication. -
COOKIE
TheCookie
header name. An HTTP cookie previously sent by the server withSet-Cookie
. -
EXPECT
TheExpect
header name. Indicates that particular server behaviors are required by the client. -
FORWARDED
TheForwarded
header name. Disclose original information of a client connecting to a web server through an HTTP proxy. -
FROM
TheFrom
header name. The email address of the user making the request. -
HOST
TheHost
header 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-Match
header 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-Since
header name. Allows a 304 Not Modified to be returned if content is unchanged. -
IF_NONE_MATCH
TheIf-None-Match
header name. Allows a 304 Not Modified to be returned if content is unchanged, based onETAG
. -
IF_RANGE
TheIf-Range
header 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-Since
header name. Only send Theresponse if The Entity
has not been modified since a specific time. -
MAX_FORWARDS
TheMax-Forwards
header 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-Authenticate
header name. Proxy authentication information. -
PROXY_AUTHORIZATION
TheProxy-Authorization
header name. Proxy authorization information. -
RANGE
TheRange
header 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 it
has 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 Response
header fieldTransfer-Encoding
can 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-Agent
header name. The user agent string of the user agent. -
VIA
TheVia
header name. Informs the server of proxies through which the request was sent. -
ACCEPT_PATCH
TheAccept-Patch
header name. Specifies which patch document formats this server supports. -
ACCEPT_RANGES
TheAccept-Ranges
header name. What partial content range types this server supports via byte serving. -
AGE
TheAge
header name. Theage The Object
has been in a proxy cache in seconds. -
ALLOW
TheAllow
header 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-Control
header name. Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds. -
CONNECTION
TheConnection
header name. Control options for Thecurrent connection and list of
hop-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-Encoding
header name. The type of encoding used on the data. -
CONTENT_LANGUAGE
TheContent-Language
header name. The natural language or languages of the intended audience for the enclosed content. -
CONTENT_LENGTH
TheContent-Length
header name. The length of the response body in octets. -
CONTENT_LOCATION
TheContent-Location
header name. An alternate location for the returned data. -
CONTENT_RANGE
TheContent-Range
header name. Where in a full body message this partial message belongs. -
CONTENT_TYPE
TheContent-Type
header name. The MIME type of this content. -
DATE
TheDate
header name. The date and time that the message was sent (in HTTP-date format as defined by RFC 7231). -
ETAG
TheEtag
header name. An identifier for a specific version of a resource, often a message digest. -
EXPIRES
TheExpires
header name. Gives the date/time after which the response is considered stale (in HTTP-date format as defined by RFC 7231) -
LAST_MODIFIED
TheLast-Modified
header name. The last modified date for the requested object (in HTTP-date format as defined by RFC 7231) -
LINK
TheLink
header name. Used to express a typed relationship with another resource, where the relation type is defined by RFC 5988. -
LOCATION
TheLocation
header name. Used in redirection, or whenRequest a new resource has been created. -
PRAGMA
ThePragma
header name. Implementation-specific fields that may have various effects anywhere along the request-response chain. -
PUBLIC_KEY_PINS
ThePublic-Key-Pins
header 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
TheServer
header name. A name for the server. -
SET_COOKIE
TheSet-Cookie
header name. An HTTP cookie set directive. -
SET_COOKIE2
TheSet-Cookie2
header name. An HTTP cookie set directive. -
STRICT_TRANSPORT_SECURITY
TheStrict-Transport-Security
header name. A HSTS Policy informing TheHTTP client
how long to cache the HTTPS only policy and whether this applies to subdomains. -
TRAILER
TheTrailer
header 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-Encoding
header name. The form of encoding used to safely transfer the entity to the user. Currently defined methods are:chunked, compress, deflate, gzip, identity
. -
TSV
TheTsv
header name. Tracking Status Value, value suggested to be sent in response to a DNT(do-not-track). -
UPGRADE
TheUpgrade
header name. Ask to upgrade to another protocol. -
VARY
TheVary
header 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
TheWarning
header name. A general warning about possible problems with the entity body. -
WWW_AUTHENTICATE
TheWWW-Authenticate
header name. Indicates the authentication scheme that should be used to access the requested entity. -
X_HELIDON_CN
TheX_HELIDON_CN
header 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-For
header name. Represents the originating client and intervening proxies when the request has passed through one or more proxies. -
X_FORWARDED_HOST
TheX_FORWARDED_HOST
header name. Represents the host specified by the originating client when the request has passed through one or more proxies. -
X_FORWARDED_PORT
TheX_FORWARDED_PORT
header name. Represents the port specified by the originating client when the request has passed through one or more proxies. -
X_FORWARDED_PREFIX
TheX_FORWARDED_PREFIX
header 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_PROTO
header 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
-