Package io.netty.handler.codec.http2
Interface Http2DataFrame
-
- All Superinterfaces:
io.netty.buffer.ByteBufHolder,Http2Frame,Http2StreamFrame,io.netty.util.ReferenceCounted
- All Known Implementing Classes:
DefaultHttp2DataFrame
public interface Http2DataFrame extends Http2StreamFrame, io.netty.buffer.ByteBufHolder
HTTP/2 DATA frame.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description io.netty.buffer.ByteBufcontent()Payload of DATA frame.Http2DataFramecopy()Http2DataFrameduplicate()intinitialFlowControlledBytes()Returns the number of bytes that are flow-controlled initially, so even if thecontent()is consumed this will not change.booleanisEndStream()Returnstrueif the END_STREAM flag is set.intpadding()Frame padding to use.Http2DataFramereplace(io.netty.buffer.ByteBuf content)Http2DataFrameretain()Http2DataFrameretain(int increment)Http2DataFrameretainedDuplicate()Http2DataFrametouch()Http2DataFrametouch(Object hint)-
Methods inherited from interface io.netty.handler.codec.http2.Http2Frame
name
-
Methods inherited from interface io.netty.handler.codec.http2.Http2StreamFrame
stream, stream
-
-
-
-
Method Detail
-
padding
int padding()
Frame padding to use. Will be non-negative and less than 256.
-
content
io.netty.buffer.ByteBuf content()
Payload of DATA frame. Will not benull.- Specified by:
contentin interfaceio.netty.buffer.ByteBufHolder
-
initialFlowControlledBytes
int initialFlowControlledBytes()
Returns the number of bytes that are flow-controlled initially, so even if thecontent()is consumed this will not change.
-
isEndStream
boolean isEndStream()
Returnstrueif the END_STREAM flag is set.
-
copy
Http2DataFrame copy()
- Specified by:
copyin interfaceio.netty.buffer.ByteBufHolder
-
duplicate
Http2DataFrame duplicate()
- Specified by:
duplicatein interfaceio.netty.buffer.ByteBufHolder
-
retainedDuplicate
Http2DataFrame retainedDuplicate()
- Specified by:
retainedDuplicatein interfaceio.netty.buffer.ByteBufHolder
-
replace
Http2DataFrame replace(io.netty.buffer.ByteBuf content)
- Specified by:
replacein interfaceio.netty.buffer.ByteBufHolder
-
retain
Http2DataFrame retain()
- Specified by:
retainin interfaceio.netty.buffer.ByteBufHolder- Specified by:
retainin interfaceio.netty.util.ReferenceCounted
-
retain
Http2DataFrame retain(int increment)
- Specified by:
retainin interfaceio.netty.buffer.ByteBufHolder- Specified by:
retainin interfaceio.netty.util.ReferenceCounted
-
touch
Http2DataFrame touch()
- Specified by:
touchin interfaceio.netty.buffer.ByteBufHolder- Specified by:
touchin interfaceio.netty.util.ReferenceCounted
-
touch
Http2DataFrame touch(Object hint)
- Specified by:
touchin interfaceio.netty.buffer.ByteBufHolder- Specified by:
touchin interfaceio.netty.util.ReferenceCounted
-
-