private static final class HttpObjectAggregator.AggregatedFullHttpResponse extends HttpObjectAggregator.AggregatedFullHttpMessage implements FullHttpResponse
messageEMPTY_LAST_CONTENT| Constructor and Description |
|---|
AggregatedFullHttpResponse(HttpResponse message,
ByteBuf content,
HttpHeaders trailingHeaders) |
| Modifier and Type | Method and Description |
|---|---|
FullHttpResponse |
copy()
Creates a deep copy of this
ByteBufHolder. |
FullHttpResponse |
duplicate()
Duplicates this
ByteBufHolder. |
HttpResponseStatus |
getStatus() |
FullHttpResponse |
replace(ByteBuf content)
Returns a new
ByteBufHolder which contains the specified content. |
FullHttpResponse |
retain()
Increases the reference count by
1. |
FullHttpResponse |
retain(int increment)
Increases the reference count by the specified
increment. |
FullHttpResponse |
retainedDuplicate()
Duplicates this
ByteBufHolder. |
FullHttpResponse |
setProtocolVersion(HttpVersion version)
Set the protocol version of this
HttpMessage |
FullHttpResponse |
setStatus(HttpResponseStatus status)
Set the status of this
HttpResponse. |
HttpResponseStatus |
status()
Returns the status of this
HttpResponse. |
java.lang.String |
toString() |
FullHttpResponse |
touch()
Records the current access location of this object for debugging purposes.
|
FullHttpResponse |
touch(java.lang.Object hint)
Records the current access location of this object with an additional arbitrary information for debugging
purposes.
|
content, decoderResult, getDecoderResult, getProtocolVersion, headers, protocolVersion, refCnt, release, release, setDecoderResult, setTrailingHeaders, trailingHeadersclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetProtocolVersion, headers, protocolVersiontrailingHeadersgetDecoderResultdecoderResult, setDecoderResultcontentrefCnt, release, releaseAggregatedFullHttpResponse(HttpResponse message, ByteBuf content, HttpHeaders trailingHeaders)
public FullHttpResponse copy()
ByteBufHolderByteBufHolder.copy in interface ByteBufHoldercopy in interface FullHttpMessagecopy in interface FullHttpResponsecopy in interface HttpContentcopy in interface LastHttpContentcopy in class HttpObjectAggregator.AggregatedFullHttpMessagepublic FullHttpResponse duplicate()
ByteBufHolderByteBufHolder. Be aware that this will not automatically call ByteBufHolder.retain().duplicate in interface ByteBufHolderduplicate in interface FullHttpMessageduplicate in interface FullHttpResponseduplicate in interface HttpContentduplicate in interface LastHttpContentduplicate in class HttpObjectAggregator.AggregatedFullHttpMessagepublic FullHttpResponse retainedDuplicate()
ByteBufHolderByteBufHolder. This method returns a retained duplicate unlike ByteBufHolder.duplicate().retainedDuplicate in interface ByteBufHolderretainedDuplicate in interface FullHttpMessageretainedDuplicate in interface FullHttpResponseretainedDuplicate in interface HttpContentretainedDuplicate in interface LastHttpContentretainedDuplicate in class HttpObjectAggregator.AggregatedFullHttpMessageByteBuf.retainedDuplicate()public FullHttpResponse replace(ByteBuf content)
ByteBufHolderByteBufHolder which contains the specified content.replace in interface ByteBufHolderreplace in interface FullHttpMessagereplace in interface FullHttpResponsereplace in interface HttpContentreplace in interface LastHttpContentpublic FullHttpResponse setStatus(HttpResponseStatus status)
HttpResponseHttpResponse.setStatus in interface FullHttpResponsesetStatus in interface HttpResponsepublic HttpResponseStatus getStatus()
getStatus in interface HttpResponsepublic HttpResponseStatus status()
HttpResponseHttpResponse.status in interface HttpResponseHttpResponseStatus of this HttpResponsepublic FullHttpResponse setProtocolVersion(HttpVersion version)
HttpMessageHttpMessagesetProtocolVersion in interface FullHttpResponsesetProtocolVersion in interface HttpMessagesetProtocolVersion in interface HttpResponsesetProtocolVersion in class HttpObjectAggregator.AggregatedFullHttpMessagepublic FullHttpResponse retain(int increment)
ReferenceCountedincrement.retain in interface ByteBufHolderretain in interface FullHttpMessageretain in interface FullHttpResponseretain in interface HttpContentretain in interface LastHttpContentretain in interface ReferenceCountedretain in class HttpObjectAggregator.AggregatedFullHttpMessagepublic FullHttpResponse retain()
ReferenceCounted1.retain in interface ByteBufHolderretain in interface FullHttpMessageretain in interface FullHttpResponseretain in interface HttpContentretain in interface LastHttpContentretain in interface ReferenceCountedretain in class HttpObjectAggregator.AggregatedFullHttpMessagepublic FullHttpResponse touch(java.lang.Object hint)
ReferenceCountedResourceLeakDetector.touch in interface ByteBufHoldertouch in interface FullHttpMessagetouch in interface FullHttpResponsetouch in interface HttpContenttouch in interface LastHttpContenttouch in interface ReferenceCountedtouch in class HttpObjectAggregator.AggregatedFullHttpMessagepublic FullHttpResponse touch()
ReferenceCountedResourceLeakDetector. This method is a shortcut to touch(null).touch in interface ByteBufHoldertouch in interface FullHttpMessagetouch in interface FullHttpResponsetouch in interface HttpContenttouch in interface LastHttpContenttouch in interface ReferenceCountedtouch in class HttpObjectAggregator.AggregatedFullHttpMessagepublic java.lang.String toString()
toString in class java.lang.Object