Http2FrameListener
This class will read HTTP/2 frames and delegate the events to a Http2FrameListener
This interface enforces inbound flow control functionality through
Http2LocalFlowController
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private class | DefaultHttp2ConnectionDecoder.FrameReadListener
Handles all inbound frames from the network. |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final Http2Connection | |
| private final Http2Connection. | |
| private final Http2ConnectionEncoder | |
| private final Http2FrameReader | |
| private Http2FrameListener | |
| private Http2LifecycleManager | |
| private Http2FrameListener | |
| private static final InternalLogger | |
| private final Http2PromisedRequestVerifier | |
| private final Http2SettingsReceivedConsumer |
| Access | Constructor and Description |
|---|---|
| public | DefaultHttp2ConnectionDecoder(Http2Connection connection, Http2ConnectionEncoder encoder, Http2FrameReader frameReader)
|
| public | DefaultHttp2ConnectionDecoder(Http2Connection connection, Http2ConnectionEncoder encoder, Http2FrameReader frameReader, Http2PromisedRequestVerifier requestVerifier)
|
| public | DefaultHttp2ConnectionDecoder(Http2Connection
The connection, Http2ConnectionEncoder Http2Connection associated with this decoder.The encoder, Http2FrameReader Http2ConnectionEncoder associated with this decoder.Responsible for reading/parsing the raw frames. As opposed to this object which applies
h2 semantics on top of the frames. frameReader, Http2PromisedRequestVerifier Determines if push promised streams are valid. requestVerifier, boolean false to disable automatically applying and sending settings acknowledge frame.
The Http2ConnectionEncoder is expected to be an instance of Http2SettingsReceivedConsumer and
will apply the earliest received but not yet ACKed SETTINGS when writing the SETTINGS ACKs.
true to enable automatically applying and sending settings acknowledge frame.Create a new instance. |
| public | DefaultHttp2ConnectionDecoder(Http2Connection
The connection, Http2ConnectionEncoder Http2Connection associated with this decoder.The encoder, Http2FrameReader Http2ConnectionEncoder associated with this decoder.Responsible for reading/parsing the raw frames. As opposed to this object which applies
h2 semantics on top of the frames. frameReader, Http2PromisedRequestVerifier Determines if push promised streams are valid. requestVerifier, boolean false to disable automatically applying and sending settings acknowledge frame.
The Http2ConnectionEncoder is expected to be an instance of
Http2SettingsReceivedConsumer and will apply the earliest received but not yet
ACKed SETTINGS when writing the SETTINGS ACKs. true to enable automatically
applying and sending settings acknowledge frame.false to disable automatically sending ping acknowledge frame. true to enable
automatically sending ping ack frame.Create a new instance. |
| Modifier and Type | Method and Description |
|---|---|
| protected long | Returns: the threshold in bytes which should trigger aGO_AWAY if a set of headers exceeds this amount.SETTINGS_MAX_HEADER_LIST_SIZE for the local
endpoint. maxHeaderListSize)Calculate the threshold in bytes which should trigger a |
| public void | close()
Implements io. |
| public Http2Connection | connection()
Implements io. |
| public void | decodeFrame(ChannelHandlerContext ctx, Buffer in)
Implements io. Http2ConnectionHandler to decode the next frame from the input buffer.
|
| public final Http2LocalFlowController | flowController()
Implements io. |
| public void | frameListener(Http2FrameListener listener)
Implements io. Http2FrameListener which will be notified when frames are decoded.
|
| public Http2FrameListener | frameListener()
Implements io. Http2FrameListener which will be notified when frames are decoded.
|
| public void | lifecycleManager(Http2LifecycleManager lifecycleManager)
Implements io. |
| public Http2Settings | localSettings()
Implements io. |
| pack-priv void | |
| pack-priv void | onUnknownFrame0(ChannelHandlerContext ctx, byte frameType, int streamId, Http2Flags flags, Buffer payload)
|
| public boolean | prefaceReceived()
Implements io. SETTINGS frame was received from the remote endpoint.
|
| private int | |
| private void |