Class HeadersBodyParser


  • public class HeadersBodyParser
    extends BodyParser
    • Field Detail

      • cursor

        private int cursor
      • length

        private int length
      • paddingLength

        private int paddingLength
      • exclusive

        private boolean exclusive
      • parentStreamId

        private int parentStreamId
      • weight

        private int weight
    • Method Detail

      • reset

        private void reset()
      • emptyBody

        protected void emptyBody​(java.nio.ByteBuffer buffer)
        Overrides:
        emptyBody in class BodyParser
      • parse

        public boolean parse​(java.nio.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
      • onHeaders

        private void onHeaders​(int parentStreamId,
                               int weight,
                               boolean exclusive,
                               org.eclipse.jetty.http.MetaData metaData)
      • onHeaders

        private void onHeaders​(HeadersFrame frame)