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

public Class DataBodyParser

extends BodyParser
Class Inheritance
Imports
java.nio.ByteBuffer, java.util.function.BooleanSupplier, org.eclipse.jetty.http3.frames.DataFrame, org.eclipse.jetty.util.BufferUtil, 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 BooleanSupplier
private long
private static final Logger
private DataBodyParser.State
private final long

Constructor Summary

AccessConstructor and Description
public
DataBodyParser(HeaderParser headerParser, ParserListener listener, long streamId, BooleanSupplier isLast)

Method Summary

Modifier and TypeMethod and Description
protected void
private void
private void
onData(ByteBuffer buffer, boolean last, boolean fragment)

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:
getBodyLengthgetParserListenernotifyGoAwaynotifySessionFailurenotifySettingsnotifyStreamFailuresessionFailure

Field Detail

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 DataBodyParser.State state
streamIdback to summary
private final long streamId

Constructor Detail

DataBodyParserback to summary
public DataBodyParser(HeaderParser headerParser, ParserListener listener, long streamId, BooleanSupplier isLast)

Method Detail

emptyBodyback to summary
protected void emptyBody(ByteBuffer buffer)

Overrides org.eclipse.jetty.http3.parser.BodyParser.emptyBody.

Annotations
@Override
notifyDataback to summary
private void notifyData(DataFrame frame)
onDataback to summary
private void onData(ByteBuffer buffer, boolean last, boolean fragment)
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 DataBodyParser.State

extends Enum<DataBodyParser.State>
Class Inheritance

Field Summary

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

Constructor Summary

AccessConstructor and Description
private

Method Summary

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

Field Detail

DATAback to summary
public static final DataBodyParser.State DATA
INITback to summary
public static final DataBodyParser.State INIT

Constructor Detail

Stateback to summary
private State()

Method Detail

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