public interface HttpResponseMetaData extends HttpMetaData
HttpMetaData
.Modifier and Type | Method and Description |
---|---|
default HttpResponseMetaData |
addCookie(java.lang.CharSequence name,
java.lang.CharSequence value)
|
default HttpResponseMetaData |
addCookie(HttpCookiePair cookie)
Adds a cookie.
|
default HttpResponseMetaData |
addHeader(java.lang.CharSequence name,
java.lang.CharSequence value)
Adds a new header with the specified
name and value . |
default HttpResponseMetaData |
addHeaders(HttpHeaders headers)
Adds all header names and values of
headers object. |
default HttpResponseMetaData |
addSetCookie(java.lang.CharSequence name,
java.lang.CharSequence value)
|
default HttpResponseMetaData |
addSetCookie(HttpSetCookie cookie)
Adds a set-cookie.
|
default HttpResponseMetaData |
setHeader(java.lang.CharSequence name,
java.lang.CharSequence value)
Sets a header with the specified
name and value . |
default HttpResponseMetaData |
setHeaders(HttpHeaders headers)
Clears the current header entries and copies all header entries of the specified
headers object. |
HttpResponseStatus |
status()
Returns the status of this
StreamingHttpResponse . |
HttpResponseMetaData |
status(HttpResponseStatus status)
Set the status of this
StreamingHttpResponse . |
HttpResponseMetaData |
version(HttpProtocolVersion version)
Set the protocol version of this
HttpMetaData . |
headers, toString, toString, version
HttpResponseStatus status()
StreamingHttpResponse
.HttpResponseStatus
of this StreamingHttpResponse
HttpResponseMetaData status(HttpResponseStatus status)
StreamingHttpResponse
.status
- The HttpResponseStatus
to set.this
.HttpResponseMetaData version(HttpProtocolVersion version)
HttpMetaData
HttpMetaData
.version
in interface HttpMetaData
version
- the protocol version to set.this
.default HttpResponseMetaData addHeader(java.lang.CharSequence name, java.lang.CharSequence value)
HttpMetaData
name
and value
.addHeader
in interface HttpMetaData
name
- the name of the header.value
- the value of the header.this
.default HttpResponseMetaData addHeaders(HttpHeaders headers)
HttpMetaData
headers
object.addHeaders
in interface HttpMetaData
headers
- the headers to add.this
.default HttpResponseMetaData setHeader(java.lang.CharSequence name, java.lang.CharSequence value)
HttpMetaData
name
and value
. Any existing headers with the same name are
overwritten.setHeader
in interface HttpMetaData
name
- the name of the header.value
- the value of the header.this
.default HttpResponseMetaData setHeaders(HttpHeaders headers)
HttpMetaData
headers
object.setHeaders
in interface HttpMetaData
headers
- the headers object which contains new values.this
.default HttpResponseMetaData addCookie(HttpCookiePair cookie)
HttpMetaData
This may result in multiple HttpCookiePair
s with same name.
addCookie
in interface HttpMetaData
cookie
- the cookie to add.this
.default HttpResponseMetaData addCookie(java.lang.CharSequence name, java.lang.CharSequence value)
HttpMetaData
name
and
value
.
This may result in multiple HttpSetCookie
s with same name. Added cookie will not be wrapped, not secure,
and not HTTP-only, with no path, domain, expire date and maximum age.
addCookie
in interface HttpMetaData
name
- the name of the cookie.value
- the value of the cookie.this
.default HttpResponseMetaData addSetCookie(HttpSetCookie cookie)
HttpMetaData
This may result in multiple HttpSetCookie
s with same name.
addSetCookie
in interface HttpMetaData
cookie
- the cookie to add.this
.default HttpResponseMetaData addSetCookie(java.lang.CharSequence name, java.lang.CharSequence value)
HttpMetaData
name
and value
.
This may result in multiple HttpSetCookie
s with same name. Added cookie will not be wrapped, not secure,
and not HTTP-only, with no path, domain, expire date and maximum age.
addSetCookie
in interface HttpMetaData
name
- the name of the cookie.value
- the value of the cookie.this
.