private static final class HttpObjectAggregator.AggregatedFullHttpResponse extends HttpObjectAggregator.AggregatedFullHttpMessage implements FullHttpResponse
message
EMPTY_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, trailingHeaders
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getProtocolVersion, headers
trailingHeaders
getDecoderResult, setDecoderResult
content
refCnt, release, release
AggregatedFullHttpResponse(HttpResponse message, ByteBuf content, HttpHeaders trailingHeaders)
public FullHttpResponse copy()
ByteBufHolder
ByteBufHolder
.copy
in interface ByteBufHolder
copy
in interface FullHttpMessage
copy
in interface FullHttpResponse
copy
in interface HttpContent
copy
in interface LastHttpContent
copy
in class HttpObjectAggregator.AggregatedFullHttpMessage
public FullHttpResponse duplicate()
ByteBufHolder
ByteBufHolder
. Be aware that this will not automatically call ByteBufHolder.retain()
.duplicate
in interface ByteBufHolder
duplicate
in interface HttpContent
duplicate
in class HttpObjectAggregator.AggregatedFullHttpMessage
public FullHttpResponse setStatus(HttpResponseStatus status)
HttpResponse
HttpResponse
.setStatus
in interface FullHttpResponse
setStatus
in interface HttpResponse
public HttpResponseStatus getStatus()
HttpResponse
HttpResponse
.getStatus
in interface HttpResponse
HttpResponseStatus
of this HttpResponse
public FullHttpResponse setProtocolVersion(HttpVersion version)
HttpMessage
HttpMessage
setProtocolVersion
in interface FullHttpResponse
setProtocolVersion
in interface HttpMessage
setProtocolVersion
in interface HttpResponse
setProtocolVersion
in class HttpObjectAggregator.AggregatedFullHttpMessage
public FullHttpResponse retain(int increment)
ReferenceCounted
increment
.retain
in interface ByteBufHolder
retain
in interface FullHttpMessage
retain
in interface FullHttpResponse
retain
in interface HttpContent
retain
in interface LastHttpContent
retain
in interface ReferenceCounted
retain
in class HttpObjectAggregator.AggregatedFullHttpMessage
public FullHttpResponse retain()
ReferenceCounted
1
.retain
in interface ByteBufHolder
retain
in interface FullHttpMessage
retain
in interface FullHttpResponse
retain
in interface HttpContent
retain
in interface LastHttpContent
retain
in interface ReferenceCounted
retain
in class HttpObjectAggregator.AggregatedFullHttpMessage
public java.lang.String toString()
toString
in class java.lang.Object