Top Description Fields Constructors Methods
io.undertow.protocols.http2

public abstract Class Http2PushBackParser

extends Object
Class Inheritance
Known Direct Subclasses
io.undertow.protocols.http2.Http2RstStreamParser, io.undertow.protocols.http2.Http2SettingsParser, io.undertow.protocols.http2.Http2WindowUpdateParser, io.undertow.protocols.http2.Http2DataFrameParser, io.undertow.protocols.http2.Http2DiscardParser, io.undertow.protocols.http2.Http2GoAwayParser, io.undertow.protocols.http2.Http2HeaderBlockParser, io.undertow.protocols.http2.Http2PingParser, io.undertow.protocols.http2.Http2PriorityParser
Imports
java.io.IOException, java.nio.ByteBuffer, io.undertow.UndertowMessages

Parser that supports push back when not all data can be read.
Author
Stuart Douglas

Field Summary

Modifier and TypeField and Description
pack-priv int
private boolean
private final int
private byte[]
private int

Constructor Summary

AccessConstructor and Description
public
Http2PushBackParser(int frameLength)

Method Summary

Modifier and TypeMethod and Description
protected void
public int
protected abstract void
public boolean
protected void
moreData(int data)

public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

cntback to summary
pack-priv int cnt
finishedback to summary
private boolean finished
frameLengthback to summary
private final int frameLength
pushedBackDataback to summary
private byte[] pushedBackData
remainingDataback to summary
private int remainingData

Constructor Detail

Http2PushBackParserback to summary
public Http2PushBackParser(int frameLength)

Method Detail

finishback to summary
protected void finish()
getFrameLengthback to summary
public int getFrameLength()
handleDataback to summary
protected abstract void handleData(ByteBuffer resource, Http2FrameHeaderParser headerParser) throws IOException
isFinishedback to summary
public boolean isFinished()
moreDataback to summary
protected void moreData(int data)
parseback to summary
public void parse(ByteBuffer data, Http2FrameHeaderParser headerParser) throws IOException