Class DefaultHttp2FrameReader.HeadersContinuation
java.lang.Object
io.netty.handler.codec.http2.DefaultHttp2FrameReader.HeadersContinuation
- Enclosing class:
DefaultHttp2FrameReader
Base class for processing of HEADERS and PUSH_PROMISE header blocks that potentially span
multiple frames. The implementation of this interface will perform the final callback to the
Http2FrameListener once the end of headers is reached.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) final voidclose()Free any allocated resources.(package private) abstract intReturns the stream for which headers are currently being processed.(package private) final DefaultHttp2FrameReader.HeadersBlockBuilder(package private) abstract voidprocessFragment(boolean endOfHeaders, ByteBuf fragment, int len, Http2FrameListener listener) Processes the next fragment for the current header block.
-
Field Details
-
builder
-
-
Constructor Details
-
HeadersContinuation
private HeadersContinuation()
-
-
Method Details
-
getStreamId
abstract int getStreamId()Returns the stream for which headers are currently being processed. -
processFragment
abstract void processFragment(boolean endOfHeaders, ByteBuf fragment, int len, Http2FrameListener listener) throws Http2Exception Processes the next fragment for the current header block.- Parameters:
endOfHeaders- whether the fragment is the last in the header block.fragment- the fragment of the header block to be added.listener- the listener to be notified if the header block is completed.- Throws:
Http2Exception
-
headersBlockBuilder
-
close
final void close()Free any allocated resources.
-