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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    write(io.netty.channel.ChannelHandlerContext ctx, Object msg, io.netty.channel.ChannelPromise promise)
    Handles conversion of HttpMessage and HttpContent 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

    exceptionCaught, handlerAdded, handlerRemoved, isSharable

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods 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 of HttpMessage and HttpContent to HTTP/2 frames.
      Specified by:
      write in interface io.netty.channel.ChannelOutboundHandler
      Overrides:
      write in class io.netty.channel.ChannelOutboundHandlerAdapter