Class Http2ClientUpgradeCodec

    • Field Detail

      • UPGRADE_HEADERS

        private static final java.util.List<java.lang.CharSequence> UPGRADE_HEADERS
      • handlerName

        private final java.lang.String handlerName
      • http2MultiplexHandler

        private final ChannelHandler http2MultiplexHandler
    • Constructor Detail

      • Http2ClientUpgradeCodec

        public Http2ClientUpgradeCodec​(java.lang.String handlerName,
                                       Http2FrameCodec frameCodec,
                                       ChannelHandler upgradeToHandler)
      • Http2ClientUpgradeCodec

        public Http2ClientUpgradeCodec​(Http2ConnectionHandler connectionHandler)
        Creates the codec using a default name for the connection handler when adding to the pipeline.
        Parameters:
        connectionHandler - the HTTP/2 connection handler
      • Http2ClientUpgradeCodec

        public Http2ClientUpgradeCodec​(Http2ConnectionHandler connectionHandler,
                                       Http2MultiplexHandler http2MultiplexHandler)
        Creates the codec using a default name for the connection handler when adding to the pipeline.
        Parameters:
        connectionHandler - the HTTP/2 connection handler
        http2MultiplexHandler - the Http2 Multiplexer handler to work with Http2FrameCodec
      • Http2ClientUpgradeCodec

        public Http2ClientUpgradeCodec​(java.lang.String handlerName,
                                       Http2ConnectionHandler connectionHandler)
        Creates the codec providing an upgrade to the given handler for HTTP/2.
        Parameters:
        handlerName - the name of the HTTP/2 connection handler to be used in the pipeline, or null to auto-generate the name
        connectionHandler - the HTTP/2 connection handler
      • Http2ClientUpgradeCodec

        public Http2ClientUpgradeCodec​(java.lang.String handlerName,
                                       Http2ConnectionHandler connectionHandler,
                                       Http2MultiplexHandler http2MultiplexHandler)
        Creates the codec providing an upgrade to the given handler for HTTP/2.
        Parameters:
        handlerName - the name of the HTTP/2 connection handler to be used in the pipeline, or null to auto-generate the name
        connectionHandler - the HTTP/2 connection handler