Class PushPromiseBodyParser

java.lang.Object
org.eclipse.jetty.http2.parser.BodyParser
org.eclipse.jetty.http2.parser.PushPromiseBodyParser

public class PushPromiseBodyParser extends BodyParser
  • Field Details

    • headerBlockParser

      private final HeaderBlockParser headerBlockParser
    • state

    • cursor

      private int cursor
    • length

      private int length
    • paddingLength

      private int paddingLength
    • streamId

      private int streamId
  • Constructor Details

  • Method Details

    • reset

      private void reset()
    • parse

      public boolean parse(ByteBuffer buffer)
      Description copied from class: BodyParser

      Parses the body bytes in the given buffer; only the body bytes are consumed, therefore when this method returns, the buffer may contain unconsumed bytes.

      Specified by:
      parse in class BodyParser
      Parameters:
      buffer - the buffer to parse
      Returns:
      true if the whole body bytes were parsed, false if not enough body bytes were present in the buffer
    • onPushPromise

      private void onPushPromise(int streamId, org.eclipse.jetty.http.MetaData metaData)