The HTTP/3 protocol parser.
This parser makes use of the HeaderParser and of
BodyParsers to parse HTTP/3 frames.
| Modifier and Type | Class and Description |
|---|---|
| public static enum | |
| private static enum |
| Modifier and Type | Field and Description |
|---|---|
| private long | |
| private boolean | |
| private final BodyParser[] | |
| private boolean | |
| private final QpackDecoder | |
| private final HeaderParser | |
| private final BooleanSupplier | |
| private final ParserListener | |
| private static final Logger | |
| private MessageParser. | |
| private final long | |
| private BodyParser |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private long | |
| public ParserListener | |
| public void | |
| public boolean | |
| public MessageParser. | Returns: the result of the parsingthe buffer to parse buffer)Parses the given |
| private void | |
| private void | |
| public void | |
| private void |
| beginNanoTime | back to summary |
|---|---|
| private long beginNanoTime | |
| beginNanoTimeStored | back to summary |
|---|---|
| private boolean beginNanoTimeStored | |
| bodyParsers | back to summary |
|---|---|
| private final BodyParser[] bodyParsers | |
| dataMode | back to summary |
|---|---|
| private boolean dataMode | |
| decoder | back to summary |
|---|---|
| private final QpackDecoder decoder | |
| headerParser | back to summary |
|---|---|
| private final HeaderParser headerParser | |
| isLast | back to summary |
|---|---|
| private final BooleanSupplier isLast | |
| listener | back to summary |
|---|---|
| private final ParserListener listener | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| state | back to summary |
|---|---|
| private MessageParser. | |
| streamId | back to summary |
|---|---|
| private final long streamId | |
| unknownBodyParser | back to summary |
|---|---|
| private BodyParser unknownBodyParser | |
| MessageParser | back to summary |
|---|---|
| public MessageParser(ParserListener listener, QpackDecoder decoder, long streamId, BooleanSupplier isLast) | |
| getBeginNanoTime | back to summary |
|---|---|
| private long getBeginNanoTime() | |
| getListener | back to summary |
|---|---|
| public ParserListener getListener() | |
| init | back to summary |
|---|---|
| public void init(UnaryOperator<ParserListener> wrapper) | |
| isDataMode | back to summary |
|---|---|
| public boolean isDataMode() | |
| parse | back to summary |
|---|---|
| public MessageParser. Parses the given Only the bytes of one frame are consumed, therefore when this method returns, the buffer may contain unconsumed bytes, for example for other frames.
| |
| reset | back to summary |
|---|---|
| private void reset() | |
| sessionFailure | back to summary |
|---|---|
| private void sessionFailure(ByteBuffer buffer, long error, String reason, Throwable failure) | |
| setDataMode | back to summary |
|---|---|
| public void setDataMode(boolean enable) | |
| storeBeginNanoTime | back to summary |
|---|---|
| private void storeBeginNanoTime() | |
| Modifier and Type | Field and Description |
|---|---|
| public static final MessageParser. | BLOCKED_FRAME
Indicates that a frame was parsed but its notification was deferred. |
| public static final MessageParser. | FRAME
Indicates that a frame was parsed. |
| public static final MessageParser. | NO_FRAME
Indicates that no frame was parsed, either for lack of bytes, or because or errors. |
| public static final MessageParser. | SWITCH_MODE
Indicates that a DATA frame was expected, but a HEADERS was found instead. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static MessageParser. | |
| public static MessageParser. |
| BLOCKED_FRAME | back to summary |
|---|---|
| public static final MessageParser. Indicates that a frame was parsed but its notification was deferred. This is the case of HEADERS frames that are waiting to be unblocked. | |
| FRAME | back to summary |
|---|---|
| public static final MessageParser. Indicates that a frame was parsed. | |
| NO_FRAME | back to summary |
|---|---|
| public static final MessageParser. Indicates that no frame was parsed, either for lack of bytes, or because or errors. | |
| SWITCH_MODE | back to summary |
|---|---|
| public static final MessageParser. Indicates that a DATA frame was expected, but a HEADERS was found instead. | |
| Result | back to summary |
|---|---|
| private Result() | |
| valueOf | back to summary |
|---|---|
| public static MessageParser. | |
| values | back to summary |
|---|---|
| public static MessageParser. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final MessageParser. | |
| public static final MessageParser. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static MessageParser. | |
| public static MessageParser. |
| BODY | back to summary |
|---|---|
| public static final MessageParser. | |
| HEADER | back to summary |
|---|---|
| public static final MessageParser. | |
| State | back to summary |
|---|---|
| private State() | |
| valueOf | back to summary |
|---|---|
| public static MessageParser. | |
| values | back to summary |
|---|---|
| public static MessageParser. | |