Package org.eclipse.jetty.http2.parser
Class HeaderBlockParser
- java.lang.Object
-
- org.eclipse.jetty.http2.parser.HeaderBlockParser
-
public class HeaderBlockParser extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static MetaData
SESSION_FAILURE
static MetaData
STREAM_FAILURE
-
Constructor Summary
Constructors Constructor Description HeaderBlockParser(HeaderParser headerParser, ByteBufferPool byteBufferPool, HpackDecoder hpackDecoder, BodyParser notifier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getMaxHeaderListSize()
MetaData
parse(java.nio.ByteBuffer buffer, int blockLength)
Parses @{code blockLength} HPACK bytes from the givenbuffer
.
-
-
-
Constructor Detail
-
HeaderBlockParser
public HeaderBlockParser(HeaderParser headerParser, ByteBufferPool byteBufferPool, HpackDecoder hpackDecoder, BodyParser notifier)
-
-
Method Detail
-
getMaxHeaderListSize
public int getMaxHeaderListSize()
-
parse
public MetaData parse(java.nio.ByteBuffer buffer, int blockLength)
Parses @{code blockLength} HPACK bytes from the givenbuffer
.- Parameters:
buffer
- the buffer to parseblockLength
- the length of the HPACK block- Returns:
- null, if the buffer contains less than
blockLength
bytes;STREAM_FAILURE
if parsing the HPACK block produced a stream failure;SESSION_FAILURE
if parsing the HPACK block produced a session failure; a valid MetaData object if the parsing was successful.
-
-