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()
Creates a deep copy of this
ByteBufHolder . |
FullHttpResponse |
duplicate()
Duplicates this
ByteBufHolder . |
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 . |
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 additional arbitrary information for debugging
purposes.
|
getStatus, status
getProtocolVersion, headers, protocolVersion
trailingHeaders
getDecoderResult
decoderResult, setDecoderResult
content
refCnt, release, release
FullHttpResponse copy()
ByteBufHolder
ByteBufHolder
.copy
in interface ByteBufHolder
copy
in interface FullHttpMessage
copy
in interface HttpContent
copy
in interface LastHttpContent
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 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()
FullHttpResponse replace(ByteBuf content)
ByteBufHolder
ByteBufHolder
which contains the specified content
.replace
in interface ByteBufHolder
replace
in interface FullHttpMessage
replace
in interface HttpContent
replace
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 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–2017 The Netty Project. All rights reserved.