public interface FullHttpResponse extends HttpResponse, FullHttpMessage
HttpResponse
and FullHttpMessage
.
So it represent a complete http response.EMPTY_LAST_CONTENT
Modifier and Type | Method and Description |
---|---|
FullHttpResponse |
copy()
Create a deep copy of this
ByteBufHolder . |
FullHttpResponse |
copy(ByteBuf newContent)
Create a copy of this
FullHttpMessage with alternative content. |
FullHttpResponse |
duplicate()
Duplicate the
ByteBufHolder . |
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 . |
FullHttpResponse |
touch()
Records the current access location of this object for debugging purposes.
|
FullHttpResponse |
touch(Object hint)
Records the current access location of this object with an additonal arbitrary information for debugging
purposes.
|
getStatus, status
getProtocolVersion, headers, protocolVersion
trailingHeaders
getDecoderResult
decoderResult, setDecoderResult
content
refCnt, release, release
FullHttpResponse copy(ByteBuf newContent)
FullHttpMessage
FullHttpMessage
with alternative content.copy
in interface FullHttpMessage
newContent
- The buffer to use instead of this FullHttpMessage
's content in the copy operation.
NOTE: retain will NOT be called on this buffer. null
results in an empty default choice buffer.
FullHttpResponse copy()
ByteBufHolder
ByteBufHolder
.copy
in interface ByteBufHolder
copy
in interface FullHttpMessage
copy
in interface HttpContent
copy
in interface LastHttpContent
FullHttpResponse 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
FullHttpResponse retain()
ReferenceCounted
1
.retain
in interface ByteBufHolder
retain
in interface FullHttpMessage
retain
in interface HttpContent
retain
in interface LastHttpContent
retain
in interface ReferenceCounted
FullHttpResponse 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
FullHttpResponse touch(Object hint)
ReferenceCounted
ResourceLeakDetector
.touch
in interface ByteBufHolder
touch
in interface FullHttpMessage
touch
in interface HttpContent
touch
in interface LastHttpContent
touch
in interface ReferenceCounted
FullHttpResponse 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
FullHttpResponse setProtocolVersion(HttpVersion version)
HttpMessage
HttpMessage
setProtocolVersion
in interface HttpMessage
setProtocolVersion
in interface HttpResponse
FullHttpResponse setStatus(HttpResponseStatus status)
HttpResponse
HttpResponse
.setStatus
in interface HttpResponse
Copyright © 2008–2016 The Netty Project. All rights reserved.