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, StreamBufferingEncoder
public class DecoratingHttp2ConnectionEncoder
extends DecoratingHttp2FrameWriter
implements Http2ConnectionEncoder, Http2SettingsReceivedConsumer
A decorator around another
Http2ConnectionEncoder instance.-
Nested Class Summary
Nested classes/interfaces inherited from interface Http2FrameWriter
Http2FrameWriter.Configuration -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionProvides direct access to the underlying connection.voidconsumeReceivedSettings(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.voidlifecycleManager(Http2LifecycleManager lifecycleManager) Sets the lifecycle manager.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 DecoratingHttp2FrameWriter
close, configuration, writeData, writeFrame, writeGoAway, writeHeaders, writeHeaders, writePing, writePriority, writePushPromise, writeRstStream, writeSettings, writeSettingsAck, writeWindowUpdateModifier and TypeMethodDescriptionvoidclose()Closes this writer and frees any allocated resources.Get the configuration related elements for thisHttp2FrameWriterwriteData(ChannelHandlerContext ctx, int streamId, ByteBuf data, int padding, boolean endStream, ChannelPromise promise) Writes aDATAframe to the remote endpoint.writeFrame(ChannelHandlerContext ctx, byte frameType, int streamId, Http2Flags flags, ByteBuf payload, ChannelPromise promise) Generic write method for any HTTP/2 frame.writeGoAway(ChannelHandlerContext ctx, int lastStreamId, long errorCode, ByteBuf debugData, ChannelPromise promise) Writes a GO_AWAY frame to the remote endpoint.writeHeaders(ChannelHandlerContext ctx, int streamId, Http2Headers headers, int padding, boolean endStream, ChannelPromise promise) Writes a HEADERS frame to the remote endpoint.writeHeaders(ChannelHandlerContext ctx, int streamId, Http2Headers headers, int streamDependency, short weight, boolean exclusive, int padding, boolean endStream, ChannelPromise promise) Writes a HEADERS frame with priority specified to the remote endpoint.writePing(ChannelHandlerContext ctx, boolean ack, long data, ChannelPromise promise) Writes a PING frame to the remote endpoint.writePriority(ChannelHandlerContext ctx, int streamId, int streamDependency, short weight, boolean exclusive, ChannelPromise promise) Writes a PRIORITY frame to the remote endpoint.writePushPromise(ChannelHandlerContext ctx, int streamId, int promisedStreamId, Http2Headers headers, int padding, ChannelPromise promise) Writes a PUSH_PROMISE frame to the remote endpoint.writeRstStream(ChannelHandlerContext ctx, int streamId, long errorCode, ChannelPromise promise) Writes a RST_STREAM frame to the remote endpoint.writeSettings(ChannelHandlerContext ctx, Http2Settings settings, ChannelPromise promise) Writes a SETTINGS frame to the remote endpoint.writeSettingsAck(ChannelHandlerContext ctx, ChannelPromise promise) Writes a SETTINGS acknowledgment to the remote endpoint.writeWindowUpdate(ChannelHandlerContext ctx, int streamId, int windowSizeIncrement, ChannelPromise promise) Writes a WINDOW_UPDATE frame to the remote endpoint.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Http2ConnectionEncoder
writeFrameModifier and TypeMethodDescriptionwriteFrame(ChannelHandlerContext ctx, byte frameType, int streamId, Http2Flags flags, ByteBuf payload, ChannelPromise promise) Writes the given data to the internalHttp2FrameWriterwithout performing any state checks on the connection/stream.
-
Constructor Details
-
DecoratingHttp2ConnectionEncoder
-
-
Method Details
-
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
Description copied from interface:Http2ConnectionEncoderProvides direct access to the underlying connection.- Specified by:
connectionin interfaceHttp2ConnectionEncoder
-
flowController
Description copied from interface:Http2ConnectionEncoderProvides the remote flow controller for managing outbound traffic.- Specified by:
flowControllerin interfaceHttp2ConnectionEncoder
-
frameWriter
Description copied from interface:Http2ConnectionEncoderProvides direct access to the underlying frame writer object.- Specified by:
frameWriterin interfaceHttp2ConnectionEncoder
-
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
Description copied from interface:Http2ConnectionEncoderSets the settings for the remote endpoint of the HTTP/2 connection.- Specified by:
remoteSettingsin interfaceHttp2ConnectionEncoder- Throws:
Http2Exception
-
consumeReceivedSettings
Description copied from interface:Http2SettingsReceivedConsumerConsume the most recently received but not yet ACKed settings.- Specified by:
consumeReceivedSettingsin interfaceHttp2SettingsReceivedConsumer
-