Package io.netty.handler.codec.http2
Class DecoratingHttp2ConnectionEncoder
- java.lang.Object
-
- io.netty.handler.codec.http2.DecoratingHttp2FrameWriter
-
- io.netty.handler.codec.http2.DecoratingHttp2ConnectionEncoder
-
- All Implemented Interfaces:
Http2ConnectionEncoder,Http2DataWriter,Http2FrameWriter,Http2SettingsReceivedConsumer,java.io.Closeable,java.lang.AutoCloseable
- Direct Known Subclasses:
CompressorHttp2ConnectionEncoder,StreamBufferingEncoder
public class DecoratingHttp2ConnectionEncoder extends DecoratingHttp2FrameWriter implements Http2ConnectionEncoder, Http2SettingsReceivedConsumer
A decorator around anotherHttp2ConnectionEncoderinstance.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.netty.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 Http2Connectionconnection()Provides direct access to the underlying connection.voidconsumeReceivedSettings(Http2Settings settings)Consume the most recently received but not yet ACKed settings.Http2RemoteFlowControllerflowController()Provides the remote flow controller for managing outbound traffic.Http2FrameWriterframeWriter()Provides direct access to the underlying frame writer object.voidlifecycleManager(Http2LifecycleManager lifecycleManager)Sets the lifecycle manager.Http2SettingspollSentSettings()Gets the local settings on the top of the queue that has been sent but not ACKed.voidremoteSettings(Http2Settings settings)Sets the settings for the remote endpoint of the HTTP/2 connection.-
Methods inherited from class io.netty.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.netty.handler.codec.http2.Http2ConnectionEncoder
writeFrame
-
Methods inherited from interface io.netty.handler.codec.http2.Http2DataWriter
writeData
-
Methods inherited from interface io.netty.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:Http2ConnectionEncoderSets the lifecycle manager. Must be called as part of initialization before the encoder is used.- Specified by:
lifecycleManagerin interfaceHttp2ConnectionEncoder
-
connection
public Http2Connection connection()
Description copied from interface:Http2ConnectionEncoderProvides direct access to the underlying connection.- Specified by:
connectionin interfaceHttp2ConnectionEncoder
-
flowController
public Http2RemoteFlowController flowController()
Description copied from interface:Http2ConnectionEncoderProvides the remote flow controller for managing outbound traffic.- Specified by:
flowControllerin interfaceHttp2ConnectionEncoder
-
frameWriter
public Http2FrameWriter frameWriter()
Description copied from interface:Http2ConnectionEncoderProvides direct access to the underlying frame writer object.- Specified by:
frameWriterin interfaceHttp2ConnectionEncoder
-
pollSentSettings
public Http2Settings pollSentSettings()
Description copied from interface:Http2ConnectionEncoderGets the local settings on the top of the queue that has been sent but not ACKed. This may returnnull.- Specified by:
pollSentSettingsin interfaceHttp2ConnectionEncoder
-
remoteSettings
public void remoteSettings(Http2Settings settings) throws Http2Exception
Description copied from interface:Http2ConnectionEncoderSets the settings for the remote endpoint of the HTTP/2 connection.- Specified by:
remoteSettingsin interfaceHttp2ConnectionEncoder- Throws:
Http2Exception
-
consumeReceivedSettings
public void consumeReceivedSettings(Http2Settings settings)
Description copied from interface:Http2SettingsReceivedConsumerConsume the most recently received but not yet ACKed settings.- Specified by:
consumeReceivedSettingsin interfaceHttp2SettingsReceivedConsumer
-
-