public interface HttpContent extends HttpObject, ByteBufHolder
HttpObjectDecoder
generates HttpContent
after
HttpMessage
when the content is large or the encoding of the content
is 'chunked. If you prefer not to receive HttpContent
in your handler,
place HttpObjectAggregator
after HttpObjectDecoder
in the
ChannelPipeline
.Modifier and Type | Method and Description |
---|---|
HttpContent |
copy()
Creates a deep copy of this
ByteBufHolder . |
HttpContent |
duplicate()
Duplicates this
ByteBufHolder . |
HttpContent |
replace(ByteBuf content)
Returns a new
ByteBufHolder which contains the specified content . |
HttpContent |
retain()
Increases the reference count by
1 . |
HttpContent |
retain(int increment)
Increases the reference count by the specified
increment . |
HttpContent |
retainedDuplicate()
Duplicates this
ByteBufHolder . |
HttpContent |
touch()
Records the current access location of this object for debugging purposes.
|
HttpContent |
touch(Object hint)
Records the current access location of this object with an additional arbitrary information for debugging
purposes.
|
getDecoderResult
decoderResult, setDecoderResult
content
refCnt, release, release
HttpContent copy()
ByteBufHolder
ByteBufHolder
.copy
in interface ByteBufHolder
HttpContent duplicate()
ByteBufHolder
ByteBufHolder
. Be aware that this will not automatically call ByteBufHolder.retain()
.duplicate
in interface ByteBufHolder
HttpContent retainedDuplicate()
ByteBufHolder
ByteBufHolder
. This method returns a retained duplicate unlike ByteBufHolder.duplicate()
.retainedDuplicate
in interface ByteBufHolder
ByteBuf.retainedDuplicate()
HttpContent replace(ByteBuf content)
ByteBufHolder
ByteBufHolder
which contains the specified content
.replace
in interface ByteBufHolder
HttpContent retain()
ReferenceCounted
1
.retain
in interface ByteBufHolder
retain
in interface ReferenceCounted
HttpContent retain(int increment)
ReferenceCounted
increment
.retain
in interface ByteBufHolder
retain
in interface ReferenceCounted
HttpContent touch()
ReferenceCounted
ResourceLeakDetector
. This method is a shortcut to touch(null)
.touch
in interface ByteBufHolder
touch
in interface ReferenceCounted
HttpContent touch(Object hint)
ReferenceCounted
ResourceLeakDetector
.touch
in interface ByteBufHolder
touch
in interface ReferenceCounted
Copyright © 2008–2017 The Netty Project. All rights reserved.