Package io.netty.handler.codec.http
Interface HttpContent
-
- All Superinterfaces:
io.netty.buffer.ByteBufHolder,io.netty.handler.codec.DecoderResultProvider,HttpObject,io.netty.util.ReferenceCounted
- All Known Subinterfaces:
FullHttpMessage,FullHttpRequest,FullHttpResponse,LastHttpContent
- All Known Implementing Classes:
DefaultFullHttpRequest,DefaultFullHttpResponse,DefaultHttpContent,DefaultLastHttpContent
public interface HttpContent extends HttpObject, io.netty.buffer.ByteBufHolder
An HTTP chunk which is used for HTTP chunked transfer-encoding.HttpObjectDecodergeneratesHttpContentafterHttpMessagewhen the content is large or the encoding of the content is 'chunked. If you prefer not to receiveHttpContentin your handler, placeHttpObjectAggregatorafterHttpObjectDecoderin theChannelPipeline.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description HttpContentcopy()HttpContentduplicate()HttpContentreplace(io.netty.buffer.ByteBuf content)HttpContentretain()HttpContentretain(int increment)HttpContentretainedDuplicate()HttpContenttouch()HttpContenttouch(Object hint)-
Methods inherited from interface io.netty.handler.codec.DecoderResultProvider
decoderResult, setDecoderResult
-
Methods inherited from interface io.netty.handler.codec.http.HttpObject
getDecoderResult
-
-
-
-
Method Detail
-
copy
HttpContent copy()
- Specified by:
copyin interfaceio.netty.buffer.ByteBufHolder
-
duplicate
HttpContent duplicate()
- Specified by:
duplicatein interfaceio.netty.buffer.ByteBufHolder
-
retainedDuplicate
HttpContent retainedDuplicate()
- Specified by:
retainedDuplicatein interfaceio.netty.buffer.ByteBufHolder
-
replace
HttpContent replace(io.netty.buffer.ByteBuf content)
- Specified by:
replacein interfaceio.netty.buffer.ByteBufHolder
-
retain
HttpContent retain()
- Specified by:
retainin interfaceio.netty.buffer.ByteBufHolder- Specified by:
retainin interfaceio.netty.util.ReferenceCounted
-
retain
HttpContent retain(int increment)
- Specified by:
retainin interfaceio.netty.buffer.ByteBufHolder- Specified by:
retainin interfaceio.netty.util.ReferenceCounted
-
touch
HttpContent touch()
- Specified by:
touchin interfaceio.netty.buffer.ByteBufHolder- Specified by:
touchin interfaceio.netty.util.ReferenceCounted
-
touch
HttpContent touch(Object hint)
- Specified by:
touchin interfaceio.netty.buffer.ByteBufHolder- Specified by:
touchin interfaceio.netty.util.ReferenceCounted
-
-