The HTTP/2 protocol parser.
This parser makes use of the HeaderParser and of
BodyParsers to parse HTTP/2 frames.
| Modifier and Type | Class and Description |
|---|---|
| public static interface | |
| private static enum |
| Modifier and Type | Field and Description |
|---|---|
| private long | |
| private final BodyParser[] | |
| private final ByteBufferPool | |
| private boolean | |
| private final HeaderParser | |
| private final HpackDecoder | |
| private Parser. | |
| private static final Logger | |
| private int | |
| private int | |
| private boolean | |
| private Parser. | |
| private UnknownBodyParser |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private boolean | |
| public long | |
| protected int | |
| public HpackDecoder | |
| protected Parser. | |
| public int | |
| public int | |
| protected boolean | |
| public void | |
| protected void | |
| public void | parse(ByteBuffer
the buffer to parse buffer)Parses the given |
| protected boolean | |
| protected boolean | |
| private void | |
| public void | |
| public void | |
| private void |
| beginNanoTime | back to summary |
|---|---|
| private long beginNanoTime | |
| bodyParsers | back to summary |
|---|---|
| private final BodyParser[] bodyParsers | |
| bufferPool | back to summary |
|---|---|
| private final ByteBufferPool bufferPool | |
| continuation | back to summary |
|---|---|
| private boolean continuation | |
| headerParser | back to summary |
|---|---|
| private final HeaderParser headerParser | |
| hpackDecoder | back to summary |
|---|---|
| private final HpackDecoder hpackDecoder | |
| listener | back to summary |
|---|---|
| private Parser. | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| maxFrameSize | back to summary |
|---|---|
| private int maxFrameSize | |
| maxSettingsKeys | back to summary |
|---|---|
| private int maxSettingsKeys | |
| nanoTimeStored | back to summary |
|---|---|
| private boolean nanoTimeStored | |
| state | back to summary |
|---|---|
| private Parser. | |
| unknownBodyParser | back to summary |
|---|---|
| private UnknownBodyParser unknownBodyParser | |
| Parser | back to summary |
|---|---|
| public Parser(ByteBufferPool bufferPool, int maxHeaderSize) | |
| Parser | back to summary |
|---|---|
| public Parser(ByteBufferPool bufferPool, int maxHeaderSize, RateControl rateControl) | |
| clearBeginNanoTime | back to summary |
|---|---|
| private void clearBeginNanoTime() | |
| connectionFailure | back to summary |
|---|---|
| private boolean connectionFailure(ByteBuffer buffer, ErrorCode error, String reason) | |
| getBeginNanoTime | back to summary |
|---|---|
| public long getBeginNanoTime() | |
| getFrameType | back to summary |
|---|---|
| protected int getFrameType() | |
| getHpackDecoder | back to summary |
|---|---|
| public HpackDecoder getHpackDecoder() | |
| getListener | back to summary |
|---|---|
| protected Parser. | |
| getMaxFrameSize | back to summary |
|---|---|
| public int getMaxFrameSize() | |
| getMaxSettingsKeys | back to summary |
|---|---|
| public int getMaxSettingsKeys() | |
| hasFlag | back to summary |
|---|---|
| protected boolean hasFlag(int bit) | |
| init | back to summary |
|---|---|
| public void init(Parser. | |
| notifyConnectionFailure | back to summary |
|---|---|
| protected void notifyConnectionFailure(int error, String reason) | |
| parse | back to summary |
|---|---|
| public void parse(ByteBuffer buffer) Parses the given When this method returns, the buffer may not be fully consumed, so invocations to this method should be wrapped in a loop:
while (buffer.hasRemaining())
parser.parse(buffer);
| |
| parseBody | back to summary |
|---|---|
| protected boolean parseBody(ByteBuffer buffer) | |
| parseHeader | back to summary |
|---|---|
| protected boolean parseHeader(ByteBuffer buffer) | |
| reset | back to summary |
|---|---|
| private void reset() | |
| setMaxFrameSize | back to summary |
|---|---|
| public void setMaxFrameSize(int maxFrameSize) | |
| setMaxSettingsKeys | back to summary |
|---|---|
| public void setMaxSettingsKeys(int maxSettingsKeys) | |
| storeBeginNanoTime | back to summary |
|---|---|
| private void storeBeginNanoTime() | |
| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Method and Description |
|---|---|
| public default void | |
| public default void | |
| public default void | |
| public default void | |
| public default void | |
| public default void | |
| public default void | |
| public default void | |
| public default void | |
| public default void | |
| public default void |
| onConnectionFailure | back to summary |
|---|---|
| public default void onConnectionFailure(int error, String reason) | |
| onData | back to summary |
|---|---|
| public default void onData(DataFrame frame) | |
| onGoAway | back to summary |
|---|---|
| public default void onGoAway(GoAwayFrame frame) | |
| onHeaders | back to summary |
|---|---|
| public default void onHeaders(HeadersFrame frame) | |
| onPing | back to summary |
|---|---|
| public default void onPing(PingFrame frame) | |
| onPriority | back to summary |
|---|---|
| public default void onPriority(PriorityFrame frame) | |
| onPushPromise | back to summary |
|---|---|
| public default void onPushPromise(PushPromiseFrame frame) | |
| onReset | back to summary |
|---|---|
| public default void onReset(ResetFrame frame) | |
| onSettings | back to summary |
|---|---|
| public default void onSettings(SettingsFrame frame) | |
| onStreamFailure | back to summary |
|---|---|
| public default void onStreamFailure(int streamId, int error, String reason) | |
| onWindowUpdate | back to summary |
|---|---|
| public default void onWindowUpdate(WindowUpdateFrame frame) | |
| listener | back to summary |
|---|---|
| private final Parser. | |
| Wrapper | back to summary |
|---|---|
| public Wrapper(Parser. | |
| getParserListener | back to summary |
|---|---|
| public Parser. | |
| onConnectionFailure | back to summary |
|---|---|
| public void onConnectionFailure(int error, String reason) Overrides default org.
| |
| onData | back to summary |
|---|---|
| public void onData(DataFrame frame) Overrides default org.
| |
| onGoAway | back to summary |
|---|---|
| public void onGoAway(GoAwayFrame frame) Overrides default org.
| |
| onHeaders | back to summary |
|---|---|
| public void onHeaders(HeadersFrame frame) Overrides default org.
| |
| onPing | back to summary |
|---|---|
| public void onPing(PingFrame frame) Overrides default org.
| |
| onPriority | back to summary |
|---|---|
| public void onPriority(PriorityFrame frame) Overrides default org.
| |
| onPushPromise | back to summary |
|---|---|
| public void onPushPromise(PushPromiseFrame frame) Overrides default org.
| |
| onReset | back to summary |
|---|---|
| public void onReset(ResetFrame frame) Overrides default org.
| |
| onSettings | back to summary |
|---|---|
| public void onSettings(SettingsFrame frame) Overrides default org.
| |
| onStreamFailure | back to summary |
|---|---|
| public void onStreamFailure(int streamId, int error, String reason) Overrides default org.
| |
| onWindowUpdate | back to summary |
|---|---|
| public void onWindowUpdate(WindowUpdateFrame frame) Overrides default org.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final Parser. | |
| public static final Parser. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Parser. | |
| public static Parser. |
| BODY | back to summary |
|---|---|
| public static final Parser. | |
| HEADER | back to summary |
|---|---|
| public static final Parser. | |
| State | back to summary |
|---|---|
| private State() | |
| valueOf | back to summary |
|---|---|
| public static Parser. | |
| values | back to summary |
|---|---|
| public static Parser. | |