Package io.netty.handler.codec.http2
Class Http2MultiplexCodecBuilder
- java.lang.Object
- 
- io.netty.handler.codec.http2.AbstractHttp2ConnectionHandlerBuilder<Http2MultiplexCodec,Http2MultiplexCodecBuilder>
- 
- io.netty.handler.codec.http2.Http2MultiplexCodecBuilder
 
 
- 
 @Deprecated public class Http2MultiplexCodecBuilder extends AbstractHttp2ConnectionHandlerBuilder<Http2MultiplexCodec,Http2MultiplexCodecBuilder> Deprecated.useHttp2FrameCodecBuildertogether withHttp2MultiplexHandler.A builder forHttp2MultiplexCodec.
- 
- 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Http2MultiplexCodecBuilderautoAckPingFrame(boolean autoAckPingFrame)Deprecated.Determine if PING frame should automatically be acknowledged or not.Http2MultiplexCodecBuilderautoAckSettingsFrame(boolean autoAckSettings)Deprecated.Determine if settings frame should automatically be acknowledged and applied.Http2MultiplexCodecbuild()Deprecated.Create a newHttp2ConnectionHandler.protected Http2MultiplexCodecbuild(Http2ConnectionDecoder decoder, Http2ConnectionEncoder encoder, Http2Settings initialSettings)Deprecated.Implement this method to create a newHttp2ConnectionHandleror its subtype instance.intdecoderEnforceMaxConsecutiveEmptyDataFrames()Deprecated.Returns the maximum number of consecutive empty DATA frames (without end_of_stream flag) that are allowed before the connection is closed.Http2MultiplexCodecBuilderdecoderEnforceMaxConsecutiveEmptyDataFrames(int maxConsecutiveEmptyFrames)Deprecated.Sets the maximum number of consecutive empty DATA frames (without end_of_stream flag) that are allowed before the connection is closed.Http2MultiplexCodecBuilderdecoderEnforceMaxRstFramesPerWindow(int maxRstFramesPerWindow, int secondsPerWindow)Deprecated.Sets the maximum number RST frames that are allowed per window before the connection is closed.Http2MultiplexCodecBuilderdecoupleCloseAndGoAway(boolean decoupleCloseAndGoAway)Deprecated.Determine if theChannel.close()should be coupled with goaway and graceful close.booleanencoderEnforceMaxConcurrentStreams()Deprecated.Returns if the encoder should queue frames if the maximum number of concurrent streams would otherwise be exceeded.Http2MultiplexCodecBuilderencoderEnforceMaxConcurrentStreams(boolean encoderEnforceMaxConcurrentStreams)Deprecated.Sets if the encoder should queue frames if the maximum number of concurrent streams would otherwise be exceeded.intencoderEnforceMaxQueuedControlFrames()Deprecated.Returns the maximum number of queued control frames that are allowed before the connection is closed.Http2MultiplexCodecBuilderencoderEnforceMaxQueuedControlFrames(int maxQueuedControlFrames)Deprecated.Sets the maximum number of queued control frames that are allowed before the connection is closed.Http2MultiplexCodecBuilderencoderEnforceMaxRstFramesPerWindow(int maxRstFramesPerWindow, int secondsPerWindow)Deprecated.Sets the maximum number RST frames that are allowed per window before the connection is closed.Http2MultiplexCodecBuilderencoderIgnoreMaxHeaderListSize(boolean ignoreMaxHeaderListSize)Deprecated.Sets if the SETTINGS_MAX_HEADER_LIST_SIZE should be ignored when encoding headers.Http2MultiplexCodecBuilderflushPreface(boolean flushPreface)Deprecated.static Http2MultiplexCodecBuilderforClient(ChannelHandler childHandler)Deprecated.Creates a builder for an HTTP/2 client.static Http2MultiplexCodecBuilderforServer(ChannelHandler childHandler)Deprecated.Creates a builder for an HTTP/2 server.Http2FrameLoggerframeLogger()Deprecated.Returns the logger that is used for the encoder and decoder.Http2MultiplexCodecBuilderframeLogger(Http2FrameLogger frameLogger)Deprecated.Sets the logger that is used for the encoder and decoder.longgracefulShutdownTimeoutMillis()Deprecated.Returns the graceful shutdown timeout of theHttp2Connectionin milliseconds.Http2MultiplexCodecBuildergracefulShutdownTimeoutMillis(long gracefulShutdownTimeoutMillis)Deprecated.Sets the graceful shutdown timeout of theHttp2Connectionin milliseconds.Http2HeadersEncoder.SensitivityDetectorheaderSensitivityDetector()Deprecated.Returns theHttp2HeadersEncoder.SensitivityDetectorto use.Http2MultiplexCodecBuilderheaderSensitivityDetector(Http2HeadersEncoder.SensitivityDetector headerSensitivityDetector)Deprecated.Sets theHttp2HeadersEncoder.SensitivityDetectorto use.Http2MultiplexCodecBuilderinitialHuffmanDecodeCapacity(int initialHuffmanDecodeCapacity)Deprecated.Http2SettingsinitialSettings()Deprecated.Sets theHttp2Settingsto use for the initial connection settings exchange.Http2MultiplexCodecBuilderinitialSettings(Http2Settings settings)Deprecated.Sets theHttp2Settingsto use for the initial connection settings exchange.booleanisServer()Deprecated.Returns ifAbstractHttp2ConnectionHandlerBuilder.build()will to create aHttp2Connectionin server mode (true) or client mode (false).booleanisValidateHeaders()Deprecated.Returns if HTTP headers should be validated according to RFC 7540, 8.1.2.6.intmaxReservedStreams()Deprecated.Get the maximum number of streams which can be in the reserved state at any given time.Http2MultiplexCodecBuildermaxReservedStreams(int maxReservedStreams)Deprecated.Set the maximum number of streams which can be in the reserved state at any given time.Http2MultiplexCodecBuildervalidateHeaders(boolean validateHeaders)Deprecated.Sets if HTTP headers should be validated according to RFC 7540, 8.1.2.6.Http2MultiplexCodecBuilderwithUpgradeStreamHandler(ChannelHandler upgradeStreamHandler)Deprecated.- 
Methods inherited from class io.netty.handler.codec.http2.AbstractHttp2ConnectionHandlerBuildercodec, connection, connection, decoder, decoupleCloseAndGoAway, encoder, flushPreface, frameListener, frameListener, isAutoAckPingFrame, isAutoAckSettingsFrame, promisedRequestVerifier, promisedRequestVerifier, self, server
 
