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()
Create a deep copy of this
ByteBufHolder. |
FullHttpResponse |
duplicate()
Duplicate the
ByteBufHolder. |
HttpResponseStatus |
getStatus()
Returns the status of this
HttpResponse. |
FullHttpResponse |
retain()
Increases the reference count by
1. |
FullHttpResponse |
retain(int increment)
Increases the reference count by the specified
increment. |
FullHttpResponse |
setProtocolVersion(HttpVersion version)
Set the protocol version of this
HttpMessage |
FullHttpResponse |
setStatus(HttpResponseStatus status)
Set the status of this
HttpResponse. |
java.lang.String |
toString() |
content, getDecoderResult, getProtocolVersion, headers, refCnt, release, release, setDecoderResult, setTrailingHeaders, trailingHeadersclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetProtocolVersion, headerstrailingHeadersgetDecoderResult, 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 HttpContentduplicate in class HttpObjectAggregator.AggregatedFullHttpMessagepublic FullHttpResponse setStatus(HttpResponseStatus status)
HttpResponseHttpResponse.setStatus in interface FullHttpResponsesetStatus in interface HttpResponsepublic HttpResponseStatus getStatus()
HttpResponseHttpResponse.getStatus 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 java.lang.String toString()
toString in class java.lang.Object