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

public Class SettingsBodyParser

extends BodyParser
Class Inheritance
Imports
java.nio.ByteBuffer, java.util.LinkedHashMap, .Map, org.eclipse.jetty.http3.HTTP3ErrorCode, org.eclipse.jetty.http3.frames.SettingsFrame, org.eclipse.jetty.http3.internal.VarLenInt

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static enum

Field Summary

Modifier and TypeField and Description
private long
private long
private Map<Long, Long>
private SettingsBodyParser.State
private final VarLenInt

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected void
private void
onSettings(Map<Long, Long> settings)

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

keyback to summary
private long key
lengthback to summary
private long length
settingsback to summary
private Map<Long, Long> settings
stateback to summary
private SettingsBodyParser.State state
varLenIntback to summary
private final VarLenInt varLenInt

Constructor Detail

SettingsBodyParserback to summary
public SettingsBodyParser(HeaderParser headerParser, ParserListener listener)

Method Detail

emptyBodyback to summary
protected void emptyBody(ByteBuffer buffer)

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

Annotations
@Override
onSettingsback to summary
private void onSettings(Map<Long, Long> settings)
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 SettingsBodyParser.State

extends Enum<SettingsBodyParser.State>
Class Inheritance

Field Summary

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

Constructor Summary

AccessConstructor and Description
private

Method Summary

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

Field Detail

INITback to summary
public static final SettingsBodyParser.State INIT
KEYback to summary
public static final SettingsBodyParser.State KEY
VALUEback to summary
public static final SettingsBodyParser.State VALUE

Constructor Detail

Stateback to summary
private State()

Method Detail

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