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

public Class ControlParser

extends Object
Class Inheritance
Imports
java.io.IOException, java.nio.ByteBuffer, org.eclipse.jetty.http3.Grease, .HTTP3ErrorCode, org.eclipse.jetty.http3.frames.FrameType, org.slf4j.Logger, .LoggerFactory

The HTTP/3 protocol parser.

This parser makes use of the HeaderParser and of BodyParsers to parse HTTP/3 frames.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static enum

Field Summary

Modifier and TypeField and Description
private final BodyParser[]
private final HeaderParser
private static final Logger
private ControlParser.State
private final BodyParser

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
parse(ByteBuffer
the buffer to parse
buffer
)

Parses the given buffer bytes and emit events to a ParserListener.

private void
private void
sessionFailure(ByteBuffer buffer, long error, String reason, Throwable failure)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

bodyParsersback to summary
private final BodyParser[] bodyParsers
headerParserback to summary
private final HeaderParser headerParser
LOGback to summary
private static final Logger LOG
stateback to summary
private ControlParser.State state
unknownBodyParserback to summary
private final BodyParser unknownBodyParser

Constructor Detail

ControlParserback to summary
public ControlParser(ParserListener listener)

Method Detail

parseback to summary
public void parse(ByteBuffer buffer)

Parses the given buffer bytes and emit events to a ParserListener.

Parameters
buffer:ByteBuffer

the buffer to parse

resetback to summary
private void reset()
sessionFailureback to summary
private void sessionFailure(ByteBuffer buffer, long error, String reason, Throwable failure)
org.eclipse.jetty.http3.parser back to summary

private final Enum ControlParser.State

extends Enum<ControlParser.State>
Class Inheritance

Field Summary

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

Constructor Summary

AccessConstructor and Description
private

Method Summary

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

Field Detail

BODYback to summary
public static final ControlParser.State BODY
HEADERback to summary
public static final ControlParser.State HEADER

Constructor Detail

Stateback to summary
private State()

Method Detail

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