Class DefaultHttp2FrameReader.HeadersContinuation

java.lang.Object
io.netty.handler.codec.http2.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.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) final void
    Free any allocated resources.
    (package private) abstract int
    Returns the stream for which headers are currently being processed.
     
    (package private) final int
    Return the number of fragments that were used so far.
    (package private) abstract void
    processFragment(boolean endOfHeaders, ByteBuf fragment, int len, Http2FrameListener listener)
    Processes the next fragment for the current header block.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • HeadersContinuation

      private HeadersContinuation()
  • Method Details

    • getStreamId

      abstract int getStreamId()
      Returns the stream for which headers are currently being processed.
    • numSmallFragments

      final int numSmallFragments()
      Return the number of fragments that were used so far.
      Returns:
      the number of fragments
    • 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

      final DefaultHttp2FrameReader.HeadersBlockBuilder headersBlockBuilder()
    • close

      final void close()
      Free any allocated resources.