LastHttpContent implementation.
| Modifier and Type | Field and Description |
|---|---|
| private final HttpHeaders |
| Access | Constructor and Description |
|---|---|
| public | |
| public | DefaultLastHttpContent(ByteBuf content)
Create a new last HTTP content message with the given contents. |
| public | DefaultLastHttpContent(ByteBuf content, boolean validateHeaders)
Deprecated
Prefer the
Create a new last HTTP content message with the given contents, and optional trailing header validation.
DefaultLastHttpContent(ByteBuf) constructor instead, to always have header
validation enabled.
|
| public | DefaultLastHttpContent(ByteBuf content, HttpHeadersFactory trailersFactory)
Create a new last HTTP content message with the given contents, and trailing headers from the given factory. |
| public | DefaultLastHttpContent(ByteBuf content, HttpHeaders trailingHeaders)
Create a new last HTTP content message with the given contents, and trailing headers. |
| trailingHeaders | back to summary |
|---|---|
| private final HttpHeaders trailingHeaders | |
| DefaultLastHttpContent | back to summary |
|---|---|
| public DefaultLastHttpContent() Create a new empty, last HTTP content message. | |
| DefaultLastHttpContent | back to summary |
|---|---|
| public DefaultLastHttpContent(ByteBuf content) Create a new last HTTP content message with the given contents. | |
| DefaultLastHttpContent | back to summary |
|---|---|
| public DefaultLastHttpContent(ByteBuf content, boolean validateHeaders)
Deprecated Prefer the Create a new last HTTP content message with the given contents, and optional trailing header validation. Warning Setting
| |
| DefaultLastHttpContent | back to summary |
|---|---|
| public DefaultLastHttpContent(ByteBuf content, HttpHeadersFactory trailersFactory) Create a new last HTTP content message with the given contents, and trailing headers from the given factory. | |
| DefaultLastHttpContent | back to summary |
|---|---|
| public DefaultLastHttpContent(ByteBuf content, HttpHeaders trailingHeaders) Create a new last HTTP content message with the given contents, and trailing headers. | |
| appendHeaders | back to summary |
|---|---|
| private void appendHeaders(StringBuilder buf) | |
| copy | back to summary |
|---|---|
| public LastHttpContent copy() Overrides io. Implements io. Doc from io. Creates a deep copy of this
| |
| duplicate | back to summary |
|---|---|
| public LastHttpContent duplicate() Overrides io. Implements io. Doc from io. Duplicates this
| |
| replace | back to summary |
|---|---|
| public LastHttpContent replace(ByteBuf content) Overrides io. Implements io. Doc from io. Returns a new
| |
| retain | back to summary |
|---|---|
| public LastHttpContent retain(int increment) Overrides io. Implements io. Doc from io. Increases the reference count by the specified
| |
| retain | back to summary |
|---|---|
| public LastHttpContent retain() Overrides io. Implements io. Doc from io. Increases the reference count by
| |
| retainedDuplicate | back to summary |
|---|---|
| public LastHttpContent retainedDuplicate() Overrides io. Implements io. Doc from io. Duplicates 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 LastHttpContent touch() Overrides io. 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 LastHttpContent touch(Object hint) Overrides io. 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.
| |