Package org.eclipse.jetty.http2.parser
Class SettingsBodyParser
- java.lang.Object
-
- org.eclipse.jetty.http2.parser.BodyParser
-
- org.eclipse.jetty.http2.parser.SettingsBodyParser
-
public class SettingsBodyParser extends BodyParser
-
-
Constructor Summary
Constructors Constructor Description SettingsBodyParser(HeaderParser headerParser, Parser.Listener listener)SettingsBodyParser(HeaderParser headerParser, Parser.Listener listener, int maxKeys)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidemptyBody(java.nio.ByteBuffer buffer)intgetMaxKeys()protected booleanonSetting(java.nio.ByteBuffer buffer, java.util.Map<java.lang.Integer,java.lang.Integer> settings, int key, int value)protected booleanonSettings(java.nio.ByteBuffer buffer, java.util.Map<java.lang.Integer,java.lang.Integer> settings)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.static SettingsFrameparseBody(java.nio.ByteBuffer buffer)protected voidreset()-
Methods inherited from class org.eclipse.jetty.http2.parser.BodyParser
connectionFailure, getBodyLength, getStreamId, hasFlag, isEndStream, isPadding, notifyData, notifyGoAway, notifyHeaders, notifyPing, notifyPriority, notifyPushPromise, notifyReset, notifySettings, notifyWindowUpdate, streamFailure
-
-
-
-
Constructor Detail
-
SettingsBodyParser
public SettingsBodyParser(HeaderParser headerParser, Parser.Listener listener)
-
SettingsBodyParser
public SettingsBodyParser(HeaderParser headerParser, Parser.Listener listener, int maxKeys)
-
-
Method Detail
-
reset
protected void reset()
-
getMaxKeys
public int getMaxKeys()
-
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
-
onSetting
protected boolean onSetting(java.nio.ByteBuffer buffer, java.util.Map<java.lang.Integer,java.lang.Integer> settings, int key, int value)
-
onSettings
protected boolean onSettings(java.nio.ByteBuffer buffer, java.util.Map<java.lang.Integer,java.lang.Integer> settings)
-
parseBody
public static SettingsFrame parseBody(java.nio.ByteBuffer buffer)
-
-