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.HttpObjectDecoder
generatesHttpContent
afterHttpMessage
when the content is large or the encoding of the content is 'chunked. If you prefer not to receiveHttpContent
in your handler, placeHttpObjectAggregator
afterHttpObjectDecoder
in theChannelPipeline
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description HttpContent
copy()
HttpContent
duplicate()
HttpContent
replace(io.netty.buffer.ByteBuf content)
HttpContent
retain()
HttpContent
retain(int increment)
HttpContent
retainedDuplicate()
HttpContent
touch()
HttpContent
touch(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:
copy
in interfaceio.netty.buffer.ByteBufHolder
-
duplicate
HttpContent duplicate()
- Specified by:
duplicate
in interfaceio.netty.buffer.ByteBufHolder
-
retainedDuplicate
HttpContent retainedDuplicate()
- Specified by:
retainedDuplicate
in interfaceio.netty.buffer.ByteBufHolder
-
replace
HttpContent replace(io.netty.buffer.ByteBuf content)
- Specified by:
replace
in interfaceio.netty.buffer.ByteBufHolder
-
retain
HttpContent retain()
- Specified by:
retain
in interfaceio.netty.buffer.ByteBufHolder
- Specified by:
retain
in interfaceio.netty.util.ReferenceCounted
-
retain
HttpContent retain(int increment)
- Specified by:
retain
in interfaceio.netty.buffer.ByteBufHolder
- Specified by:
retain
in interfaceio.netty.util.ReferenceCounted
-
touch
HttpContent touch()
- Specified by:
touch
in interfaceio.netty.buffer.ByteBufHolder
- Specified by:
touch
in interfaceio.netty.util.ReferenceCounted
-
touch
HttpContent touch(Object hint)
- Specified by:
touch
in interfaceio.netty.buffer.ByteBufHolder
- Specified by:
touch
in interfaceio.netty.util.ReferenceCounted
-
-