FullHttpResponse.
| Modifier and Type | Field and Description |
|---|---|
| private final ByteBuf | |
| private int | hash
Used to cache the value of the hash code and avoid |
| private final HttpHeaders |
| Access | Constructor and Description |
|---|---|
| public | DefaultFullHttpResponse(HttpVersion version, HttpResponseStatus status)
Create an empty HTTP response with the given HTTP version and status. |
| public | DefaultFullHttpResponse(HttpVersion version, HttpResponseStatus status, ByteBuf content)
Create an HTTP response with the given HTTP version, status, and contents. |
| public | DefaultFullHttpResponse(HttpVersion version, HttpResponseStatus status, boolean validateHeaders)
Deprecated
Prefer the
Create an empty HTTP response with the given HTTP version, status, and optional header validation.
DefaultFullHttpResponse(HttpVersion, HttpResponseStatus, ByteBuf,
HttpHeadersFactory, HttpHeadersFactory) constructor instead.
|
| public | DefaultFullHttpResponse(HttpVersion version, HttpResponseStatus status, boolean validateHeaders, boolean singleFieldHeaders)
Deprecated
Prefer the
Create an empty HTTP response with the given HTTP version, status, optional header validation,
and optional header combining.
DefaultFullHttpResponse(HttpVersion, HttpResponseStatus, ByteBuf,
HttpHeadersFactory, HttpHeadersFactory) constructor instead.
|
| public | DefaultFullHttpResponse(HttpVersion version, HttpResponseStatus status, ByteBuf content, boolean validateHeaders)
Deprecated
Prefer the
Create an HTTP response with the given HTTP version, status, contents, and optional header validation.
DefaultFullHttpResponse(HttpVersion, HttpResponseStatus, ByteBuf,
HttpHeadersFactory, HttpHeadersFactory) constructor instead.
|
| public | DefaultFullHttpResponse(HttpVersion version, HttpResponseStatus status, ByteBuf content, boolean validateHeaders, boolean singleFieldHeaders)
Deprecated
Prefer the
Create an HTTP response with the given HTTP version, status, contents, optional header validation,
and optional header combining.
DefaultFullHttpResponse(HttpVersion, HttpResponseStatus, ByteBuf,
HttpHeadersFactory, HttpHeadersFactory) constructor instead.
|
| public | DefaultFullHttpResponse(HttpVersion version, HttpResponseStatus status, ByteBuf content, HttpHeadersFactory headersFactory, HttpHeadersFactory trailersFactory)
Create an HTTP response with the given HTTP version, status, contents, and with headers and trailers created by the given header factories. |
| public | DefaultFullHttpResponse(HttpVersion version, HttpResponseStatus status, ByteBuf content, HttpHeaders headers, HttpHeaders trailingHeaders)
Create an HTTP response with the given HTTP version, status, contents, headers and trailers. |
| content | back to summary |
|---|---|
| private final ByteBuf content | |
| hash | back to summary |
|---|---|
| private int hash Used to cache the value of the hash code and avoid | |
| trailingHeaders | back to summary |
|---|---|
| private final HttpHeaders trailingHeaders | |
| DefaultFullHttpResponse | back to summary |
|---|---|
| public DefaultFullHttpResponse(HttpVersion version, HttpResponseStatus status) Create an empty HTTP response with the given HTTP version and status. | |
| DefaultFullHttpResponse | back to summary |
|---|---|
| public DefaultFullHttpResponse(HttpVersion version, HttpResponseStatus status, ByteBuf content) Create an HTTP response with the given HTTP version, status, and contents. | |
| DefaultFullHttpResponse | back to summary |
|---|---|
| public DefaultFullHttpResponse(HttpVersion version, HttpResponseStatus status, boolean validateHeaders)
Deprecated Prefer the Create an empty HTTP response with the given HTTP version, status, and optional header validation.
| |
| DefaultFullHttpResponse | back to summary |
|---|---|
| public DefaultFullHttpResponse(HttpVersion version, HttpResponseStatus status, boolean validateHeaders, boolean singleFieldHeaders)
Deprecated Prefer the Create an empty HTTP response with the given HTTP version, status, optional header validation, and optional header combining.
| |
| DefaultFullHttpResponse | back to summary |
|---|---|
| public DefaultFullHttpResponse(HttpVersion version, HttpResponseStatus status, ByteBuf content, boolean validateHeaders)
Deprecated Prefer the Create an HTTP response with the given HTTP version, status, contents, and optional header validation.
| |
| DefaultFullHttpResponse | back to summary |
|---|---|
| public DefaultFullHttpResponse(HttpVersion version, HttpResponseStatus status, ByteBuf content, boolean validateHeaders, boolean singleFieldHeaders)
Deprecated Prefer the Create an HTTP response with the given HTTP version, status, contents, optional header validation, and optional header combining.
| |
| DefaultFullHttpResponse | back to summary |
|---|---|
| public DefaultFullHttpResponse(HttpVersion version, HttpResponseStatus status, ByteBuf content, HttpHeadersFactory headersFactory, HttpHeadersFactory trailersFactory) Create an HTTP response with the given HTTP version, status, contents, and with headers and trailers created by the given header factories.
The recommended header factory is | |
| DefaultFullHttpResponse | back to summary |
|---|---|
| public DefaultFullHttpResponse(HttpVersion version, HttpResponseStatus status, ByteBuf content, HttpHeaders headers, HttpHeaders trailingHeaders) Create an HTTP response with the given HTTP version, status, contents, headers and trailers. | |
| content | back to summary |
|---|---|
| public ByteBuf content() Implements io. Doc from io. Return the data which is held by this
| |
| copy | back to summary |
|---|---|
| public FullHttpResponse copy() Implements io. Doc from io. Creates a deep copy of this
| |
| duplicate | back to summary |
|---|---|
| public FullHttpResponse duplicate() Implements io. Doc from io. Duplicates this
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides io. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides io. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| refCnt | back to summary |
|---|---|
| public int refCnt() Implements io. Doc from io. Returns the reference count of this object. If
| |
| release | back to summary |
|---|---|
| public boolean release() Implements io. Doc from io. Decreases the reference count by
| |
| release | back to summary |
|---|---|
| public boolean release(int decrement) Implements io. Doc from io. Decreases the reference count by the specified
| |
| replace | back to summary |
|---|---|
| public FullHttpResponse replace(ByteBuf content) Implements io. Doc from io. Returns a new
| |
| retain | back to summary |
|---|---|
| public FullHttpResponse retain() Implements io. Doc from io. Increases the reference count by
| |
| retain | back to summary |
|---|---|
| public FullHttpResponse retain(int increment) Implements io. Doc from io. Increases the reference count by the specified
| |
| retainedDuplicate | back to summary |
|---|---|
| public FullHttpResponse retainedDuplicate() Implements io. Doc from io. Duplicates this
| |
| setProtocolVersion | back to summary |
|---|---|
| public FullHttpResponse setProtocolVersion(HttpVersion version) Overrides io. Implements io. Doc from io. Set the protocol version of this
| |
| setStatus | back to summary |
|---|---|
| public FullHttpResponse setStatus(HttpResponseStatus status) Overrides io. Implements io. Doc from io. Set the status of this
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides io. Doc from java. Returns a string representation of the object. | |
| touch | back to summary |
|---|---|
| public FullHttpResponse touch() Implements io. Doc from io. Records the current access location of this object for debugging purposes.
If this object is determined to be leaked, the information recorded by this operation will be provided to you
via
| |
| touch | back to summary |
|---|---|
| public FullHttpResponse touch(Object hint) Implements io. Doc from io. Records the current access location of this object with an additional arbitrary information for debugging
purposes. If this object is determined to be leaked, the information recorded by this operation will be
provided to you via
| |
| trailingHeaders | back to summary |
|---|---|
| public HttpHeaders trailingHeaders() Implements io.
| |