Class MessageParser
java.lang.Object
org.eclipse.jetty.http3.parser.MessageParser
The HTTP/3 protocol parser.
This parser makes use of the HeaderParser and of
BodyParsers to parse HTTP/3 frames.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionMessageParser(ParserListener listener, QpackDecoder decoder, long streamId, BooleanSupplier isLast) -
Method Summary
Modifier and TypeMethodDescriptionvoidinit(UnaryOperator<ParserListener> wrapper) booleanparse(ByteBuffer buffer) Parses the givenbufferbytes and emit events to aParserListener.voidsetDataMode(boolean enable)
-
Constructor Details
-
MessageParser
public MessageParser(ParserListener listener, QpackDecoder decoder, long streamId, BooleanSupplier isLast)
-
-
Method Details
-
init
-
getListener
-
isDataMode
public boolean isDataMode() -
setDataMode
public void setDataMode(boolean enable) -
parse
Parses the given
bufferbytes and emit events to aParserListener.Only the bytes of one frame are consumed, therefore when this method returns, the buffer may contain unconsumed bytes, for example for other frames.
- Parameters:
buffer- the buffer to parse- Returns:
- the result of the parsing
-