Package io.netty.handler.codec.http
Interface HttpContent
-
- All Superinterfaces:
ByteBufHolder,DecoderResultProvider,HttpObject,ReferenceCounted
- All Known Subinterfaces:
FullHttpMessage,FullHttpRequest,FullHttpResponse,LastHttpContent
- All Known Implementing Classes:
DefaultFullHttpRequest,DefaultFullHttpResponse,DefaultHttpContent,DefaultLastHttpContent
public interface HttpContent extends HttpObject, 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()Creates a deep copy of thisByteBufHolder.HttpContentduplicate()Duplicates thisByteBufHolder.HttpContentreplace(ByteBuf content)Returns a newByteBufHolderwhich contains the specifiedcontent.HttpContentretain()Increases the reference count by1.HttpContentretain(int increment)Increases the reference count by the specifiedincrement.HttpContentretainedDuplicate()Duplicates thisByteBufHolder.HttpContenttouch()Records the current access location of this object for debugging purposes.HttpContenttouch(java.lang.Object hint)Records the current access location of this object with an additional arbitrary information for debugging purposes.-
Methods inherited from interface io.netty.buffer.ByteBufHolder
content
-
Methods inherited from interface io.netty.handler.codec.DecoderResultProvider
decoderResult, setDecoderResult
-
Methods inherited from interface io.netty.handler.codec.http.HttpObject
getDecoderResult
-
Methods inherited from interface io.netty.util.ReferenceCounted
refCnt, release, release
-
-
-
-
Method Detail
-
copy
HttpContent copy()
Description copied from interface:ByteBufHolderCreates a deep copy of thisByteBufHolder.- Specified by:
copyin interfaceByteBufHolder
-
duplicate
HttpContent duplicate()
Description copied from interface:ByteBufHolderDuplicates thisByteBufHolder. Be aware that this will not automatically callByteBufHolder.retain().- Specified by:
duplicatein interfaceByteBufHolder
-
retainedDuplicate
HttpContent retainedDuplicate()
Description copied from interface:ByteBufHolderDuplicates thisByteBufHolder. This method returns a retained duplicate unlikeByteBufHolder.duplicate().- Specified by:
retainedDuplicatein interfaceByteBufHolder- See Also:
ByteBuf.retainedDuplicate()
-
replace
HttpContent replace(ByteBuf content)
Description copied from interface:ByteBufHolderReturns a newByteBufHolderwhich contains the specifiedcontent.- Specified by:
replacein interfaceByteBufHolder
-
retain
HttpContent retain()
Description copied from interface:ReferenceCountedIncreases the reference count by1.- Specified by:
retainin interfaceByteBufHolder- Specified by:
retainin interfaceReferenceCounted
-
retain
HttpContent retain(int increment)
Description copied from interface:ReferenceCountedIncreases the reference count by the specifiedincrement.- Specified by:
retainin interfaceByteBufHolder- Specified by:
retainin interfaceReferenceCounted
-
touch
HttpContent touch()
Description copied from interface:ReferenceCountedRecords the current access location of this object for debugging purposes. If this object is determined to be leaked, the information recorded by this operation will be provided to you viaResourceLeakDetector. This method is a shortcut totouch(null).- Specified by:
touchin interfaceByteBufHolder- Specified by:
touchin interfaceReferenceCounted
-
touch
HttpContent touch(java.lang.Object hint)
Description copied from interface:ReferenceCountedRecords the current access location of this object with an additional arbitrary information for debugging purposes. If this object is determined to be leaked, the information recorded by this operation will be provided to you viaResourceLeakDetector.- Specified by:
touchin interfaceByteBufHolder- Specified by:
touchin interfaceReferenceCounted
-
-