Package io.undertow.protocols.http2
Class Http2PushBackParser
- java.lang.Object
-
- io.undertow.protocols.http2.Http2PushBackParser
-
- Direct Known Subclasses:
Http2GoAwayParser
public abstract class Http2PushBackParser extends Object
Parser that supports push back when not all data can be read.- Author:
- Stuart Douglas
-
-
Constructor Summary
Constructors Constructor Description Http2PushBackParser(int frameLength)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidfinish()intgetFrameLength()protected abstract voidhandleData(ByteBuffer resource, io.undertow.protocols.http2.Http2FrameHeaderParser headerParser)booleanisFinished()protected booleanmoreData(int data)voidparse(ByteBuffer data, io.undertow.protocols.http2.Http2FrameHeaderParser headerParser)
-
-
-
Method Detail
-
parse
public void parse(ByteBuffer data, io.undertow.protocols.http2.Http2FrameHeaderParser headerParser) throws IOException
- Throws:
IOException
-
handleData
protected abstract void handleData(ByteBuffer resource, io.undertow.protocols.http2.Http2FrameHeaderParser headerParser) throws IOException
- Throws:
IOException
-
isFinished
public boolean isFinished()
-
finish
protected void finish()
-
moreData
protected boolean moreData(int data)
-
getFrameLength
public int getFrameLength()
-
-