Class HttpToHttp2OutboundAdapter
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelOutboundHandlerAdapter
-
- software.amazon.awssdk.http.nio.netty.internal.http2.HttpToHttp2OutboundAdapter
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler
,io.netty.channel.ChannelOutboundHandler
public class HttpToHttp2OutboundAdapter extends io.netty.channel.ChannelOutboundHandlerAdapter
Translates HTTP/1.1 Netty objects to the corresponding HTTP/2 frame objects. Much of this was lifted fromHttpToHttp2ConnectionHandler
but since that actually encodes to the raw bytes it doesn't play nice withHttp2MultiplexCodec
which expects the frame objects.
-
-
Constructor Summary
Constructors Constructor Description HttpToHttp2OutboundAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
write(io.netty.channel.ChannelHandlerContext ctx, Object msg, io.netty.channel.ChannelPromise promise)
Handles conversion ofHttpMessage
andHttpContent
to HTTP/2 frames.-
Methods inherited from class io.netty.channel.ChannelOutboundHandlerAdapter
bind, close, connect, deregister, disconnect, flush, read
-
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharable
-
-
-
-
Method Detail
-
write
public void write(io.netty.channel.ChannelHandlerContext ctx, Object msg, io.netty.channel.ChannelPromise promise)
Handles conversion ofHttpMessage
andHttpContent
to HTTP/2 frames.- Specified by:
write
in interfaceio.netty.channel.ChannelOutboundHandler
- Overrides:
write
in classio.netty.channel.ChannelOutboundHandlerAdapter
-
-