Class Http2OrHttpHandler

java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.handler.ssl.ApplicationProtocolNegotiationHandler
com.netflix.zuul.netty.server.http2.Http2OrHttpHandler
All Implemented Interfaces:
io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler

public class Http2OrHttpHandler extends io.netty.handler.ssl.ApplicationProtocolNegotiationHandler
Http2 Or Http Handler Author: Arthur Gonigberg Date: December 15, 2017
  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler

    io.netty.channel.ChannelHandler.Sharable
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final io.netty.util.AttributeKey<String>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Http2OrHttpHandler(io.netty.channel.ChannelHandler http2StreamHandler, ChannelConfig channelConfig, Consumer<io.netty.channel.ChannelPipeline> addHttpHandlerFn)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    configurePipeline(io.netty.channel.ChannelHandlerContext ctx, String protocol)
     

    Methods inherited from class io.netty.handler.ssl.ApplicationProtocolNegotiationHandler

    channelInactive, channelRead, exceptionCaught, handlerAdded, handlerRemoved, handshakeFailure, userEventTriggered

    Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter

    channelActive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged

    Methods inherited from class io.netty.channel.ChannelHandlerAdapter

    ensureNotSharable, isSharable

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • PROTOCOL_NAME

      public static final io.netty.util.AttributeKey<String> PROTOCOL_NAME
  • Constructor Details

    • Http2OrHttpHandler

      public Http2OrHttpHandler(io.netty.channel.ChannelHandler http2StreamHandler, ChannelConfig channelConfig, Consumer<io.netty.channel.ChannelPipeline> addHttpHandlerFn)
  • Method Details

    • configurePipeline

      protected void configurePipeline(io.netty.channel.ChannelHandlerContext ctx, String protocol) throws Exception
      Specified by:
      configurePipeline in class io.netty.handler.ssl.ApplicationProtocolNegotiationHandler
      Throws:
      Exception