- 
 
- 
- 
- 
Method Detail- 
forClientpublic static Http2MultiplexCodecBuilder forClient(ChannelHandler childHandler) Deprecated.Creates a builder for an HTTP/2 client.- Parameters:
- childHandler- the handler added to channels for remotely-created streams. It must be- ChannelHandler.Sharable.
 
 - 
forServerpublic static Http2MultiplexCodecBuilder forServer(ChannelHandler childHandler) Deprecated.Creates a builder for an HTTP/2 server.- Parameters:
- childHandler- the handler added to channels for remotely-created streams. It must be- ChannelHandler.Sharable.
 
 - 
withUpgradeStreamHandlerpublic Http2MultiplexCodecBuilder withUpgradeStreamHandler(ChannelHandler upgradeStreamHandler) Deprecated.
 - 
initialSettingspublic Http2Settings initialSettings() Deprecated.Description copied from class:AbstractHttp2ConnectionHandlerBuilderSets theHttp2Settingsto use for the initial connection settings exchange.- Overrides:
- initialSettingsin class- AbstractHttp2ConnectionHandlerBuilder<Http2MultiplexCodec,Http2MultiplexCodecBuilder>
 
 - 
initialSettingspublic Http2MultiplexCodecBuilder initialSettings(Http2Settings settings) Deprecated.Description copied from class:AbstractHttp2ConnectionHandlerBuilderSets theHttp2Settingsto use for the initial connection settings exchange.- Overrides:
- initialSettingsin class- AbstractHttp2ConnectionHandlerBuilder<Http2MultiplexCodec,Http2MultiplexCodecBuilder>
 
 - 
