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
,Closeable
,AutoCloseable
- Direct Known Subclasses:
CompressorHttp2ConnectionEncoder
,Http2ControlFrameLimitEncoder
,StreamBufferingEncoder
@UnstableApi
public class DecoratingHttp2ConnectionEncoder
extends DecoratingHttp2FrameWriter
implements Http2ConnectionEncoder, Http2SettingsReceivedConsumer
A decorator around another
Http2ConnectionEncoder
instance.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.handler.codec.http2.Http2FrameWriter
Http2FrameWriter.Configuration
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionProvides direct access to the underlying connection.void
consumeReceivedSettings
(Http2Settings settings) Consume the most recently received but not yet ACKed settings.Provides the remote flow controller for managing outbound traffic.Provides direct access to the underlying frame writer object.void
lifecycleManager
(Http2LifecycleManager lifecycleManager) Sets the lifecycle manager.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.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
-
Field Details
-
delegate
-
-
Constructor Details
-
DecoratingHttp2ConnectionEncoder
-
-
Method Details
-
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
Description copied from interface:Http2ConnectionEncoder
Provides direct access to the underlying connection.- Specified by:
connection
in interfaceHttp2ConnectionEncoder
-
flowController
Description copied from interface:Http2ConnectionEncoder
Provides the remote flow controller for managing outbound traffic.- Specified by:
flowController
in interfaceHttp2ConnectionEncoder
-
frameWriter
Description copied from interface:Http2ConnectionEncoder
Provides direct access to the underlying frame writer object.- Specified by:
frameWriter
in interfaceHttp2ConnectionEncoder
-
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
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
Description copied from interface:Http2SettingsReceivedConsumer
Consume the most recently received but not yet ACKed settings.- Specified by:
consumeReceivedSettings
in interfaceHttp2SettingsReceivedConsumer
-