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, wait
replace
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()
getProtocolVersion
in interface HttpMessage
public HttpVersion protocolVersion()
HttpMessage
HttpMessage
protocolVersion
in interface HttpMessage
public FullHttpMessage setProtocolVersion(HttpVersion version)
HttpMessage
HttpMessage
setProtocolVersion
in interface HttpMessage
public HttpHeaders headers()
HttpMessage
headers
in interface HttpMessage
public DecoderResult decoderResult()
DecoderResultProvider
decoderResult
in interface DecoderResultProvider
public DecoderResult getDecoderResult()
getDecoderResult
in interface HttpObject
public void setDecoderResult(DecoderResult result)
DecoderResultProvider
setDecoderResult
in interface DecoderResultProvider
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 FullHttpMessage touch(java.lang.Object hint)
ReferenceCounted
ResourceLeakDetector
.touch
in interface ByteBufHolder
touch
in interface FullHttpMessage
touch
in interface HttpContent
touch
in interface LastHttpContent
touch
in interface ReferenceCounted
public FullHttpMessage touch()
ReferenceCounted
ResourceLeakDetector
. This method is a shortcut to touch(null)
.touch
in interface ByteBufHolder
touch
in interface FullHttpMessage
touch
in interface HttpContent
touch
in interface LastHttpContent
touch
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 FullHttpMessage
duplicate
in interface HttpContent
duplicate
in interface LastHttpContent
public abstract FullHttpMessage retainedDuplicate()
ByteBufHolder
ByteBufHolder
. This method returns a retained duplicate unlike ByteBufHolder.duplicate()
.retainedDuplicate
in interface ByteBufHolder
retainedDuplicate
in interface FullHttpMessage
retainedDuplicate
in interface HttpContent
retainedDuplicate
in interface LastHttpContent
ByteBuf.retainedDuplicate()