Top Inners Fields Constructors Methods
org.eclipse.jetty.http3.parser

public Class HeadersBodyParser

extends BodyParser
Class Inheritance
Imports
java.nio.ByteBuffer, java.util.ArrayList, .List, java.util.function.BooleanSupplier, org.eclipse.jetty.http.MetaData, org.eclipse.jetty.http3.HTTP3ErrorCode, org.eclipse.jetty.http3.frames.HeadersFrame, org.eclipse.jetty.http3.qpack.QpackDecoder, .QpackException, org.slf4j.Logger, .LoggerFactory

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static enum

Field Summary

Modifier and TypeField and Description
private final List<ByteBuffer>
private final QpackDecoder
private final BooleanSupplier
private long
private static final Logger
private HeadersBodyParser.State
private final long

Constructor Summary

AccessConstructor and Description
public
HeadersBodyParser(HeaderParser headerParser, ParserListener listener, QpackDecoder decoder, long streamId, BooleanSupplier isLast)

Method Summary

Modifier and TypeMethod and Description
private boolean
decode(ByteBuffer encoded, boolean last)

protected void
notifyHeaders(HeadersFrame frame, boolean wasBlocked)

private void
onHeaders(MetaData metaData, boolean last, boolean wasBlocked)

public BodyParser.Result
parse(ByteBuffer buffer)

Implements abstract org.eclipse.jetty.http3.parser.BodyParser.parse.

Parses the frame body bytes in the given buffer.

private void
Inherited from org.eclipse.jetty.http3.parser.BodyParser:
emptyBodygetBodyLengthgetParserListenernotifyGoAwaynotifySessionFailurenotifySettingsnotifyStreamFailuresessionFailure

Field Detail

byteBuffersback to summary
private final List<ByteBuffer> byteBuffers
decoderback to summary
private final QpackDecoder decoder
isLastback to summary
private final BooleanSupplier isLast
lengthback to summary
private long length
LOGback to summary
private static final Logger LOG

Hides org.eclipse.jetty.http3.parser.BodyParser.LOG.

stateback to summary
private HeadersBodyParser.State state
streamIdback to summary
private final long streamId

Constructor Detail

HeadersBodyParserback to summary
public HeadersBodyParser(HeaderParser headerParser, ParserListener listener, QpackDecoder decoder, long streamId, BooleanSupplier isLast)

Method Detail

decodeback to summary
private boolean decode(ByteBuffer encoded, boolean last)
notifyHeadersback to summary
protected void notifyHeaders(HeadersFrame frame, boolean wasBlocked)
onHeadersback to summary
private void onHeaders(MetaData metaData, boolean last, boolean wasBlocked)
parseback to summary
public BodyParser.Result parse(ByteBuffer buffer)

Implements abstract org.eclipse.jetty.http3.parser.BodyParser.parse.

Doc from org.eclipse.jetty.http3.parser.BodyParser.parse.

Parses the frame body bytes in the given buffer.

Only the frame body bytes are consumed, therefore when this method returns, the buffer may contain unconsumed bytes, for example for other frames.

Annotations
@Override
resetback to summary
private void reset()
org.eclipse.jetty.http3.parser back to summary

private final Enum HeadersBodyParser.State

extends Enum<HeadersBodyParser.State>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final HeadersBodyParser.State
public static final HeadersBodyParser.State

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static HeadersBodyParser.State
public static HeadersBodyParser.State[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

HEADERSback to summary
public static final HeadersBodyParser.State HEADERS
INITback to summary
public static final HeadersBodyParser.State INIT

Constructor Detail

Stateback to summary
private State()

Method Detail

valueOfback to summary
public static HeadersBodyParser.State valueOf(String name)
valuesback to summary
public static HeadersBodyParser.State[] values()