gracefulShutdownTimeoutMillispublic long gracefulShutdownTimeoutMillis() Deprecated.Description copied from class:AbstractHttp2ConnectionHandlerBuilderReturns the graceful shutdown timeout of theHttp2Connectionin milliseconds. Returns -1 if the timeout is indefinite.
 - 
gracefulShutdownTimeoutMillispublic Http2MultiplexCodecBuilder gracefulShutdownTimeoutMillis(long gracefulShutdownTimeoutMillis) Deprecated.Description copied from class:AbstractHttp2ConnectionHandlerBuilderSets the graceful shutdown timeout of theHttp2Connectionin milliseconds.
 - 
isServerpublic boolean isServer() Deprecated.Description copied from class:AbstractHttp2ConnectionHandlerBuilderReturns ifAbstractHttp2ConnectionHandlerBuilder.build()will to create aHttp2Connectionin server mode (true) or client mode (false).- Overrides:
- isServerin class- AbstractHttp2ConnectionHandlerBuilder<Http2MultiplexCodec,Http2MultiplexCodecBuilder>
 
 - 
maxReservedStreamspublic int maxReservedStreams() Deprecated.Description copied from class:AbstractHttp2ConnectionHandlerBuilderGet 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. - Overrides:
- maxReservedStreamsin class- AbstractHttp2ConnectionHandlerBuilder<Http2MultiplexCodec,Http2MultiplexCodecBuilder>
 
 - 
maxReservedStreamspublic Http2MultiplexCodecBuilder maxReservedStreams(int maxReservedStreams) Deprecated.Description copied from class:AbstractHttp2ConnectionHandlerBuilderSet the maximum number of streams which can be in the reserved state at any given time.- Overrides:
- maxReservedStreamsin class- AbstractHttp2ConnectionHandlerBuilder<Http2MultiplexCodec,Http2MultiplexCodecBuilder>
 
 - 
isValidateHeaderspublic boolean isValidateHeaders() Deprecated.Description copied from class:AbstractHttp2ConnectionHandlerBuilderReturns if HTTP headers should be validated according to RFC 7540, 8.1.2.6.- Overrides:
- isValidateHeadersin class- AbstractHttp2ConnectionHandlerBuilder<Http2MultiplexCodec,Http2MultiplexCodecBuilder>
 
 - 
validateHeaderspublic Http2MultiplexCodecBuilder validateHeaders(boolean validateHeaders) Deprecated.Description copied from class:AbstractHttp2ConnectionHandlerBuilderSets if HTTP headers should be validated according to RFC 7540, 8.1.2.6.- Overrides:
- validateHeadersin class- AbstractHttp2ConnectionHandlerBuilder<Http2MultiplexCodec,Http2MultiplexCodecBuilder>
 
 - 
frameLoggerpublic Http2FrameLogger frameLogger() Deprecated.Description copied from class:AbstractHttp2ConnectionHandlerBuilderReturns the logger that is used for the encoder and decoder.- Overrides:
- frameLoggerin class- AbstractHttp2ConnectionHandlerBuilder<Http2MultiplexCodec,Http2MultiplexCodecBuilder>
- Returns:
- Http2FrameLoggerif set, or- nullif not set.
 
 - 
frameLoggerpublic Http2MultiplexCodecBuilder frameLogger(Http2FrameLogger frameLogger) Deprecated.Description copied from class:AbstractHttp2ConnectionHandlerBuilderSets the logger that is used for the encoder and decoder.- Overrides:
- frameLoggerin class- AbstractHttp2ConnectionHandlerBuilder<Http2MultiplexCodec,Http2MultiplexCodecBuilder>
 
 - 
