Http2FrameCodec.
| Modifier and Type | Field and Description |
|---|---|
| private Http2FrameWriter |
| Access | Constructor and Description |
|---|---|
| protected | |
| pack-priv |
| frameWriter | back to summary |
|---|---|
| private Http2FrameWriter frameWriter | |
| Http2FrameCodecBuilder | back to summary |
|---|---|
| protected Http2FrameCodecBuilder() Allows overriding behavior of existing builder.
Users of this constructor are responsible for invoking | |
| Http2FrameCodecBuilder | back to summary |
|---|---|
| pack-priv Http2FrameCodecBuilder(boolean server) | |
| autoAckPingFrame | back to summary |
|---|---|
| public Http2FrameCodecBuilder autoAckPingFrame(boolean autoAckPingFrame) Overrides io. Doc from io. Determine if PING frame should automatically be acknowledged or not.
| |
| autoAckSettingsFrame | back to summary |
|---|---|
| public Http2FrameCodecBuilder autoAckSettingsFrame(boolean autoAckSettings) Overrides io. Doc from io. Determine if settings frame should automatically be acknowledged and applied.
| |
| build | back to summary |
|---|---|
| public Http2FrameCodec build() Overrides io. Build a
| |
| build | back to summary |
|---|---|
| protected Http2FrameCodec build(Http2ConnectionDecoder decoder, Http2ConnectionEncoder encoder, Http2Settings initialSettings) Implements abstract io. Doc from io. Implement this method to create a new The return of this method will be subject to the following:
| |
| 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 Http2FrameCodecBuilder decoderEnforceMaxConsecutiveEmptyDataFrames(int maxConsecutiveEmptyFrames) 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 Http2FrameCodecBuilder decoderEnforceMaxRstFramesPerWindow(int maxRstFramesPerWindow, int secondsPerWindow) 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 Http2FrameCodecBuilder decoupleCloseAndGoAway(boolean decoupleCloseAndGoAway) Overrides io. Doc from io. 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 Http2FrameCodecBuilder encoderEnforceMaxConcurrentStreams(boolean encoderEnforceMaxConcurrentStreams) 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 Http2FrameCodecBuilder encoderEnforceMaxQueuedControlFrames(int maxQueuedControlFrames) 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 Http2FrameCodecBuilder encoderIgnoreMaxHeaderListSize(boolean ignoreMaxHeaderListSize) Overrides io. Doc from io. Sets if the SETTINGS_MAX_HEADER_LIST_SIZE should be ignored when encoding headers.
| |
| flushPreface | back to summary |
|---|---|
| public Http2FrameCodecBuilder flushPreface(boolean flushPreface) Overrides io. Doc from io. 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 Http2FrameCodecBuilder forClient() Creates a builder for an HTTP/2 client. | |
| forServer | back to summary |
|---|---|
| public static Http2FrameCodecBuilder forServer() 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 Http2FrameCodecBuilder frameLogger(Http2FrameLogger frameLogger) Overrides io. Doc from io. Sets the logger that is used for the encoder and decoder.
| |
| frameWriter | back to summary |
|---|---|
| pack-priv Http2FrameCodecBuilder frameWriter(Http2FrameWriter frameWriter) | |
| gracefulShutdownTimeoutMillis | back to summary |
|---|---|
| public long gracefulShutdownTimeoutMillis() Overrides io. Doc from io. Returns the graceful shutdown timeout of the
| |
| gracefulShutdownTimeoutMillis | back to summary |
|---|---|
| public Http2FrameCodecBuilder gracefulShutdownTimeoutMillis(long gracefulShutdownTimeoutMillis) Overrides io. Doc from io. 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 Http2FrameCodecBuilder headerSensitivityDetector(Http2HeadersEncoder. Overrides io. Doc from io. Sets the
| |
| initialHuffmanDecodeCapacity | back to summary |
|---|---|
| public Http2FrameCodecBuilder 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 Http2FrameCodecBuilder initialSettings(Http2Settings settings) Overrides io. Doc from io. 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 Http2FrameCodecBuilder maxReservedStreams(int maxReservedStreams) Overrides io. Doc from io. Set the maximum number of streams which can be in the reserved state at any given time.
| |
| validateHeaders | back to summary |
|---|---|
| public Http2FrameCodecBuilder validateHeaders(boolean validateHeaders) Overrides io. Doc from io. Sets if HTTP headers should be validated according to RFC 7540, 8.1.2.6.
| |