Class DataBodyParser
java.lang.Object
org.eclipse.jetty.http3.parser.BodyParser
org.eclipse.jetty.http3.parser.DataBodyParser
-
Nested Class Summary
Nested classes/interfaces inherited from class BodyParser
BodyParser.Result -
Constructor Summary
ConstructorsConstructorDescriptionDataBodyParser(HeaderParser headerParser, ParserListener listener, long streamId, BooleanSupplier isLast) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidemptyBody(ByteBuffer buffer) parse(ByteBuffer buffer) Parses the frame body bytes in the givenbuffer.Methods inherited from class BodyParser
getBodyLength, getParserListener, notifyGoAway, notifySessionFailure, notifySettings, notifyStreamFailure, sessionFailure
-
Constructor Details
-
DataBodyParser
public DataBodyParser(HeaderParser headerParser, ParserListener listener, long streamId, BooleanSupplier isLast)
-
-
Method Details
-
emptyBody
- Overrides:
emptyBodyin classBodyParser
-
parse
Description copied from class:BodyParserParses the frame body bytes in the given
buffer.Only the frame body bytes are consumed, therefore when this method returns, the buffer may contain unconsumed bytes, for example for other frames.
- Specified by:
parsein classBodyParser- Parameters:
buffer- the buffer to parse- Returns:
- true if all the frame body bytes were parsed; false if not enough frame body bytes were present in the buffer
-