Class HeaderBlockParser

java.lang.Object
org.eclipse.jetty.http2.parser.HeaderBlockParser

public class HeaderBlockParser extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.eclipse.jetty.http.MetaData
     
    static final org.eclipse.jetty.http.MetaData
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    HeaderBlockParser(HeaderParser headerParser, org.eclipse.jetty.io.ByteBufferPool byteBufferPool, org.eclipse.jetty.http2.hpack.HpackDecoder hpackDecoder, BodyParser notifier)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.eclipse.jetty.http.MetaData
    parse(ByteBuffer buffer, int blockLength)
    Parses @{code blockLength} HPACK bytes from the given buffer.

    Methods inherited from class java.lang.Object

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

    • STREAM_FAILURE

      public static final org.eclipse.jetty.http.MetaData STREAM_FAILURE
    • SESSION_FAILURE

      public static final org.eclipse.jetty.http.MetaData SESSION_FAILURE
  • Constructor Details

    • HeaderBlockParser

      public HeaderBlockParser(HeaderParser headerParser, org.eclipse.jetty.io.ByteBufferPool byteBufferPool, org.eclipse.jetty.http2.hpack.HpackDecoder hpackDecoder, BodyParser notifier)
  • Method Details

    • parse

      public org.eclipse.jetty.http.MetaData parse(ByteBuffer buffer, int blockLength)
      Parses @{code blockLength} HPACK bytes from the given buffer.
      Parameters:
      buffer - the buffer to parse
      blockLength - the length of the HPACK block
      Returns:
      null, if the buffer contains less than blockLength bytes; STREAM_FAILURE if parsing the HPACK block produced a stream failure; SESSION_FAILURE if parsing the HPACK block produced a session failure; a valid MetaData object if the parsing was successful.