Package org.eclipse.jetty.http2.parser
Class HeaderBlockParser
java.lang.Object
org.eclipse.jetty.http2.parser.HeaderBlockParser
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ByteBufferprivate final org.eclipse.jetty.io.ByteBufferPoolprivate final HeaderParserprivate final HpackDecoderprivate static final org.eclipse.jetty.util.log.Loggerprivate final BodyParserstatic final org.eclipse.jetty.http.MetaDatastatic final org.eclipse.jetty.http.MetaData -
Constructor Summary
ConstructorsConstructorDescriptionHeaderBlockParser(HeaderParser headerParser, org.eclipse.jetty.io.ByteBufferPool byteBufferPool, HpackDecoder hpackDecoder, BodyParser notifier) -
Method Summary
Modifier and TypeMethodDescriptionintorg.eclipse.jetty.http.MetaDataparse(ByteBuffer buffer, int blockLength) Parses @{code blockLength} HPACK bytes from the givenbuffer.
-
Field Details
-
STREAM_FAILURE
public static final org.eclipse.jetty.http.MetaData STREAM_FAILURE -
SESSION_FAILURE
public static final org.eclipse.jetty.http.MetaData SESSION_FAILURE -
LOG
private static final org.eclipse.jetty.util.log.Logger LOG -
headerParser
-
byteBufferPool
private final org.eclipse.jetty.io.ByteBufferPool byteBufferPool -
hpackDecoder
-
notifier
-
blockBuffer
-
-
Constructor Details
-
HeaderBlockParser
public HeaderBlockParser(HeaderParser headerParser, org.eclipse.jetty.io.ByteBufferPool byteBufferPool, HpackDecoder hpackDecoder, BodyParser notifier)
-
-
Method Details
-
getMaxHeaderListSize
public int getMaxHeaderListSize() -
parse
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
blockLengthbytes;STREAM_FAILUREif parsing the HPACK block produced a stream failure;SESSION_FAILUREif parsing the HPACK block produced a session failure; a valid MetaData object if the parsing was successful.
-