Class 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
    • 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 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

        ensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharable
      • Methods inherited from interface io.netty.channel.ChannelHandler

        exceptionCaught, handlerAdded, handlerRemoved
    • Constructor Detail

      • HttpToHttp2OutboundAdapter

        public HttpToHttp2OutboundAdapter()
    • Method Detail

      • 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