Class Http2PipelineInitializer

  • All Implemented Interfaces:
    io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler

    public class Http2PipelineInitializer
    extends io.netty.handler.ssl.ApplicationProtocolNegotiationHandler
    Initializes HTTP/2 Pipeline.
    • Constructor Detail

      • Http2PipelineInitializer

        @Deprecated
        public Http2PipelineInitializer​(io.netty.handler.codec.http2.Http2Settings http2Settings,
                                        ActiveStreamsCountHandler activeStreamsCountHandler,
                                        Http2SettingsFrameLogger http2SettingsFrameLogger,
                                        java.util.function.Consumer<io.netty.channel.ChannelPipeline> existingHttpPipelineInitializer,
                                        int maxInitialLineLength,
                                        int maxHeaderSize,
                                        int maxChunkSize,
                                        boolean validateHeaders,
                                        boolean useCustomMultiplexHandler)
        Deprecated.
      • Http2PipelineInitializer

        public Http2PipelineInitializer​(io.netty.handler.codec.http2.Http2Settings http2Settings,
                                        ActiveStreamsCountHandler activeStreamsCountHandler,
                                        Http2SettingsFrameLogger http2SettingsFrameLogger,
                                        java.util.function.Consumer<io.netty.channel.ChannelPipeline> existingHttpPipelineInitializer,
                                        int maxInitialLineLength,
                                        int maxHeaderSize,
                                        int maxChunkSize,
                                        boolean validateHeaders)
    • Method Detail

      • writeTimeoutSeconds

        @Nonnull
        public Http2PipelineInitializer writeTimeoutSeconds​(@Nonnegative
                                                            int writeTimeoutSeconds)
      • getWriteTimeoutSeconds

        protected int getWriteTimeoutSeconds()
      • canCreateStream

        protected boolean canCreateStream​(io.netty.channel.Channel channel)
      • serverHttp2FrameCodecBuilder

        protected io.netty.handler.codec.http2.Http2FrameCodecBuilder serverHttp2FrameCodecBuilder()
      • configurePipeline

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

        @Nonnull
        protected io.netty.handler.codec.http2.Http2ChannelDuplexHandler createHttp2MultiplexHandler​(@Nonnull
                                                                                                     io.netty.channel.ChannelHandler inboundStreamHandler)
      • createHttp2StreamFrameToHttpObjectCodec

        @Nonnull
        protected io.netty.handler.codec.MessageToMessageCodec<io.netty.handler.codec.http2.Http2StreamFrame,​io.netty.handler.codec.http.HttpObject> createHttp2StreamFrameToHttpObjectCodec​(boolean validateHeaders)
      • logInitializingHttp1

        protected void logInitializingHttp1​(io.netty.channel.ChannelHandlerContext ctx)
      • logInitializingHttp2

        protected void logInitializingHttp2​(io.netty.channel.ChannelHandlerContext ctx)