public interface HttpResponseMetaData extends HttpMetaData
HttpMetaData.| Modifier and Type | Method and Description |
|---|---|
default HttpResponseMetaData |
addCookie(CharSequence name,
CharSequence value)
|
default HttpResponseMetaData |
addCookie(HttpCookiePair cookie)
Adds a cookie.
|
default HttpResponseMetaData |
addHeader(CharSequence name,
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(CharSequence name,
CharSequence value)
|
default HttpResponseMetaData |
addSetCookie(HttpSetCookie cookie)
Adds a set-cookie.
|
default HttpResponseMetaData |
setHeader(CharSequence name,
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, versionHttpResponseStatus status()
StreamingHttpResponse.HttpResponseStatus of this StreamingHttpResponseHttpResponseMetaData status(HttpResponseStatus status)
StreamingHttpResponse.status - The HttpResponseStatus to set.this.HttpResponseMetaData version(HttpProtocolVersion version)
HttpMetaDataHttpMetaData.version in interface HttpMetaDataversion - the protocol version to set.this.default HttpResponseMetaData addHeader(CharSequence name, CharSequence value)
HttpMetaDataname and value.addHeader in interface HttpMetaDataname - the name of the header.value - the value of the header.this.default HttpResponseMetaData addHeaders(HttpHeaders headers)
HttpMetaDataheaders object.addHeaders in interface HttpMetaDataheaders - the headers to add.this.default HttpResponseMetaData setHeader(CharSequence name, CharSequence value)
HttpMetaDataname and value. Any existing headers with the same name are
overwritten.setHeader in interface HttpMetaDataname - the name of the header.value - the value of the header.this.default HttpResponseMetaData setHeaders(HttpHeaders headers)
HttpMetaDataheaders object.setHeaders in interface HttpMetaDataheaders - the headers object which contains new values.this.default HttpResponseMetaData addCookie(HttpCookiePair cookie)
HttpMetaData
This may result in multiple HttpCookiePairs with same name.
addCookie in interface HttpMetaDatacookie - the cookie to add.this.default HttpResponseMetaData addCookie(CharSequence name, CharSequence value)
HttpMetaDataname and
value.
This may result in multiple HttpSetCookies 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 HttpMetaDataname - the name of the cookie.value - the value of the cookie.this.default HttpResponseMetaData addSetCookie(HttpSetCookie cookie)
HttpMetaData
This may result in multiple HttpSetCookies with same name.
addSetCookie in interface HttpMetaDatacookie - the cookie to add.this.default HttpResponseMetaData addSetCookie(CharSequence name, CharSequence value)
HttpMetaDataname
and value.
This may result in multiple HttpSetCookies 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 HttpMetaDataname - the name of the cookie.value - the value of the cookie.this.