encoderEnforceMaxConcurrentStreamspublic boolean encoderEnforceMaxConcurrentStreams() Deprecated.Description copied from class:AbstractHttp2ConnectionHandlerBuilderReturns if the encoder should queue frames if the maximum number of concurrent streams would otherwise be exceeded.
 - 
encoderEnforceMaxConcurrentStreamspublic Http2MultiplexCodecBuilder encoderEnforceMaxConcurrentStreams(boolean encoderEnforceMaxConcurrentStreams) Deprecated.Description copied from class:AbstractHttp2ConnectionHandlerBuilderSets if the encoder should queue frames if the maximum number of concurrent streams would otherwise be exceeded.
 - 
encoderEnforceMaxQueuedControlFramespublic int encoderEnforceMaxQueuedControlFrames() Deprecated.Description copied from class:AbstractHttp2ConnectionHandlerBuilderReturns 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.0means no protection is in place.
 - 
encoderEnforceMaxQueuedControlFramespublic Http2MultiplexCodecBuilder encoderEnforceMaxQueuedControlFrames(int maxQueuedControlFrames) Deprecated.Description copied from class:AbstractHttp2ConnectionHandlerBuilderSets 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.0means no protection should be applied.
 - 
headerSensitivityDetectorpublic Http2HeadersEncoder.SensitivityDetector headerSensitivityDetector() Deprecated.Description copied from class:AbstractHttp2ConnectionHandlerBuilderReturns theHttp2HeadersEncoder.SensitivityDetectorto use.
 - 
headerSensitivityDetectorpublic Http2MultiplexCodecBuilder headerSensitivityDetector(Http2HeadersEncoder.SensitivityDetector headerSensitivityDetector) Deprecated.Description copied from class:AbstractHttp2ConnectionHandlerBuilderSets theHttp2HeadersEncoder.SensitivityDetectorto use.
 - 
encoderIgnoreMaxHeaderListSizepublic Http2MultiplexCodecBuilder encoderIgnoreMaxHeaderListSize(boolean ignoreMaxHeaderListSize) Deprecated.Description copied from class:AbstractHttp2ConnectionHandlerBuilderSets if the SETTINGS_MAX_HEADER_LIST_SIZE should be ignored when encoding headers.- Overrides:
- encoderIgnoreMaxHeaderListSizein class- AbstractHttp2ConnectionHandlerBuilder<Http2MultiplexCodec,Http2MultiplexCodecBuilder>
- Parameters:
- ignoreMaxHeaderListSize-- trueto ignore SETTINGS_MAX_HEADER_LIST_SIZE.
- Returns:
- this.
 
 - 
initialHuffmanDecodeCapacity@Deprecated public Http2MultiplexCodecBuilder initialHuffmanDecodeCapacity(int initialHuffmanDecodeCapacity) Deprecated.Description copied from class:AbstractHttp2ConnectionHandlerBuilderDoes nothing, do not call.
 - 
autoAckSettingsFramepublic Http2MultiplexCodecBuilder autoAckSettingsFrame(boolean autoAckSettings) Deprecated.Description copied from class:AbstractHttp2ConnectionHandlerBuilderDetermine if settings frame should automatically be acknowledged and applied.- Overrides:
- autoAckSettingsFramein class- AbstractHttp2ConnectionHandlerBuilder<Http2MultiplexCodec,Http2MultiplexCodecBuilder>
- Returns:
- this.
 
 - 
autoAckPingFramepublic Http2MultiplexCodecBuilder autoAckPingFrame(boolean autoAckPingFrame) Deprecated.Description copied from class:AbstractHttp2ConnectionHandlerBuilderDetermine if PING frame should automatically be acknowledged or not.- Overrides:
- autoAckPingFramein class- AbstractHttp2ConnectionHandlerBuilder<Http2MultiplexCodec,Http2MultiplexCodecBuilder>
- Returns:
- this.
 
 - 
