Package org.eclipse.jetty.http2.parser
Class ContinuationBodyParser
java.lang.Object
org.eclipse.jetty.http2.parser.BodyParser
org.eclipse.jetty.http2.parser.ContinuationBodyParser
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final HeaderBlockFragments
private final HeaderBlockParser
private int
private ContinuationBodyParser.State
Fields inherited from class org.eclipse.jetty.http2.parser.BodyParser
LOG
-
Constructor Summary
ConstructorsConstructorDescriptionContinuationBodyParser
(HeaderParser headerParser, Parser.Listener listener, HeaderBlockParser headerBlockParser, HeaderBlockFragments headerBlockFragments) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
emptyBody
(ByteBuffer buffer) private boolean
onHeaders
(ByteBuffer buffer) boolean
parse
(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 void
reset()
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
-
headerBlockParser
-
headerBlockFragments
-
state
-
length
private int length
-
-
Constructor Details
-
ContinuationBodyParser
public ContinuationBodyParser(HeaderParser headerParser, Parser.Listener listener, HeaderBlockParser headerBlockParser, HeaderBlockFragments headerBlockFragments)
-
-
Method Details
-
emptyBody
- Overrides:
emptyBody
in classBodyParser
-
parse
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 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
-
onHeaders
-
reset
private void reset()
-