Module io.netty.codec.http2
Package io.netty5.handler.codec.http2
Class DecoratingHttp2ConnectionEncoder
- java.lang.Object
-
- io.netty5.handler.codec.http2.DecoratingHttp2FrameWriter
-
- io.netty5.handler.codec.http2.DecoratingHttp2ConnectionEncoder
-
- All Implemented Interfaces:
Http2ConnectionEncoder
,Http2DataWriter
,Http2FrameWriter
,Http2SettingsReceivedConsumer
,Closeable
,AutoCloseable
- Direct Known Subclasses:
CompressorHttp2ConnectionEncoder
,StreamBufferingEncoder
@UnstableApi public class DecoratingHttp2ConnectionEncoder extends DecoratingHttp2FrameWriter implements Http2ConnectionEncoder, Http2SettingsReceivedConsumer
A decorator around anotherHttp2ConnectionEncoder
instance.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.netty5.handler.codec.http2.Http2FrameWriter
Http2FrameWriter.Configuration
-
-
Constructor Summary
Constructors Constructor Description DecoratingHttp2ConnectionEncoder(Http2ConnectionEncoder delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Http2Connection
connection()
Provides direct access to the underlying connection.void
consumeReceivedSettings(Http2Settings settings)
Consume the most recently received but not yet ACKed settings.Http2RemoteFlowController
flowController()
Provides the remote flow controller for managing outbound traffic.Http2FrameWriter
frameWriter()
Provides direct access to the underlying frame writer object.void
lifecycleManager(Http2LifecycleManager lifecycleManager)
Sets the lifecycle manager.Http2Settings
pollSentSettings()
Gets the local settings on the top of the queue that has been sent but not ACKed.void
remoteSettings(Http2Settings settings)
Sets the settings for the remote endpoint of the HTTP/2 connection.-
Methods inherited from class io.netty5.handler.codec.http2.DecoratingHttp2FrameWriter
close, configuration, writeData, writeFrame, writeGoAway, writeHeaders, writeHeaders, writePing, writePriority, writePushPromise, writeRstStream, writeSettings, writeSettingsAck, writeWindowUpdate
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.netty5.handler.codec.http2.Http2ConnectionEncoder
writeFrame
-
Methods inherited from interface io.netty5.handler.codec.http2.Http2DataWriter
writeData
-
Methods inherited from interface io.netty5.handler.codec.http2.Http2FrameWriter
close, configuration, writeGoAway, writeHeaders, writeHeaders, writePing, writePriority, writePushPromise, writeRstStream, writeSettings, writeSettingsAck, writeWindowUpdate
-
-
-
-
Constructor Detail
-
DecoratingHttp2ConnectionEncoder
public DecoratingHttp2ConnectionEncoder(Http2ConnectionEncoder delegate)
-
-
Method Detail
-
lifecycleManager
public void lifecycleManager(Http2LifecycleManager lifecycleManager)
Description copied from interface:Http2ConnectionEncoder
Sets the lifecycle manager. Must be called as part of initialization before the encoder is used.- Specified by:
lifecycleManager
in interfaceHttp2ConnectionEncoder
-
connection
public Http2Connection connection()
Description copied from interface:Http2ConnectionEncoder
Provides direct access to the underlying connection.- Specified by:
connection
in interfaceHttp2ConnectionEncoder
-
flowController
public Http2RemoteFlowController flowController()
Description copied from interface:Http2ConnectionEncoder
Provides the remote flow controller for managing outbound traffic.- Specified by:
flowController
in interfaceHttp2ConnectionEncoder
-
frameWriter
public Http2FrameWriter frameWriter()
Description copied from interface:Http2ConnectionEncoder
Provides direct access to the underlying frame writer object.- Specified by:
frameWriter
in interfaceHttp2ConnectionEncoder
-
pollSentSettings
public Http2Settings pollSentSettings()
Description copied from interface:Http2ConnectionEncoder
Gets the local settings on the top of the queue that has been sent but not ACKed. This may returnnull
.- Specified by:
pollSentSettings
in interfaceHttp2ConnectionEncoder
-
remoteSettings
public void remoteSettings(Http2Settings settings) throws Http2Exception
Description copied from interface:Http2ConnectionEncoder
Sets the settings for the remote endpoint of the HTTP/2 connection.- Specified by:
remoteSettings
in interfaceHttp2ConnectionEncoder
- Throws:
Http2Exception
-
consumeReceivedSettings
public void consumeReceivedSettings(Http2Settings settings)
Description copied from interface:Http2SettingsReceivedConsumer
Consume the most recently received but not yet ACKed settings.- Specified by:
consumeReceivedSettings
in interfaceHttp2SettingsReceivedConsumer
-
-