Interface HttpResponseHeader
-
public interface HttpResponseHeader
A list of common response header constants of the HTTP protocol. See http://en.wikipedia.org/wiki/List_of_HTTP_header_fields.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
AcceptRanges
What partial content range types this server supports.static java.lang.String
AccessControlAllowOrigin
Specifying which web sites can participate in cross-origin resource sharing.static java.lang.String
Age
The age the object has been in a proxy cache in seconds.static java.lang.String
Allow
Valid actions for a specified resource.static java.lang.String
CacheControl
Tells all caching mechanisms from server to client whether they may cache this object.static java.lang.String
Connection
Options that are desired for the connection.static java.lang.String
ContentDisposition
An opportunity to raise a "File Download" dialogue box for a known MIME type with binary format or suggest a filename for dynamic content.static java.lang.String
ContentEncoding
The type of encoding used on the data.static java.lang.String
ContentLanguage
The language the content is in.static java.lang.String
ContentLength
The length of the response body in octets (8-bit bytes).static java.lang.String
ContentLocation
An alternate location for the returned data.static java.lang.String
ContentMD5
A Base64-encoded binary MD5 sum of the content of the response.static java.lang.String
ContentRange
Where in a full body message this partial message belongs.static java.lang.String
ContentType
The MIME type of this content.static java.lang.String
Date
The date and time that the message was sent (in "HTTP-date" format as defined by RFC 7231).static java.lang.String
ETag
An identifier for a specific version of a resource, often a message digest.static java.lang.String
Expires
Gives the date/time after which the response is considered stale.static java.lang.String
LastModified
The last modified date for the requested object (in "HTTP-date" format as defined by RFC 7231).static java.lang.String
Link
Used to express a typed relationship with another resource, where the relation type is defined by RFC 5988.static java.lang.String
Location
Used in redirection, or when a new resource has been created.static java.lang.String
P3P
This field is supposed to set P3P policy, in the form of P3P:CP="your_compact_policy".static java.lang.String
Pragma
Implementation-specific fields that may have various effects anywhere along the request-response chain.static java.lang.String
ProxyAuthenticate
Request authentication to access the proxy.static java.lang.String
Refresh
Used in redirection, or when a new resource has been created.static java.lang.String
RetryAfter
If an entity is temporarily unavailable, this instructs the client to try again later.static java.lang.String
Server
A name for the server.static java.lang.String
SetCookie
An HTTP cookie.static java.lang.String
Status
CGI header field specifying the status of the HTTP response.static java.lang.String
StrictTransportSecurity
A HSTS Policy informing the HTTP client how long to cache the HTTPS only policy and whether this applies to subdomains.static java.lang.String
Trailer
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.static java.lang.String
TransferEncoding
The form of encoding used to safely transfer the entity to the user.static java.lang.String
Upgrade
Ask the client to upgrade to another protocol.static java.lang.String
Vary
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.static java.lang.String
Via
Informs the client of proxies through which the response was sent.static java.lang.String
Warning
A general warning about possible problems with the entity body.static java.lang.String
WWWAuthenticate
Indicates the authentication scheme that should be used to access the requested entity.
-
-
-
Field Detail
-
AccessControlAllowOrigin
static final java.lang.String AccessControlAllowOrigin
Specifying which web sites can participate in cross-origin resource sharing.Example: Access-Control-Allow-Origin: *
- See Also:
- Constant Field Values
-
AcceptRanges
static final java.lang.String AcceptRanges
What partial content range types this server supports.Example: Accept-Ranges: bytes
- See Also:
- Constant Field Values
-
Age
static final java.lang.String Age
The age the object has been in a proxy cache in seconds.Example: Age: 12
- See Also:
- Constant Field Values
-
Allow
static final java.lang.String Allow
Valid actions for a specified resource. To be used for a 405 Method not allowed.Example: Allow: GET, HEAD
- See Also:
- Constant Field Values
-
CacheControl
static final java.lang.String CacheControl
Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds.Example: Cache-Control: max-age=3600
- See Also:
- Constant Field Values
-
Connection
static final java.lang.String Connection
Options that are desired for the connection.Example: Connection: close
- See Also:
- Constant Field Values
-
ContentEncoding
static final java.lang.String ContentEncoding
The type of encoding used on the data. See HTTP compression.Example: Content-Encoding: gzip
- See Also:
- Constant Field Values
-
ContentLanguage
static final java.lang.String ContentLanguage
The language the content is in.Example: Content-Language: da
- See Also:
- Constant Field Values
-
ContentLength
static final java.lang.String ContentLength
The length of the response body in octets (8-bit bytes).Example: Content-Length: 348
- See Also:
- Constant Field Values
-
ContentLocation
static final java.lang.String ContentLocation
An alternate location for the returned data.Example: Content-Location: /index.htm
- See Also:
- Constant Field Values
-
ContentMD5
static final java.lang.String ContentMD5
A Base64-encoded binary MD5 sum of the content of the response.Example: Content-MD5: Q2hlY2sgSW50ZWdyaXR5IQ==
- See Also:
- Constant Field Values
-
ContentDisposition
static final java.lang.String ContentDisposition
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.Example: Content-Disposition: attachment; filename="fname.ext"
- See Also:
- Constant Field Values
-
ContentRange
static final java.lang.String ContentRange
Where in a full body message this partial message belongs.Example: Content-Range: bytes 21010-47021/47022
- See Also:
- Constant Field Values
-
ContentType
static final java.lang.String ContentType
The MIME type of this content.Example: Content-Type: text/html; charset=utf-8
- See Also:
- Constant Field Values
-
Date
static final java.lang.String Date
The date and time that the message was sent (in "HTTP-date" format as defined by RFC 7231).Example: Date: Tue, 15 Nov 1994 08:12:31 GMT
- See Also:
- Constant Field Values
-
ETag
static final java.lang.String ETag
An identifier for a specific version of a resource, often a message digest.Example: ETag: "737060cd8c284d8af7ad3082f209582d"
- See Also:
- Constant Field Values
-
Expires
static final java.lang.String Expires
Gives the date/time after which the response is considered stale.Example: Expires: Thu, 01 Dec 1994 16:00:00 GMT
- See Also:
- Constant Field Values
-
LastModified
static final java.lang.String LastModified
The last modified date for the requested object (in "HTTP-date" format as defined by RFC 7231).Example: Last-Modified: Tue, 15 Nov 1994 12:45:26 GMT
- See Also:
- Constant Field Values
-
Link
static final java.lang.String Link
Used to express a typed relationship with another resource, where the relation type is defined by RFC 5988.Example: Link: ; rel="alternate"
- See Also:
- Constant Field Values
-
Location
static final java.lang.String Location
Used in redirection, or when a new resource has been created.Example: Location: http://www.w3.org/pub/WWW/People.html
- See Also:
- Constant Field Values
-
P3P
static final java.lang.String P3P
This field is supposed to set P3P policy, in the form of P3P:CP="your_compact_policy". However, P3P did not take off, most browsers have never fully implemented it, a lot of websites set this field with fake policy text, that was enough to fool browsers the existence of P3P policy and grant permissions for third party cookies.Example: P3P: CP= "This is not a P3P policy! See http://www.google.com/support/accounts/bin/answer.py?hl=en&answer=151657 for more info."
- See Also:
- Constant Field Values
-
Pragma
static final java.lang.String Pragma
Implementation-specific fields that may have various effects anywhere along the request-response chain.Example: Pragma: no-cache
- See Also:
- Constant Field Values
-
ProxyAuthenticate
static final java.lang.String ProxyAuthenticate
Request authentication to access the proxy.Example: Proxy-Authenticate: Basic
- See Also:
- Constant Field Values
-
Refresh
static final java.lang.String Refresh
Used in redirection, or when a new resource has been created. This refresh redirects after 5 seconds.Example: Refresh: 5; url=http://www.w3.org/pub/WWW/People.html
- See Also:
- Constant Field Values
-
RetryAfter
static final java.lang.String RetryAfter
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 a HTTP-date.Example: Example 1: Retry-After: 120Example 2: Retry-After: Fri, 07 Nov 2014 23:59:59 GMT
- See Also:
- Constant Field Values
-
Server
static final java.lang.String Server
A name for the server.Example: Server: Apache/2.4.1 (Unix)
- See Also:
- Constant Field Values
-
SetCookie
static final java.lang.String SetCookie
An HTTP cookie.Example: Set-Cookie: UserID=JohnDoe; Max-Age=3600; Version=1
- See Also:
- Constant Field Values
-
Status
static final java.lang.String Status
CGI header field specifying the status of the HTTP response. Normal HTTP responses use a separate "Status-Line" instead, defined by RFC 7230.Example: Status: 200 OK
- See Also:
- Constant Field Values
-
StrictTransportSecurity
static final java.lang.String StrictTransportSecurity
A HSTS Policy informing the HTTP client how long to cache the HTTPS only policy and whether this applies to subdomains.Example: Strict-Transport-Security: max-age=16070400; includeSubDomains
- See Also:
- Constant Field Values
-
Trailer
static final java.lang.String Trailer
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.Example: Trailer: Max-Forwards
- See Also:
- Constant Field Values
-
TransferEncoding
static final java.lang.String TransferEncoding
The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity.Example: Transfer-Encoding: chunked
- See Also:
- Constant Field Values
-
Upgrade
static final java.lang.String Upgrade
Ask the client to upgrade to another protocol.Example: Upgrade: HTTP/2.0, SHTTP/1.3, IRC/6.9, RTA/x11
- See Also:
- Constant Field Values
-
Vary
static final java.lang.String Vary
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.Example: Vary: *
- See Also:
- Constant Field Values
-
Via
static final java.lang.String Via
Informs the client of proxies through which the response was sent.Example: Via: 1.0 fred, 1.1 example.com (Apache/1.1)
- See Also:
- Constant Field Values
-
Warning
static final java.lang.String Warning
A general warning about possible problems with the entity body.Example: Warning: 199 Miscellaneous warning
- See Also:
- Constant Field Values
-
WWWAuthenticate
static final java.lang.String WWWAuthenticate
Indicates the authentication scheme that should be used to access the requested entity.Example: WWW-Authenticate: Basic
- See Also:
- Constant Field Values
-
-