Package org.eclipse.jetty.http2.parser
Class DataBodyParser
java.lang.Object
org.eclipse.jetty.http2.parser.BodyParser
org.eclipse.jetty.http2.parser.DataBodyParser
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate intprivate intprivate DataBodyParser.StateFields inherited from class org.eclipse.jetty.http2.parser.BodyParser
LOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidemptyBody(ByteBuffer buffer) private voidonData(ByteBuffer buffer, boolean fragment, int padding) private voidbooleanparse(ByteBuffer buffer) Parses the body bytes in the givenbuffer; only the body bytes are consumed, therefore when this method returns, the buffer may contain unconsumed bytes.private voidreset()Methods inherited from class org.eclipse.jetty.http2.parser.BodyParser
connectionFailure, getBodyLength, getFrameType, getStreamId, hasFlag, isEndStream, isPadding, notifyData, notifyGoAway, notifyHeaders, notifyPing, notifyPriority, notifyPushPromise, notifyReset, notifySettings, notifyWindowUpdate, rateControlOnEvent, streamFailure
-
Field Details
-
state
-
padding
private int padding -
paddingLength
private int paddingLength -
length
private int length
-
-
Constructor Details
-
DataBodyParser
-
-
Method Details
-
reset
private void reset() -
emptyBody
- Overrides:
emptyBodyin classBodyParser
-
parse
Description copied from class:BodyParserParses 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:
parsein classBodyParser- 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
-
onData
-
onData
-