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

public Class DecoderInstructionParser

extends Object
Class Inheritance
Imports
java.nio.ByteBuffer, org.eclipse.jetty.http.compression.EncodingException, .NBitIntegerDecoder, .NBitStringDecoder, org.eclipse.jetty.http3.qpack.QpackException

Parses a stream of unframed instructions for the Decoder. These instructions are sent from the remote Encoder.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface
private static enum
private static enum

Field Summary

Modifier and TypeField and Description
private final DecoderInstructionParser.Handler
private int
private final NBitIntegerDecoder
private String
private DecoderInstructionParser.Operation
private boolean
private DecoderInstructionParser.State
private final NBitStringDecoder

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

private void
private void
private void
private void
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_handlerback to summary
private final DecoderInstructionParser.Handler _handler
_indexback to summary
private int _index
_integerDecoderback to summary
private final NBitIntegerDecoder _integerDecoder
_nameback to summary
private String _name
_operationback to summary
private DecoderInstructionParser.Operation _operation
_referenceDynamicTableback to summary
private boolean _referenceDynamicTable
_stateback to summary
private DecoderInstructionParser.State _state
_stringDecoderback to summary
private final NBitStringDecoder _stringDecoder

Constructor Detail

DecoderInstructionParserback to summary
public DecoderInstructionParser(DecoderInstructionParser.Handler handler)

Method Detail

parseback to summary
public void parse(ByteBuffer buffer) throws QpackException, EncodingException
parseDuplicateback to summary
private void parseDuplicate(ByteBuffer buffer) throws QpackException
parseInsertNameWithReferenceback to summary
private void parseInsertNameWithReference(ByteBuffer buffer) throws QpackException, EncodingException
parseInsertWithLiteralNameback to summary
private void parseInsertWithLiteralName(ByteBuffer buffer) throws QpackException, EncodingException
parseSetDynamicTableCapacityback to summary
private void parseSetDynamicTableCapacity(ByteBuffer buffer) throws QpackException
resetback to summary
public void reset()
org.eclipse.jetty.http3.qpack.internal.parser back to summary

public Interface DecoderInstructionParser.Handler

Known Direct Implementers
org.eclipse.jetty.http3.qpack.QpackDecoder.InstructionHandler

Method Summary

Modifier and TypeMethod and Description
public void
onDuplicate(int index)

public void
onInsertNameWithReference(int nameIndex, boolean isDynamicTableIndex, String value)

public void
public void

Method Detail

onDuplicateback to summary
public void onDuplicate(int index) throws QpackException
onInsertNameWithReferenceback to summary
public void onInsertNameWithReference(int nameIndex, boolean isDynamicTableIndex, String value) throws QpackException
onInsertWithLiteralNameback to summary
public void onInsertWithLiteralName(String name, String value) throws QpackException
onSetDynamicTableCapacityback to summary
public void onSetDynamicTableCapacity(int capacity) throws QpackException
org.eclipse.jetty.http3.qpack.internal.parser back to summary

private final Enum DecoderInstructionParser.Operation

extends Enum<DecoderInstructionParser.Operation>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final DecoderInstructionParser.Operation
public static final DecoderInstructionParser.Operation
public static final DecoderInstructionParser.Operation
public static final DecoderInstructionParser.Operation

Constructor Summary

AccessConstructor and Description
private

Method Summary

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

Field Detail

INDEXback to summary
public static final DecoderInstructionParser.Operation INDEX
NAMEback to summary
public static final DecoderInstructionParser.Operation NAME
NONEback to summary
public static final DecoderInstructionParser.Operation NONE
VALUEback to summary
public static final DecoderInstructionParser.Operation VALUE

Constructor Detail

Operationback to summary
private Operation()

Method Detail

valueOfback to summary
public static DecoderInstructionParser.Operation valueOf(String name)
valuesback to summary
public static DecoderInstructionParser.Operation[] values()
org.eclipse.jetty.http3.qpack.internal.parser back to summary

private final Enum DecoderInstructionParser.State

extends Enum<DecoderInstructionParser.State>
Class Inheritance

Field Summary

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

Constructor Summary

AccessConstructor and Description
private

Method Summary

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

Field Detail

DUPLICATEback to summary
public static final DecoderInstructionParser.State DUPLICATE
LITERAL_NAMEback to summary
public static final DecoderInstructionParser.State LITERAL_NAME
PARSINGback to summary
public static final DecoderInstructionParser.State PARSING
REFERENCED_NAMEback to summary
public static final DecoderInstructionParser.State REFERENCED_NAME
SET_CAPACITYback to summary
public static final DecoderInstructionParser.State SET_CAPACITY

Constructor Detail

Stateback to summary
private State()

Method Detail

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