public interface Headers
HeaderFields. A HeadersFactory must be used to create an
instance of this interface.| Modifier and Type | Method and Description |
|---|---|
void |
add(HeaderName name,
String value)
Add a
HeaderField to this Headers object. |
void |
add(String name,
String value)
Add a
HeaderField to this Headers object. |
boolean |
contains(String name)
Returns true if this
Headers object contains a HeaderField with the specified name. |
List<String> |
getAccept()
Gets all the values for the Accept
HeaderFields in this Headers object where values
within in a HeaderField are separated by a comma. |
String |
getAccessControlAllowCredentials()
Gets the value from the first Access-Control-Allow-Credentials
HeaderField. |
List<String> |
getAccessControlAllowHeaders()
Gets all the values for the Access-Control-Allow-Headers
HeaderFields in this Headers object
where values within in a HeaderField are separated by a comma. |
List<String> |
getAccessControlAllowMethods()
Gets all the values for the Access-Control-Allow-Methods
HeaderFields in this Headers object
where values within in a HeaderField are separated by a comma. |
String |
getAccessControlAllowOrigin()
Gets the value from the first Access-Control-Allow-Origin
HeaderField. |
List<String> |
getAccessControlExposeHeaders()
Gets all the values for the Access-Control-Expose-Headers
HeaderFields in this Headers object
where values within in a HeaderField are separated by a comma. |
String |
getAccessControlMaxAge()
Gets the value from the first Access-Control-Max-Age
HeaderField. |
List<String> |
getAccessControlRequestHeaders()
Gets all the values for the Access-Control-Request-Headers
HeaderFields in this Headers object
where values within in a HeaderField are separated by a comma. |
String |
getAccessControlRequestMethod()
Gets the value from the first Access-Control-Request-Method
HeaderField. |
String |
getAuthorization()
Gets the value from the first Authorization
HeaderField. |
List<String> |
getCacheControl()
Gets all the values for the Cache-Control
HeaderFields in this Headers object where values
within in a HeaderField are separated by a comma. |
Charset |
getCharset()
Gets the
Charset from the first Content-Type HeaderField. |
List<String> |
getConnection()
Gets all the values for the Connection
HeaderFields in this Headers object where values
within in a HeaderField are separated by a comma. |
String |
getContentDisposition()
Gets the value from the first Content-Disposition
HeaderField. |
List<String> |
getContentEncoding()
Gets all the values for the Content-Encoding
HeaderFields in this Headers object where values
within in a HeaderField are separated by a comma. |
long |
getContentLength()
Gets the length, in bytes, of the associated message body.
|
String |
getContentLocation()
Gets the value from the first Content-Location
HeaderField. |
MediaType |
getContentType()
Gets a
MediaType representing the value fo the first Content-Type HeaderField. |
Map<String,String[]> |
getCookies()
Gets a map of HTTP cookies extracted from any Cookie
HeaderFields. |
Instant |
getDate()
Gets the value from the first Date
HeaderField. |
String |
getFirstCookieValue(String name)
Gets the value of the first cookie with the specified name
|
String |
getFirstValue(String name)
Gets the first value from the first
HeaderField with the specified name where values within a
HeaderField value are separated by a comma, excluding commas in a quoted string or comment blocks. |
List<HeaderField> |
getHeaderFields()
|
String |
getHost()
Gets the value from the first Host
HeaderField. |
Instant |
getLastModified()
Gets the value from the first Last-Modified
HeaderField. |
String |
getLastValue(String name)
Gets the last value for the last
HeaderField with the specified name where values within a
HeaderField value are separated by a comma, excluding commas in a quoted string or comment blocks. |
List<Locale> |
getLocales()
Gets the locales in order of preference specified in the Accept-Language header.
|
String |
getLocation()
Gets the value from the first Location
HeaderField. |
Set<HeaderName> |
getModifiedHeaderNames() |
String |
getOrigin()
Gets the value from the first Origin
HeaderField. |
String |
getProxyAuthorization()
Gets the value from the first Proxy-Authorization
HeaderField. |
List<String> |
getProxyConnection()
Gets all the values for the Proxy-Connection
HeaderFields in this Headers object where values
within in a HeaderField are separated by a comma. |
Set<HeaderName> |
getRemovedHeaderNames() |
String |
getSecWebSocketAccept()
Gets the value from the first Sec-WebSocket-Accept
HeaderField. |
List<String> |
getSecWebSocketExtensions()
Gets all the values for the Sec-WebSocket-Extensions
HeaderFields in this Headers object where
values within in a HeaderField are separated by a comma. |
String |
getSecWebSocketKey()
Gets the value from the first Sec-WebSocket-Key
HeaderField. |
List<String> |
getSecWebSocketProtocol()
Gets all the values for the Sec-WebSocket-Protocol
HeaderFields in this Headers object where
values within in a HeaderField are separated by a comma. |
String |
getSecWebSocketVersion()
Gets the first value from the first Sec-WebSocket-Version
HeaderField. |
String |
getServer()
Gets the value from the first Server
HeaderField. |
List<String> |
getSetCookie()
Gets all the values from the Set-Cookie
HeaderFields in this Headers object. |
List<String> |
getTransferEncoding()
Gets all the values from the Transfer-Encoding
HeaderFields in this Headers object. |
List<String> |
getUpgrade()
Gets all the values for the Upgrade
HeaderFields in this Headers object where values
within in a HeaderField are separated by a comma. |
List<String> |
getURIs()
Returns all URI headers, including any variants defined via the vary parameter.
|
List<String> |
getValues(String name)
Gets the values of all the
HeaderFields with the specified name. |
List<String> |
getVary()
Gets all the values for the Vary
HeaderFields in this Headers object where values
within in a HeaderField are separated by a comma. |
List<String> |
getXForwardedFor()
Gets all the values for the X-Forwarded-For
HeaderFields in this Headers object where values
within in a HeaderField are separated by a comma. |
List<String> |
getXForwardedHost()
Gets all the values for the X-Forwarded-Host
HeaderFields in this Headers object where values
within in a HeaderField are separated by a comma. |
String |
getXForwardedProto()
Gets the first value from the first X-Forwarded-Proto
HeaderField. |
String |
getXFrameOptions()
Gets the value from the first X-Frame-Options
HeaderField. |
boolean |
isChunked()
Helper method to determine if this
Headers object contains header fields that indicate the related HTTP
message body uses a chunked Transfer-Encoding. |
boolean |
removeFields(String name)
Removes all
HeaderFields with the specified name. |
void |
setAccept(List<String> values)
Replaces all the values of the Accept
HeaderFields in this Headers object. |
void |
setAccessControlAllowCredentials(String value)
Sets the value for the first Access-Control-Allow-Credentials
HeaderField. |
void |
setAccessControlAllowHeaders(List<String> values)
Replaces all the values of the Access-Control-Allow-Headers
HeaderFields in this Headers
object. |
void |
setAccessControlAllowMethods(List<String> values)
Replaces all the values of the Access-Control-Allow-Methods
HeaderFields in this Headers
object. |
void |
setAccessControlAllowOrigin(String value)
Sets the value for the first Access-Control-Allow-Origin
HeaderField. |
void |
setAccessControlExposeHeaders(List<String> values)
Replaces all the values of the Access-Control-Expose-Headers
HeaderFields in this Headers object. |
void |
setAccessControlMaxAge(String value)
Sets the value for the first Access-Control-Max-Age
HeaderField. |
void |
setAccessControlRequestHeaders(List<String> values)
Replaces all the values of the Access-Control-Request-Headers
HeaderFields in this Headers
object. |
void |
setAccessControlRequestMethod(String value)
Sets the value for the first Access-Control-Request-Method
HeaderField. |
void |
setAuthorization(String value)
Sets the value for the first Authorization
HeaderField. |
void |
setCacheControl(List<String> values)
Replaces all the values of the Cache-Control
HeaderFields in this Headers object. |
void |
setConnection(List<String> values)
Replaces all the values for the Connection
HeaderFields in this Headers object. |
void |
setContentDisposition(String value)
Sets the value for the first Content-Disposition
HeaderField. |
void |
setContentEncoding(List<String> values)
Replaces all the values for the Content-Encoding
HeaderFields in this Headers object. |
void |
setContentLength(long value)
Sets the value for the first Content-Length
HeaderField. |
void |
setContentLocation(String value)
Sets the value for the first Content-Location
HeaderField. |
void |
setContentType(MediaType value)
Sets the value for the first Content-Type
HeaderField. |
void |
setContentType(String value)
Sets the value for the first Content-Type
HeaderField. |
void |
setCookies(Map<String,String[]> cookies)
Replaces the cookies in this
Headers object with the specified cookies. |
void |
setDate(Instant value)
Sets the value for the first Date
HeaderField. |
void |
setFirstValue(String name,
String value)
Sets the value of the first
HeaderField with the specified name. |
void |
setHost(String value)
Sets the value for the first Host
HeaderField. |
void |
setLastModified(Instant value)
Sets the value for the first Last-Modified
HeaderField. |
void |
setLastValue(String name,
String value)
Sets the value of the last
HeaderField with the specified name. |
void |
setLocation(String value)
Sets the value for the first Location
HeaderField. |
void |
setOrigin(String value)
Sets the value for the first Origin
HeaderField. |
void |
setProxyAuthorization(String value)
Sets the value for the first Proxy-Authorization
HeaderField. |
void |
setProxyConnection(List<String> values)
Replaces all the values for the Proxy-Connection
HeaderFields in this Headers object. |
void |
setSecWebSocketAccept(String value)
Sets the value for the first Sec-WebSocket-Accept
HeaderField. |
void |
setSecWebSocketExtensions(List<String> values)
Replaces all the values of the Sec-WebSocket-Extensions
HeaderFields in this Headers object. |
void |
setSecWebSocketKey(String value)
Sets the value for the first Sec-WebSocket-Key
HeaderField. |
void |
setSecWebSocketProtocol(List<String> values)
Replaces all the values of the Sec-WebSocket-Protocol
HeaderFields in this Headers object. |
void |
setSecWebSocketVersion(String value)
Sets the value for the first Sec-WebSocket-Version
HeaderField. |
void |
setServer(String value)
Sets the value for the first Server
HeaderField. |
void |
setSetCookie(List<String> values)
Replaces all the values of the Set-Cookie
HeaderFields in this Headers object. |
void |
setTransferEncoding(List<String> values)
Replaces all the values of the Transfer-Encoding
HeaderFields in this Headers object. |
void |
setUpgrade(List<String> values)
Replaces all the values for the Upgrade
HeaderFields in this Headers object. |
void |
setURIs(List<String> values)
Replaces all the values of the URI
HeaderFields in this Headers object. |
void |
setValues(String name,
List<String> values)
Replaces all the values of the
HeaderFields with the specified name. |
void |
setVary(List<String> values)
Replaces all the values for the Vary
HeaderFields in this Headers object. |
void |
setXForwardedFor(List<String> values)
Replaces all the values for the X-Forwarded-For
HeaderFields in this Headers object. |
void |
setXForwardedHost(List<String> values)
Replaces all the values for the X-Forwarded-Host
HeaderFields in this Headers object. |
void |
setXForwardedProto(String value)
Sets the value for the first X-Forwarded-Proto
HeaderField. |
void |
setXFrameOptions(String value)
Sets the value for the first X-Frame-Options
HeaderField. |
List<HeaderField> getHeaderFields()
List containing all the HeaderFields in this Headers object.
Note: modifications to the HeaderFields via HeaderField.setValue(String) will not result in the
associated HeaderName being present in the Set returned by getModifiedHeaderNames().
List containing all the HeaderFields in this Headers object.boolean contains(String name)
Headers object contains a HeaderField with the specified name.
Note: this method is more efficient than getValues(name).isEmpty() since a temporary collection is not
built to perform the query.name - the name of the HeaderField to search for.Headers object contains a HeaderField with the specified name.String getFirstValue(String name)
HeaderField with the specified name where values within a
HeaderField value are separated by a comma, excluding commas in a quoted string or comment blocks.name - the name of the HeaderField to look up.null if no HeaderField
exists with the specified name.String getLastValue(String name)
HeaderField with the specified name where values within a
HeaderField value are separated by a comma, excluding commas in a quoted string or comment blocks.name - the name of the HeaderField to look up.null if no HeaderField
exists with the specified name.List<String> getValues(String name)
HeaderFields with the specified name. Like getFirstValue(String) and
getLastValue(String), this method splits HeaderField values separated by a comma,
excluding commas in a quoted string or comment blocks.name - the name of the HeaderField to look up.HeaderFields with the specified name. An empty List
if no HeaderField with specified name exists.void setFirstValue(String name, String value)
HeaderField with the specified name. If no HeaderField with the
specified name exists, a new HeaderField is added to the end of this Headers object.name - the name of the HeaderField to modify.value - the valuevoid setLastValue(String name, String value)
HeaderField with the specified name. If no HeaderField with the
specified name exists, a new HeaderField is added to the end of this Headers object.name - the name of the HeaderField to modify.value - the valuevoid setValues(String name, List<String> values)
HeaderFields with the specified name. Values will be combined
into a single HeaderField value, where individual elements in the specified List will be
separated by a comma. An empty values List will remove all HeaderFields with the specified name.name - the name of the HeaderFieldvalues - the values to be concatenatedSet<HeaderName> getRemovedHeaderNames()
HeaderField names that have been removed from this Headers object after
it was created.Set<HeaderName> getModifiedHeaderNames()
HeaderField names that have been added to or modified in this Headers object
after it was created.void add(HeaderName name, String value)
HeaderField to this Headers object.name - the HeaderName for a HeaderField to add.value - the value for a HeaderField to add.void add(String name, String value)
HeaderField to this Headers object.name - the name for a HeaderField to add.value - the value for a HeaderField to add.boolean removeFields(String name)
HeaderFields with the specified name.name - the name of the header fields to be removedHeaderFields were removedList<String> getAccept()
HeaderFields in this Headers object where values
within in a HeaderField are separated by a comma.HeaderFields. An empty List if the header field is not
present.void setAccept(List<String> values)
HeaderFields in this Headers object. Values will be
combined into a single HeaderField value, where individual elements in the specified List will
be separated by a comma. An empty values List will remove all HeaderFields.values - the values of the Accept HeaderFields.String getAccessControlAllowCredentials()
HeaderField.HeaderField or null if no
Access-Control-Allow-Credentials HeaderField is present.void setAccessControlAllowCredentials(String value)
HeaderField. If no
Access-Control-Allow-Credentials HeaderField exists, a new HeaderField is added.value - the value for the first Access-Control-Allow-Credentials HeaderField.List<String> getAccessControlAllowHeaders()
HeaderFields in this Headers object
where values within in a HeaderField are separated by a comma.HeaderFields.
An empty List if the header field is not present.void setAccessControlAllowHeaders(List<String> values)
HeaderFields in this Headers
object. Values will be combined into a single HeaderField value, where individual elements in the
specified List will be separated by a comma. An empty values List will remove all
HeaderFields.values - the values of the Access-Control-Allow-Headers HeaderFields.List<String> getAccessControlAllowMethods()
HeaderFields in this Headers object
where values within in a HeaderField are separated by a comma.HeaderFields.
An empty List if the header field is not present.void setAccessControlAllowMethods(List<String> values)
HeaderFields in this Headers
object. Values will be combined into a single HeaderField value, where individual elements in the
specified List will be separated by a comma. An empty values List will remove all
HeaderFields.values - the values of the Access-Control-Allow-Methods HeaderFields.String getAccessControlAllowOrigin()
HeaderField.HeaderField or null if no
Access-Control-Allow-Origin HeaderField is present.void setAccessControlAllowOrigin(String value)
HeaderField. If no
Access-Control-Allow-Origin HeaderField exists, a new HeaderField is added.value - the value for the first Access-Control-Allow-Origin HeaderField.List<String> getAccessControlExposeHeaders()
HeaderFields in this Headers object
where values within in a HeaderField are separated by a comma.HeaderFields.
An empty List if the header field is not present.void setAccessControlExposeHeaders(List<String> values)
HeaderFields in this Headers object.
Values will be combined into a single HeaderField value, where individual elements in the specified
List will be separated by a comma. An empty values List will remove all HeaderFields.values - the values of the Access-Control-Expose-Headers HeaderFields.String getAccessControlMaxAge()
HeaderField.HeaderField or null if no
Access-Control-Max-Age HeaderField is present.void setAccessControlMaxAge(String value)
HeaderField. If no
Access-Control-Max-Age HeaderField exists, a new HeaderField is added.value - the value for the first Access-Control-Max-Age HeaderField.List<String> getAccessControlRequestHeaders()
HeaderFields in this Headers object
where values within in a HeaderField are separated by a comma.HeaderFields.
An empty List if the header field is not present.void setAccessControlRequestHeaders(List<String> values)
HeaderFields in this Headers
object. Values will be combined into a single HeaderField value, where individual elements in the
specified List will be separated by a comma. An empty values List will remove all
HeaderFields.values - the values of the Access-Control-Request-Headers HeaderFields.String getAccessControlRequestMethod()
HeaderField.HeaderField or null if no
Access-Control-Request-Method HeaderField is present.void setAccessControlRequestMethod(String value)
HeaderField. If no
Access-Control-Request-Method HeaderField exists, a new HeaderField is added.value - the value for the first Access-Control-Request-Method HeaderField.String getAuthorization()
HeaderField.HeaderField or null if no
Authorization HeaderField is present.void setAuthorization(String value)
HeaderField. If no Authorization HeaderField exists,
a new HeaderField is added.value - the value for the first Authorization HeaderField.List<String> getCacheControl()
HeaderFields in this Headers object where values
within in a HeaderField are separated by a comma.HeaderFields. An empty List if
the header field is not present.void setCacheControl(List<String> values)
HeaderFields in this Headers object.
Values will be combined into a single HeaderField value, where individual elements in the specified
List will be separated by a comma. An empty values List will remove all HeaderFields.values - the values of the Cache-Control HeaderFields.Charset getCharset()
Charset from the first Content-Type HeaderField.Charset from the first Content-Type HeaderField, null if the
Content-Type HeaderField is not present or the charset parameter is not specified in the
Content-Type value.IllegalArgumentException - if the Content-Type value is not a valid MediaTypeIllegalCharsetNameException - if the charset parameter on the MediaType is invalidList<String> getConnection()
HeaderFields in this Headers object where values
within in a HeaderField are separated by a comma.HeaderFields. An empty List if the header field is
not present.void setConnection(List<String> values)
HeaderFields in this Headers object. Values will be
combined into a single HeaderField value, where individual elements in the specified List will
be separated by a comma. An empty values List will remove all HeaderFields.values - the values for the Connection HeaderFields in this Headers object.List<String> getContentEncoding()
HeaderFields in this Headers object where values
within in a HeaderField are separated by a comma.HeaderFields. An empty List if the header
field is not present.void setContentEncoding(List<String> values)
HeaderFields in this Headers object. Values
will be combined into a single HeaderField value, where individual elements in the specified
List will be separated by a comma. An empty values List will remove all HeaderFields.values - the values for the Content-Encoding HeaderFields in this Headers object.String getContentDisposition()
HeaderField.HeaderField or null if no Content-Disposition
HeaderField is present.void setContentDisposition(String value)
HeaderField. If no Content-Disposition
HeaderField exists, a new HeaderField is added.value - the value for the first Content-Disposition HeaderFieldlong getContentLength()
void setContentLength(long value)
HeaderField. If no Content-Length HeaderField
exists, a new HeaderField is added.value - the value for the first Content-Length HeaderField.String getContentLocation()
HeaderField.HeaderField or null if no Content-Location
HeaderField is present.void setContentLocation(String value)
HeaderField. If no Content-Location HeaderField
exists, a new HeaderField is added.value - the value for the first Content-Location HeaderFieldMediaType getContentType()
MediaType representing the value fo the first Content-Type HeaderField.MediaType representing the value of the Content-Type HeaderField,
or null if the Content-Type HeaderField does not exist.IllegalArgumentException - if the Content-Type value is not a valid MediaTypevoid setContentType(MediaType value)
HeaderField. If no Content-Type HeaderField
exists, a new HeaderField is added.value - the value for the first Content-Type HeaderField.void setContentType(String value)
HeaderField. If no Content-Type HeaderField
exists, a new HeaderField is added.value - the value for the first Content-Type HeaderField.Map<String,String[]> getCookies()
HeaderFields.HeaderFields. An empty Map if there are no
Cookie HeaderField.void setCookies(Map<String,String[]> cookies)
Headers object with the specified cookies.cookies - the cookies to replace on this Headers object. An empty value will remove all cookies
from this Headers object.NullPointerException - if cookies is null.String getFirstCookieValue(String name)
name - the name of the cookie to look up.null if no cookie exists in this Headers object with the
specified name.Instant getDate()
HeaderField.HeaderField or null if no Date HeaderField is
present.void setDate(Instant value)
HeaderField. If no Date HeaderField exists,
a new HeaderField is added.value - the value for the first Date HeaderFieldString getHost()
HeaderField.HeaderField or null if no Host HeaderField is present.void setHost(String value)
HeaderField. If no Host HeaderField exists,
a new HeaderField is added.value - the value for the first Host HeaderField.Instant getLastModified()
HeaderField. A Last-Modified HeaderField is expected
to only contain a single value.HeaderField or null if no Last-Modified HeaderField is
present.void setLastModified(Instant value)
HeaderField. If no Last-Modified HeaderField exists,
a new HeaderField is added.value - the value for the first Last-Modified HeaderField.String getLocation()
HeaderField.HeaderField or null if no Location HeaderField is
present.void setLocation(String value)
HeaderField. If no Location HeaderField exists,
a new HeaderField is added.value - the value for the first Location HeaderField.String getOrigin()
HeaderField.HeaderField or null if no Origin HeaderField is
present.void setOrigin(String value)
HeaderField. If no Origin HeaderField exists,
a new HeaderField is added.value - the value for the first Origin HeaderField.String getProxyAuthorization()
HeaderField.HeaderField or null if no Origin
HeaderField is present.void setProxyAuthorization(String value)
HeaderField. If no Proxy-Authorization
HeaderField exists, a new HeaderField is added.value - the value for the first Proxy-Authorization HeaderField.List<String> getProxyConnection()
HeaderFields in this Headers object where values
within in a HeaderField are separated by a comma.HeaderFields. An empty List if the header
field is not present.void setProxyConnection(List<String> values)
HeaderFields in this Headers object. Values
will be combined into a single HeaderField value, where individual elements in the specified
List will be separated by a comma. An empty values List will remove all HeaderFields.values - the values for the Proxy-Connection HeaderFields in this Headers object.String getSecWebSocketKey()
HeaderField.HeaderField or null if no Sec-WebSocket-Key
HeaderField is present.void setSecWebSocketKey(String value)
HeaderField. If no Sec-WebSocket-Key HeaderField
exists, a new HeaderField is added.value - the value for the first Sec-WebSocket-Key HeaderField.List<String> getSecWebSocketExtensions()
HeaderFields in this Headers object where
values within in a HeaderField are separated by a comma.HeaderFields. An empty List if the
header field is not present.void setSecWebSocketExtensions(List<String> values)
HeaderFields in this Headers object.
Values will be combined into a single HeaderField value, where individual elements in the specified
List will be separated by a comma. An empty values List will remove all HeaderFields.values - the values of the Sec-WebSocket-Extensions HeaderFields.String getSecWebSocketAccept()
HeaderField.HeaderField or null if no Sec-WebSocket-Accept
HeaderField is present.void setSecWebSocketAccept(String value)
HeaderField. If no Sec-WebSocket-Accept
HeaderField exists, a new HeaderField is added.value - the value for the first Sec-WebSocket-Accept HeaderField.List<String> getSecWebSocketProtocol()
HeaderFields in this Headers object where
values within in a HeaderField are separated by a comma.HeaderFields. An empty List if the header
field is not present.void setSecWebSocketProtocol(List<String> values)
HeaderFields in this Headers object. Values
will be combined into a single HeaderField value, where individual elements in the specified
List will be separated by a comma. An empty values List will remove all HeaderFields.values - the values of the Sec-WebSocket-Protocol HeaderFields.String getSecWebSocketVersion()
HeaderField.HeaderField or null if no
Sec-WebSocket-Version HeaderField is present.void setSecWebSocketVersion(String value)
HeaderField. If no Sec-WebSocket-Version
HeaderField exists, a new HeaderField is added.value - the value for the first Sec-WebSocket-Version HeaderField.String getServer()
HeaderField.HeaderField or null if no Server HeaderField is
present.void setServer(String value)
HeaderField. If no Server HeaderField exists,
a new HeaderField is added.value - the value for the first Server HeaderField.List<String> getSetCookie()
HeaderFields in this Headers object.HeaderFields in this Headers object. An empty
List if the header field is not present.void setSetCookie(List<String> values)
HeaderFields in this Headers object. Individual values
in the specified values List will be added as distinct Set-Cookie HeaderFields. An empty list
will remove any existing Set-Cookie HeaderFields.values - the values of the Set-Cookie HeaderFields.List<String> getTransferEncoding()
HeaderFields in this Headers object.HeaderFields in this Headers object. An empty
List if the header field is not present.void setTransferEncoding(List<String> values)
HeaderFields in this Headers object. Values will
be combined into a single HeaderField value, where individual elements in the specified List
will be separated by a comma. An empty values List will remove all HeaderFields.values - the values of the Transfer-Encoding HeaderFields.boolean isChunked()
Headers object contains header fields that indicate the related HTTP
message body uses a chunked Transfer-Encoding.List<String> getURIs()
HeaderFields are returned verbatim.List if the header field is not
present.void setURIs(List<String> values)
HeaderFields in this Headers object. Individual values
in the specified values List will be added as distinct URI HeaderFields. An empty list
will remove any existing URI HeaderFields.values - the values of the URI HeaderFields.List<String> getUpgrade()
HeaderFields in this Headers object where values
within in a HeaderField are separated by a comma.HeaderFields. An empty List if the header field is not
present.void setUpgrade(List<String> values)
HeaderFields in this Headers object. Values will be
combined into a single HeaderField value, where individual elements in the specified List will
be separated by a comma. An empty values List will remove all HeaderFields.values - the values for the Upgrade HeaderFields in this Headers object.List<String> getVary()
HeaderFields in this Headers object where values
within in a HeaderField are separated by a comma.HeaderFields. An empty List if the header field is not
present.void setVary(List<String> values)
HeaderFields in this Headers object. Values will be
combined into a single HeaderField value, where individual elements in the specified List will
be separated by a comma. An empty values List will remove all HeaderFields.values - the values for the Vary HeaderFields in this Headers object.List<String> getXForwardedFor()
HeaderFields in this Headers object where values
within in a HeaderField are separated by a comma.HeaderFields. An empty List if the header field
is not present.void setXForwardedFor(List<String> values)
HeaderFields in this Headers object. Values will
be combined into a single HeaderField value, where individual elements in the specified List
will be separated by a comma. An empty values List will remove all HeaderFields.values - the values for the X-Forwarded-For HeaderFields in this Headers object.List<String> getXForwardedHost()
HeaderFields in this Headers object where values
within in a HeaderField are separated by a comma.HeaderFields. An empty List if the header field
is not present.void setXForwardedHost(List<String> values)
HeaderFields in this Headers object. Values will
be combined into a single HeaderField value, where individual elements in the specified List
will be separated by a comma. An empty values List will remove all HeaderFields.values - the values for the X-Forwarded-Host HeaderFields in this Headers object.String getXForwardedProto()
HeaderField.HeaderField or null if no
X-Forwarded-Proto HeaderField is present.void setXForwardedProto(String value)
HeaderField. If no X-Forwarded-Proto HeaderField
exists, a new HeaderField is added.value - the value for the first X-Forwarded-Proto HeaderField.String getXFrameOptions()
HeaderField.HeaderField or null if no X-Frame-Options
HeaderField is present.void setXFrameOptions(String value)
HeaderField. If no X-Frame-Options HeaderField
exists, a new HeaderField is added.value - the value for the first X-Frame-Options HeaderField.List<Locale> getLocales()
Copyright 2023 Ping Identity Corp. All rights reserved.