Deprecated
use Http2FrameCodecBuilder together with Http2MultiplexHandler.
Http2MultiplexCodec.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final ChannelHandler | |
| private Http2FrameWriter | |
| private ChannelHandler |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Http2MultiplexCodecBuilder | autoAckPingFrame(boolean autoAckPingFrame)
Overrides io.
Deprecated
as a consequence of
Determine if PING frame should automatically be acknowledged or not.
Http2MultiplexCodecBuilder being deprecated.
|
| public Http2MultiplexCodecBuilder | autoAckSettingsFrame(boolean autoAckSettings)
Overrides io.
Deprecated
as a consequence of
Determine if settings frame should automatically be acknowledged and applied.
Http2MultiplexCodecBuilder being deprecated.
|
| public Http2MultiplexCodec | build()
Overrides io.
Deprecated
as a consequence of
Create a new Http2MultiplexCodec being deprecated.
Http2ConnectionHandler.
|
| protected Http2MultiplexCodec | build(Http2ConnectionDecoder decoder, Http2ConnectionEncoder encoder, Http2Settings initialSettings)
Implements abstract io.
Deprecated
as a consequence of
Implement this method to create a new Http2MultiplexCodec being deprecated.
Http2ConnectionHandler or its subtype instance.
|
| private static ChannelHandler | |
| public int | decoderEnforceMaxConsecutiveEmptyDataFrames()
Returns the maximum number of consecutive empty DATA frames (without end_of_stream flag) that are allowed before
the connection is closed.
|
| public Http2MultiplexCodecBuilder | decoderEnforceMaxConsecutiveEmptyDataFrames(int maxConsecutiveEmptyFrames)
Deprecated
as a consequence of
Sets the maximum number of consecutive empty DATA frames (without end_of_stream flag) that are allowed before
the connection is closed.
Http2MultiplexCodecBuilder being deprecated.
|
| public Http2MultiplexCodecBuilder | decoderEnforceMaxRstFramesPerWindow(int maxRstFramesPerWindow, int secondsPerWindow)
Deprecated
as a consequence of
Sets the maximum number RST frames that are allowed per window before
the connection is closed.
Http2MultiplexCodecBuilder being deprecated.
|
| public Http2MultiplexCodecBuilder | decoupleCloseAndGoAway(boolean
true to make Channel#close() directly close the underlying
transport, and not attempt graceful closure via GOAWAY.Overrides io.
Deprecated
as a consequence of
Determine if the Http2MultiplexCodecBuilder being deprecated.
Channel#close() should be coupled with goaway and graceful close.
|
| public boolean | encoderEnforceMaxConcurrentStreams()
Returns if the encoder should queue frames if the maximum number of concurrent streams
would otherwise be exceeded.
|
| public Http2MultiplexCodecBuilder | encoderEnforceMaxConcurrentStreams(boolean encoderEnforceMaxConcurrentStreams)
Deprecated
as a consequence of
Sets if the encoder should queue frames if the maximum number of concurrent streams
would otherwise be exceeded.
Http2MultiplexCodecBuilder being deprecated.
|
| public int | encoderEnforceMaxQueuedControlFrames()
Returns the maximum number of queued control frames that are allowed before the connection is closed.
|
| public Http2MultiplexCodecBuilder | encoderEnforceMaxQueuedControlFrames(int maxQueuedControlFrames)
Deprecated
as a consequence of
Sets the maximum number of queued control frames that are allowed before the connection is closed.
Http2MultiplexCodecBuilder being deprecated.
|
| public Http2MultiplexCodecBuilder | encoderIgnoreMaxHeaderListSize(boolean
true to ignore
SETTINGS_MAX_HEADER_LIST_SIZE.Overrides io.
Deprecated
as a consequence of
Sets if the SETTINGS_MAX_HEADER_LIST_SIZE
should be ignored when encoding headers.
Http2MultiplexCodecBuilder being deprecated.
|
| public Http2MultiplexCodecBuilder | flushPreface(boolean
true to automatically flush, false otherwise.Overrides io.
Deprecated
as a consequence of
Determine if the Preface
should be automatically flushed when the Http2MultiplexCodecBuilder being deprecated.
Channel becomes active or not.
|
| public static Http2MultiplexCodecBuilder | forClient(ChannelHandler
the handler added to channels for remotely-created streams. It must be
childHandler)ChannelHandler..
Deprecated
as a consequence of
Creates a builder for an HTTP/2 client.
Http2MultiplexCodecBuilder being deprecated.
|
| public static Http2MultiplexCodecBuilder | forServer(ChannelHandler
the handler added to channels for remotely-created streams. It must be
childHandler)ChannelHandler..
Deprecated
as a consequence of
Creates a builder for an HTTP/2 server.
Http2MultiplexCodecBuilder being deprecated.
|
| public Http2FrameLogger | frameLogger()
Overrides io. |
| public Http2MultiplexCodecBuilder | frameLogger(Http2FrameLogger frameLogger)
Overrides io.
Deprecated
as a consequence of
Sets the logger that is used for the encoder and decoder.
Http2MultiplexCodecBuilder being deprecated.
|
| pack-priv Http2MultiplexCodecBuilder | frameWriter(Http2FrameWriter frameWriter)
Deprecated
as a consequence of
Http2MultiplexCodecBuilder being deprecated.
|
| public long | gracefulShutdownTimeoutMillis()
Overrides io. Http2Connection in milliseconds.
|
| public Http2MultiplexCodecBuilder | gracefulShutdownTimeoutMillis(long gracefulShutdownTimeoutMillis)
Overrides io.
Deprecated
as a consequence of
Sets the graceful shutdown timeout of the Http2MultiplexCodecBuilder being deprecated.
Http2Connection in milliseconds.
|
| public Http2HeadersEncoder. | headerSensitivityDetector()
Overrides io. SensitivityDetector to use.
|
| public Http2MultiplexCodecBuilder | headerSensitivityDetector(Http2HeadersEncoder.
Overrides io.
Deprecated
as a consequence of
Sets the Http2MultiplexCodecBuilder being deprecated.
SensitivityDetector to use.
|
| public Http2MultiplexCodecBuilder | initialHuffmanDecodeCapacity(int initialHuffmanDecodeCapacity)
Overrides io.
Deprecated
Does nothing, do not call.
|
| public Http2Settings | initialSettings()
Overrides io. Http2Settings to use for the initial connection settings exchange.
|
| public Http2MultiplexCodecBuilder | initialSettings(Http2Settings settings)
Overrides io.
Deprecated
as a consequence of
Sets the Http2MultiplexCodecBuilder being deprecated.
Http2Settings to use for the initial connection settings exchange.
|
| public boolean | isServer()
Overrides io. build() will to create a Http2Connection in server mode (true)
or client mode (false).
|
| public boolean | isValidateHeaders()
Overrides io. |
| public int | maxReservedStreams()
Overrides io. |
| public Http2MultiplexCodecBuilder | maxReservedStreams(int maxReservedStreams)
Overrides io.
Deprecated
as a consequence of
Set the maximum number of streams which can be in the reserved state at any given time.
Http2MultiplexCodecBuilder being deprecated.
|
| public Http2MultiplexCodecBuilder | validateHeaders(boolean validateHeaders)
Overrides io.
Deprecated
as a consequence of
Sets if HTTP headers should be validated according to
RFC 7540, 8.1.2.6.
Http2MultiplexCodecBuilder being deprecated.
|
| public Http2MultiplexCodecBuilder | withUpgradeStreamHandler(ChannelHandler upgradeStreamHandler)
Deprecated
as a consequence of
Http2MultiplexCodecBuilder being deprecated.
|
| childHandler | back to summary |
|---|---|
| pack-priv final ChannelHandler childHandler | |
| frameWriter | back to summary |
|---|---|
| private Http2FrameWriter frameWriter | |
| upgradeStreamHandler | back to summary |
|---|---|
| private ChannelHandler upgradeStreamHandler | |
| Http2MultiplexCodecBuilder | back to summary |
|---|---|
| pack-priv Http2MultiplexCodecBuilder(boolean server, ChannelHandler childHandler) | |
| autoAckPingFrame | back to summary |
|---|---|
| public Http2MultiplexCodecBuilder autoAckPingFrame(boolean autoAckPingFrame) Overrides io. Doc from io. Deprecated as a consequence of Determine if PING frame should automatically be acknowledged or not.
| |
| autoAckSettingsFrame | back to summary |
|---|---|
| public Http2MultiplexCodecBuilder autoAckSettingsFrame(boolean autoAckSettings) Overrides io. Doc from io. Deprecated as a consequence of Determine if settings frame should automatically be acknowledged and applied.
| |
| build | back to summary |
|---|---|
| public Http2MultiplexCodec build() Overrides io. Doc from io. Deprecated as a consequence of Create a new
| |
| build | back to summary |
|---|---|
| protected Http2MultiplexCodec build(Http2ConnectionDecoder decoder, Http2ConnectionEncoder encoder, Http2Settings initialSettings) Implements abstract io. Doc from io. Deprecated as a consequence of Implement this method to create a new The return of this method will be subject to the following:
| |
| checkSharable | back to summary |
|---|---|
| private static ChannelHandler checkSharable(ChannelHandler handler) | |
| decoderEnforceMaxConsecutiveEmptyDataFrames | back to summary |
|---|---|
| public int decoderEnforceMaxConsecutiveEmptyDataFrames() Returns the maximum number of consecutive empty DATA frames (without end_of_stream flag) that are allowed before
the connection is closed. This allows to protect against the remote peer flooding us with such frames and
so use up a lot of CPU. There is no valid use-case for empty DATA frames without end_of_stream flag.
| |
| decoderEnforceMaxConsecutiveEmptyDataFrames | back to summary |
|---|---|
| public Http2MultiplexCodecBuilder decoderEnforceMaxConsecutiveEmptyDataFrames(int maxConsecutiveEmptyFrames) Deprecated as a consequence of Sets the maximum number of consecutive empty DATA frames (without end_of_stream flag) that are allowed before
the connection is closed. This allows to protect against the remote peer flooding us with such frames and
so use up a lot of CPU. There is no valid use-case for empty DATA frames without end_of_stream flag.
| |
| decoderEnforceMaxRstFramesPerWindow | back to summary |
|---|---|
| public Http2MultiplexCodecBuilder decoderEnforceMaxRstFramesPerWindow(int maxRstFramesPerWindow, int secondsPerWindow) Deprecated as a consequence of Sets the maximum number RST frames that are allowed per window before
the connection is closed. This allows to protect against the remote peer flooding us with such frames and
so use up a lot of CPU.
| |
| decoupleCloseAndGoAway | back to summary |
|---|---|
| public Http2MultiplexCodecBuilder decoupleCloseAndGoAway(boolean decoupleCloseAndGoAway) Overrides io. Doc from io. Deprecated as a consequence of Determine if the
| |
| encoderEnforceMaxConcurrentStreams | back to summary |
|---|---|
| public boolean encoderEnforceMaxConcurrentStreams() Returns if the encoder should queue frames if the maximum number of concurrent streams would otherwise be exceeded.
| |
| encoderEnforceMaxConcurrentStreams | back to summary |
|---|---|
| public Http2MultiplexCodecBuilder encoderEnforceMaxConcurrentStreams(boolean encoderEnforceMaxConcurrentStreams) Deprecated as a consequence of Sets if the encoder should queue frames if the maximum number of concurrent streams would otherwise be exceeded.
| |
| encoderEnforceMaxQueuedControlFrames | back to summary |
|---|---|
| public int encoderEnforceMaxQueuedControlFrames() Returns the maximum number of queued control frames that are allowed before the connection is closed.
This allows to protected against various attacks that can lead to high CPU / memory usage if the remote-peer
floods us with frames that would have us produce control frames, but stops to read from the underlying socket.
| |
| encoderEnforceMaxQueuedControlFrames | back to summary |
|---|---|
| public Http2MultiplexCodecBuilder encoderEnforceMaxQueuedControlFrames(int maxQueuedControlFrames) Deprecated as a consequence of Sets the maximum number of queued control frames that are allowed before the connection is closed.
This allows to protected against various attacks that can lead to high CPU / memory usage if the remote-peer
floods us with frames that would have us produce control frames, but stops to read from the underlying socket.
| |
| encoderIgnoreMaxHeaderListSize | back to summary |
|---|---|
| public Http2MultiplexCodecBuilder encoderIgnoreMaxHeaderListSize(boolean ignoreMaxHeaderListSize) Overrides io. Doc from io. Deprecated as a consequence of Sets if the SETTINGS_MAX_HEADER_LIST_SIZE should be ignored when encoding headers.
| |
| flushPreface | back to summary |
|---|---|
| public Http2MultiplexCodecBuilder flushPreface(boolean flushPreface) Overrides io. Doc from io. Deprecated as a consequence of Determine if the Preface
should be automatically flushed when the Client may choose to opt-out from this automatic behavior and manage flush manually if it's ready to send request frames immediately after the preface. It may help to avoid unnecessary latency.
| |
| forClient | back to summary |
|---|---|
| public static Http2MultiplexCodecBuilder forClient(ChannelHandler childHandler)
Deprecated as a consequence of Creates a builder for an HTTP/2 client.
| |
| forServer | back to summary |
|---|---|
| public static Http2MultiplexCodecBuilder forServer(ChannelHandler childHandler)
Deprecated as a consequence of Creates a builder for an HTTP/2 server.
| |
| frameLogger | back to summary |
|---|---|
| public Http2FrameLogger frameLogger() Overrides io. Doc from io. Returns the logger that is used for the encoder and decoder.
| |
| frameLogger | back to summary |
|---|---|
| public Http2MultiplexCodecBuilder frameLogger(Http2FrameLogger frameLogger) Overrides io. Doc from io. Deprecated as a consequence of Sets the logger that is used for the encoder and decoder.
| |
| frameWriter | back to summary |
|---|---|
| pack-priv Http2MultiplexCodecBuilder frameWriter(Http2FrameWriter frameWriter)
Deprecated as a consequence of | |
| gracefulShutdownTimeoutMillis | back to summary |
|---|---|
| public long gracefulShutdownTimeoutMillis() Overrides io. Doc from io. Returns the graceful shutdown timeout of the
| |
| gracefulShutdownTimeoutMillis | back to summary |
|---|---|
| public Http2MultiplexCodecBuilder gracefulShutdownTimeoutMillis(long gracefulShutdownTimeoutMillis) Overrides io. Doc from io. Deprecated as a consequence of Sets the graceful shutdown timeout of the
| |
| headerSensitivityDetector | back to summary |
|---|---|
| public Http2HeadersEncoder. Overrides io. Doc from io. Returns the
| |
| headerSensitivityDetector | back to summary |
|---|---|
| public Http2MultiplexCodecBuilder headerSensitivityDetector(Http2HeadersEncoder. Overrides io. Doc from io. Deprecated as a consequence of Sets the
| |
| initialHuffmanDecodeCapacity | back to summary |
|---|---|
| public Http2MultiplexCodecBuilder initialHuffmanDecodeCapacity(int initialHuffmanDecodeCapacity) Overrides io. Doc from io. Deprecated
Does nothing, do not call.
| |
| initialSettings | back to summary |
|---|---|
| public Http2Settings initialSettings() Overrides io. Doc from io. Sets the
| |
| initialSettings | back to summary |
|---|---|
| public Http2MultiplexCodecBuilder initialSettings(Http2Settings settings) Overrides io. Doc from io. Deprecated as a consequence of Sets the
| |
| isServer | back to summary |
|---|---|
| public boolean isServer() Overrides io. Doc from io. Returns if
| |
| isValidateHeaders | back to summary |
|---|---|
| public boolean isValidateHeaders() Overrides io. Doc from io. Returns if HTTP headers should be validated according to RFC 7540, 8.1.2.6.
| |
| maxReservedStreams | back to summary |
|---|---|
| public int maxReservedStreams() Overrides io. Doc from io. Get the maximum number of streams which can be in the reserved state at any given time. By default this value will be ignored on the server for local endpoint. This is because the RFC provides no way to explicitly communicate a limit to how many states can be in the reserved state, and instead relies on the peer to send RST_STREAM frames when they will be rejected.
| |
| maxReservedStreams | back to summary |
|---|---|
| public Http2MultiplexCodecBuilder maxReservedStreams(int maxReservedStreams) Overrides io. Doc from io. Deprecated as a consequence of Set the maximum number of streams which can be in the reserved state at any given time.
| |
| validateHeaders | back to summary |
|---|---|
| public Http2MultiplexCodecBuilder validateHeaders(boolean validateHeaders) Overrides io. Doc from io. Deprecated as a consequence of Sets if HTTP headers should be validated according to RFC 7540, 8.1.2.6.
| |
| withUpgradeStreamHandler | back to summary |
|---|---|
| public Http2MultiplexCodecBuilder withUpgradeStreamHandler(ChannelHandler upgradeStreamHandler)
Deprecated as a consequence of | |