decoupleCloseAndGoAwaypublic Http2MultiplexCodecBuilder decoupleCloseAndGoAway(boolean decoupleCloseAndGoAway) Deprecated.Description copied from class:AbstractHttp2ConnectionHandlerBuilderDetermine if theChannel.close()should be coupled with goaway and graceful close.- Overrides:
- decoupleCloseAndGoAwayin class- AbstractHttp2ConnectionHandlerBuilder<Http2MultiplexCodec,Http2MultiplexCodecBuilder>
- Parameters:
- decoupleCloseAndGoAway-- trueto make- Channel.close()directly close the underlying transport, and not attempt graceful closure via GOAWAY.
- Returns:
- this.
 
 - 
flushPrefacepublic Http2MultiplexCodecBuilder flushPreface(boolean flushPreface) Deprecated.Description copied from class:AbstractHttp2ConnectionHandlerBuilderDetermine if the Preface should be automatically flushed when theChannelbecomes active or not.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. - Overrides:
- flushPrefacein class- AbstractHttp2ConnectionHandlerBuilder<Http2MultiplexCodec,Http2MultiplexCodecBuilder>
- Parameters:
- flushPreface-- trueto automatically flush,- false otherwise.
- Returns:
- this.
- See Also:
- HTTP/2 Connection Preface
 
 - 
decoderEnforceMaxConsecutiveEmptyDataFramespublic int decoderEnforceMaxConsecutiveEmptyDataFrames() Deprecated.Description copied from class:AbstractHttp2ConnectionHandlerBuilderReturns 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.0means no protection is in place.
 - 
decoderEnforceMaxConsecutiveEmptyDataFramespublic Http2MultiplexCodecBuilder decoderEnforceMaxConsecutiveEmptyDataFrames(int maxConsecutiveEmptyFrames) Deprecated.Description copied from class:AbstractHttp2ConnectionHandlerBuilderSets 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.0means no protection should be applied.
 - 
decoderEnforceMaxRstFramesPerWindowpublic Http2MultiplexCodecBuilder decoderEnforceMaxRstFramesPerWindow(int maxRstFramesPerWindow, int secondsPerWindow) Deprecated.Description copied from class:AbstractHttp2ConnectionHandlerBuilderSets 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.0for any of the parameters means no protection should be applied.
 - 
encoderEnforceMaxRstFramesPerWindowpublic Http2MultiplexCodecBuilder encoderEnforceMaxRstFramesPerWindow(int maxRstFramesPerWindow, int secondsPerWindow) Deprecated.Description copied from class:AbstractHttp2ConnectionHandlerBuilderSets the maximum number RST frames that are allowed per window before the connection is closed. This allows to protect against the remote peer that will trigger us to generate a flood of RST frames and so use up a lot of CPU.0for any of the parameters means no protection should be applied.
 - 
buildpublic Http2MultiplexCodec build() Deprecated.Description copied from class:AbstractHttp2ConnectionHandlerBuilderCreate a newHttp2ConnectionHandler.- Overrides:
- buildin class- AbstractHttp2ConnectionHandlerBuilder<Http2MultiplexCodec,Http2MultiplexCodecBuilder>
 
 - 
buildprotected Http2MultiplexCodec build(Http2ConnectionDecoder decoder, Http2ConnectionEncoder encoder, Http2Settings initialSettings) Deprecated.Description copied from class:AbstractHttp2ConnectionHandlerBuilderImplement this method to create a newHttp2ConnectionHandleror its subtype instance.The return of this method will be subject to the following: - AbstractHttp2ConnectionHandlerBuilder.frameListener(Http2FrameListener)will be set if not already set in the decoder
- AbstractHttp2ConnectionHandlerBuilder.gracefulShutdownTimeoutMillis(long)will always be set
 - Specified by:
- buildin class- AbstractHttp2ConnectionHandlerBuilder<Http2MultiplexCodec,Http2MultiplexCodecBuilder>
 
 
- 
 
-