Package org.eclipse.jetty.http2.parser
Class ContinuationBodyParser
- java.lang.Object
-
- org.eclipse.jetty.http2.parser.BodyParser
-
- org.eclipse.jetty.http2.parser.ContinuationBodyParser
-
public class ContinuationBodyParser extends BodyParser
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classContinuationBodyParser.State
-
Field Summary
Fields Modifier and Type Field Description private HeaderBlockFragmentsheaderBlockFragmentsprivate HeaderBlockParserheaderBlockParserprivate intlengthprivate ContinuationBodyParser.Statestate-
Fields inherited from class org.eclipse.jetty.http2.parser.BodyParser
LOG
-
-
Constructor Summary
Constructors Constructor Description ContinuationBodyParser(HeaderParser headerParser, Parser.Listener listener, HeaderBlockParser headerBlockParser, HeaderBlockFragments headerBlockFragments)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidemptyBody(java.nio.ByteBuffer buffer)private booleanonHeaders(java.nio.ByteBuffer buffer)booleanparse(java.nio.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 Detail
-
headerBlockParser
private final HeaderBlockParser headerBlockParser
-
headerBlockFragments
private final HeaderBlockFragments headerBlockFragments
-
state
private ContinuationBodyParser.State state
-
length
private int length
-
-
Constructor Detail
-
ContinuationBodyParser
public ContinuationBodyParser(HeaderParser headerParser, Parser.Listener listener, HeaderBlockParser headerBlockParser, HeaderBlockFragments headerBlockFragments)
-
-
Method Detail
-
emptyBody
protected void emptyBody(java.nio.ByteBuffer buffer)
- Overrides:
emptyBodyin classBodyParser
-
parse
public boolean parse(java.nio.ByteBuffer buffer)
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
-
onHeaders
private boolean onHeaders(java.nio.ByteBuffer buffer)
-
reset
private void reset()
-
-