FullHttpResponse.
| Modifier and Type | Field and Description |
|---|---|
| private int | hash
Used to cache the value of the hash code and avoid |
| private final Buffer | |
| private final HttpHeaders |
| Access | Constructor and Description |
|---|---|
| public | |
| public | DefaultFullHttpResponse(HttpVersion version, HttpResponseStatus status, Buffer payload, boolean validateHeaders)
|
| public | DefaultFullHttpResponse(HttpVersion version, HttpResponseStatus status, Buffer payload, HttpHeaders headers, HttpHeaders trailingHeaders)
|
| hash | back to summary |
|---|---|
| private int hash Used to cache the value of the hash code and avoid | |
| payload | back to summary |
|---|---|
| private final Buffer payload | |
| trailingHeaders | back to summary |
|---|---|
| private final HttpHeaders trailingHeaders | |
| DefaultFullHttpResponse | back to summary |
|---|---|
| public DefaultFullHttpResponse(HttpVersion version, HttpResponseStatus status, Buffer payload) | |
| DefaultFullHttpResponse | back to summary |
|---|---|
| public DefaultFullHttpResponse(HttpVersion version, HttpResponseStatus status, Buffer payload, boolean validateHeaders) | |
| DefaultFullHttpResponse | back to summary |
|---|---|
| public DefaultFullHttpResponse(HttpVersion version, HttpResponseStatus status, Buffer payload, HttpHeaders headers, HttpHeaders trailingHeaders) | |
| close | back to summary |
|---|---|
| public void close() Implements io. Doc from io. Close the resource, making it inaccessible. Note, this method is not thread-safe unless otherwise specified.
| |
| copy | back to summary |
|---|---|
| public DefaultFullHttpResponse copy() Implements io. Doc from io. Create a copy of this HTTP content instance, and return it.
| |
| 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
| |
| isAccessible | back to summary |
|---|---|
| public boolean isAccessible() Implements io. Doc from io. Check if this object is accessible. | |
| payload | back to summary |
|---|---|
| public Buffer payload() Implements io. Doc from io. Returns the | |
| send | back to summary |
|---|---|
| public Send Implements io. Doc from io. Send this object instance to another Thread, transferring the ownership to the recipient. The object must be in a state where it can be sent, which includes at least being accessible. When sent, this instance will immediately become inaccessible, as if by closing it. All attempts at accessing an object that has been sent, even if that object has not yet been received, should cause an exception to be thrown.
Calling
| |
| 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(Object hint) Overrides default io. Doc from io. Record the current access location for debugging purposes. This information may be included if the resource throws a life-cycle related exception, or if it leaks. If this resource has already been closed, then this method has no effect.
| |
| trailingHeaders | back to summary |
|---|---|
| public HttpHeaders trailingHeaders() Implements io.
| |