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 from
HttpToHttp2ConnectionHandler but since that actually encodes to the raw bytes it doesn't play nice with
Http2MultiplexCodec which expects the frame objects.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class io.netty.channel.ChannelOutboundHandlerAdapter
bind, close, connect, deregister, disconnect, flush, readMethods inherited from class io.netty.channel.ChannelHandlerAdapter
exceptionCaught, handlerAdded, handlerRemoved, isSharableMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.netty.channel.ChannelHandler
exceptionCaught, handlerAdded, handlerRemoved
-
Constructor Details
-
HttpToHttp2OutboundAdapter
public HttpToHttp2OutboundAdapter()
-
-
Method Details
-
write
public void write(io.netty.channel.ChannelHandlerContext ctx, Object msg, io.netty.channel.ChannelPromise promise) Handles conversion ofHttpMessageandHttpContentto HTTP/2 frames.- Specified by:
writein interfaceio.netty.channel.ChannelOutboundHandler- Overrides:
writein classio.netty.channel.ChannelOutboundHandlerAdapter
-