Package io.undertow.protocols.http2
Class Http2PushBackParser
java.lang.Object
io.undertow.protocols.http2.Http2PushBackParser
- Direct Known Subclasses:
Http2GoAwayParser
Parser that supports push back when not all data can be read.
- Author:
- Stuart Douglas
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
finish()
int
protected abstract void
handleData
(ByteBuffer resource, io.undertow.protocols.http2.Http2FrameHeaderParser headerParser) boolean
protected void
moreData
(int data) void
parse
(ByteBuffer data, io.undertow.protocols.http2.Http2FrameHeaderParser headerParser)
-
Constructor Details
-
Http2PushBackParser
public Http2PushBackParser(int frameLength)
-
-
Method Details
-
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 void moreData(int data) -
getFrameLength
public int getFrameLength()
-