Class DefaultHttp2FrameReader.HeadersContinuation

  • Enclosing class:
    DefaultHttp2FrameReader

    private abstract class DefaultHttp2FrameReader.HeadersContinuation
    extends java.lang.Object
    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.
    • Constructor Detail

      • HeadersContinuation

        private HeadersContinuation()
    • Method Detail

      • 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
      • close

        final void close()
        Free any allocated resources.