public class SettingsBodyParser extends BodyParser
Constructor and Description |
---|
SettingsBodyParser(HeaderParser headerParser,
Parser.Listener listener) |
Modifier and Type | Method and Description |
---|---|
protected void |
emptyBody(ByteBuffer buffer) |
protected boolean |
onSettings(Map<Integer,Integer> settings) |
boolean |
parse(ByteBuffer buffer)
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. |
static SettingsFrame |
parseBody(ByteBuffer buffer) |
protected void |
reset() |
connectionFailure, getBodyLength, getStreamId, hasFlag, isEndStream, isPadding, notifyData, notifyGoAway, notifyHeaders, notifyPing, notifyPriority, notifyPushPromise, notifyReset, notifySettings, notifyWindowUpdate
public SettingsBodyParser(HeaderParser headerParser, Parser.Listener listener)
protected void reset()
protected void emptyBody(ByteBuffer buffer)
emptyBody
in class BodyParser
public boolean parse(ByteBuffer buffer)
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.
parse
in class BodyParser
buffer
- the buffer to parsepublic static SettingsFrame parseBody(ByteBuffer buffer)
Copyright © 1995-2015 Webtide. All Rights Reserved.