LastHttpContent implementation.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final Buffer | |
| private final HttpHeaders |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public void | |
| public DefaultLastHttpContent | copy()
Implements io. |
| public boolean | |
| public Buffer | payload()
Implements io. Buffer representing the payload of the HTTP message.
|
| public Send | send()
Implements io. |
| public String | |
| public DefaultLastHttpContent | touch(Object
An optional hint about this access and its context. May be hint)null.Overrides default io. |
| public HttpHeaders |
| payload | back to summary |
|---|---|
| private final Buffer payload | |
| trailingHeaders | back to summary |
|---|---|
| private final HttpHeaders trailingHeaders | |
| DefaultLastHttpContent | back to summary |
|---|---|
| public DefaultLastHttpContent(Buffer payload) | |
| DefaultLastHttpContent | back to summary |
|---|---|
| public DefaultLastHttpContent(Buffer payload, boolean validateHeaders) | |
| DefaultLastHttpContent | back to summary |
|---|---|
| public DefaultLastHttpContent(Buffer payload, HttpHeaders trailingHeaders) | |
| appendHeaders | back to summary |
|---|---|
| private void appendHeaders(StringBuilder buf) | |
| 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 DefaultLastHttpContent copy() Implements io. Doc from io. Create a copy of this HTTP content instance, and return it.
| |
| 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
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| touch | back to summary |
|---|---|
| public DefaultLastHttpContent 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.
| |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected CharSequence | validateKey(@Nullable CharSequence
The key which will be inserted. name, boolean true if this validation is for adding to the headers, or false if this is for
setting (overwriting) the given header.Implements abstract io. MultiMap.
|
| TrailingHttpHeaders | back to summary |
|---|---|
| pack-priv TrailingHttpHeaders(boolean validate) | |
| validateKey | back to summary |
|---|---|
| protected CharSequence validateKey(@Nullable CharSequence name, boolean forAdd) Implements abstract io. Doc from io. Validate the key before inserting it into this
| |