private abstract static class HttpObjectAggregator.AggregatedFullHttpMessage extends java.lang.Object implements 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()
Creates a deep copy of this
ByteBufHolder. |
DecoderResult |
decoderResult()
Returns the result of decoding this object.
|
abstract FullHttpMessage |
duplicate()
Duplicates this
ByteBufHolder. |
DecoderResult |
getDecoderResult() |
HttpVersion |
getProtocolVersion() |
HttpHeaders |
headers()
Returns the headers of this message.
|
HttpVersion |
protocolVersion()
Returns the protocol version of this
HttpMessage |
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. |
abstract FullHttpMessage |
retainedDuplicate()
Duplicates this
ByteBufHolder. |
void |
setDecoderResult(DecoderResult result)
Updates the result of decoding this object.
|
FullHttpMessage |
setProtocolVersion(HttpVersion version)
Set the protocol version of this
HttpMessage |
(package private) void |
setTrailingHeaders(HttpHeaders trailingHeaders) |
FullHttpMessage |
touch()
Records the current access location of this object for debugging purposes.
|
FullHttpMessage |
touch(java.lang.Object hint)
Records the current access location of this object with an additional arbitrary information for debugging
purposes.
|
HttpHeaders |
trailingHeaders() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreplaceprotected 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()
getProtocolVersion in interface HttpMessagepublic HttpVersion protocolVersion()
HttpMessageHttpMessageprotocolVersion in interface HttpMessagepublic FullHttpMessage setProtocolVersion(HttpVersion version)
HttpMessageHttpMessagesetProtocolVersion in interface HttpMessagepublic HttpHeaders headers()
HttpMessageheaders in interface HttpMessagepublic DecoderResult decoderResult()
DecoderResultProviderdecoderResult in interface DecoderResultProviderpublic DecoderResult getDecoderResult()
getDecoderResult in interface HttpObjectpublic void setDecoderResult(DecoderResult result)
DecoderResultProvidersetDecoderResult in interface DecoderResultProviderpublic 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 FullHttpMessage touch(java.lang.Object hint)
ReferenceCountedResourceLeakDetector.touch in interface ByteBufHoldertouch in interface FullHttpMessagetouch in interface HttpContenttouch in interface LastHttpContenttouch in interface ReferenceCountedpublic FullHttpMessage touch()
ReferenceCountedResourceLeakDetector. This method is a shortcut to touch(null).touch in interface ByteBufHoldertouch in interface FullHttpMessagetouch in interface HttpContenttouch in interface LastHttpContenttouch 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 FullHttpMessageduplicate in interface HttpContentduplicate in interface LastHttpContentpublic abstract FullHttpMessage retainedDuplicate()
ByteBufHolderByteBufHolder. This method returns a retained duplicate unlike ByteBufHolder.duplicate().retainedDuplicate in interface ByteBufHolderretainedDuplicate in interface FullHttpMessageretainedDuplicate in interface HttpContentretainedDuplicate in interface LastHttpContentByteBuf.retainedDuplicate()