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 LastHttpContent
void setTrailingHeaders(HttpHeaders trailingHeaders)
public HttpVersion getProtocolVersion()
HttpMessage
HttpMessage
getProtocolVersion
in interface HttpMessage
public FullHttpMessage setProtocolVersion(HttpVersion version)
HttpMessage
HttpMessage
setProtocolVersion
in interface HttpMessage
public HttpHeaders headers()
HttpMessage
headers
in interface HttpMessage
public DecoderResult getDecoderResult()
HttpObject
getDecoderResult
in interface HttpObject
public void setDecoderResult(DecoderResult result)
HttpObject
HttpObjectDecoder
.
Do not call this method unless you know what you are doing.setDecoderResult
in interface HttpObject
public ByteBuf content()
ByteBufHolder
ByteBufHolder
.content
in interface ByteBufHolder
public int refCnt()
ReferenceCounted
0
, it means this object has been deallocated.refCnt
in interface ReferenceCounted
public FullHttpMessage retain()
ReferenceCounted
1
.retain
in interface ByteBufHolder
retain
in interface FullHttpMessage
retain
in interface HttpContent
retain
in interface LastHttpContent
retain
in interface ReferenceCounted
public FullHttpMessage retain(int increment)
ReferenceCounted
increment
.retain
in interface ByteBufHolder
retain
in interface FullHttpMessage
retain
in interface HttpContent
retain
in interface LastHttpContent
retain
in interface ReferenceCounted
public boolean release()
ReferenceCounted
1
and deallocates this object if the reference count reaches at
0
.release
in interface ReferenceCounted
true
if and only if the reference count became 0
and this object has been deallocatedpublic boolean release(int decrement)
ReferenceCounted
decrement
and deallocates this object if the reference
count reaches at 0
.release
in interface ReferenceCounted
true
if and only if the reference count became 0
and this object has been deallocatedpublic abstract FullHttpMessage copy()
ByteBufHolder
ByteBufHolder
.copy
in interface ByteBufHolder
copy
in interface FullHttpMessage
copy
in interface HttpContent
copy
in interface LastHttpContent
public abstract FullHttpMessage duplicate()
ByteBufHolder
ByteBufHolder
. Be aware that this will not automatically call ByteBufHolder.retain()
.duplicate
in interface ByteBufHolder
duplicate
in interface HttpContent