private abstract static class HttpObjectAggregator.AggregatedFullHttpMessage extends java.lang.Object implements ByteBufHolder, FullHttpMessage
| Modifier and Type | Field and Description |
|---|---|
private ByteBuf |
content |
protected HttpMessage |
message |
private HttpHeaders |
trailingHeaders |
EMPTY_LAST_CONTENT| Constructor and Description |
|---|
AggregatedFullHttpMessage(HttpMessage message,
ByteBuf content,
HttpHeaders trailingHeaders) |
| Modifier and Type | Method and Description |
|---|---|
ByteBuf |
content()
Return the data which is held by this
ByteBufHolder. |
abstract FullHttpMessage |
copy()
Create a deep copy of this
ByteBufHolder. |
abstract FullHttpMessage |
duplicate()
Duplicate the
ByteBufHolder. |
DecoderResult |
getDecoderResult()
Returns the result of decoding this message.
|
HttpVersion |
getProtocolVersion()
Returns the protocol version of this
HttpMessage |
HttpHeaders |
headers()
Returns the headers of this message.
|
int |
refCnt()
Returns the reference count of this object.
|
boolean |
release()
Decreases the reference count by
1 and deallocates this object if the reference count reaches at
0. |
boolean |
release(int decrement)
Decreases the reference count by the specified
decrement and deallocates this object if the reference
count reaches at 0. |
FullHttpMessage |
retain()
Increases the reference count by
1. |
FullHttpMessage |
retain(int increment)
Increases the reference count by the specified
increment. |
void |
setDecoderResult(DecoderResult result)
Updates the result of decoding this message.
|
FullHttpMessage |
setProtocolVersion(HttpVersion version)
Set the protocol version of this
HttpMessage |
(package private) void |
setTrailingHeaders(HttpHeaders trailingHeaders) |
HttpHeaders |
trailingHeaders() |
protected final HttpMessage message
private final ByteBuf content
private HttpHeaders trailingHeaders
AggregatedFullHttpMessage(HttpMessage message, ByteBuf content, HttpHeaders trailingHeaders)
public HttpHeaders trailingHeaders()
trailingHeaders in interface LastHttpContentvoid setTrailingHeaders(HttpHeaders trailingHeaders)
public HttpVersion getProtocolVersion()
HttpMessageHttpMessagegetProtocolVersion in interface HttpMessagepublic FullHttpMessage setProtocolVersion(HttpVersion version)
HttpMessageHttpMessagesetProtocolVersion in interface HttpMessagepublic HttpHeaders headers()
HttpMessageheaders in interface HttpMessagepublic DecoderResult getDecoderResult()
HttpObjectgetDecoderResult in interface HttpObjectpublic void setDecoderResult(DecoderResult result)
HttpObjectHttpObjectDecoder.
Do not call this method unless you know what you are doing.setDecoderResult in interface HttpObjectpublic ByteBuf content()
ByteBufHolderByteBufHolder.content in interface ByteBufHolderpublic int refCnt()
ReferenceCounted0, it means this object has been deallocated.refCnt in interface ReferenceCountedpublic FullHttpMessage retain()
ReferenceCounted1.retain in interface ByteBufHolderretain in interface FullHttpMessageretain in interface HttpContentretain in interface LastHttpContentretain in interface ReferenceCountedpublic FullHttpMessage retain(int increment)
ReferenceCountedincrement.retain in interface ByteBufHolderretain in interface FullHttpMessageretain in interface HttpContentretain in interface LastHttpContentretain in interface ReferenceCountedpublic boolean release()
ReferenceCounted1 and deallocates this object if the reference count reaches at
0.release in interface ReferenceCountedtrue if and only if the reference count became 0 and this object has been deallocatedpublic boolean release(int decrement)
ReferenceCounteddecrement and deallocates this object if the reference
count reaches at 0.release in interface ReferenceCountedtrue if and only if the reference count became 0 and this object has been deallocatedpublic abstract FullHttpMessage copy()
ByteBufHolderByteBufHolder.copy in interface ByteBufHoldercopy in interface FullHttpMessagecopy in interface HttpContentcopy in interface LastHttpContentpublic abstract FullHttpMessage duplicate()
ByteBufHolderByteBufHolder. Be aware that this will not automatically call ByteBufHolder.retain().duplicate in interface ByteBufHolderduplicate in interface HttpContent