Class BasicServerChannelInitializer<C extends io.netty.channel.Channel,​FACTORY extends BasicServerChannelInitializer<C,​FACTORY>>

  • All Implemented Interfaces:
    io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler
    Direct Known Subclasses:
    Router4PipelineFactory

    public class BasicServerChannelInitializer<C extends io.netty.channel.Channel,​FACTORY extends BasicServerChannelInitializer<C,​FACTORY>>
    extends ChannelInitializer<C>
    • Method Detail

      • factory

        protected final FACTORY factory()
      • maxInitialLineLength

        public FACTORY maxInitialLineLength​(int maxInitialLineLength)
      • maxHeaderSize

        public FACTORY maxHeaderSize​(int maxHeaderSize)
      • maxChunkSize

        public FACTORY maxChunkSize​(int maxChunkSize)
      • maxContentLength

        public FACTORY maxContentLength​(long maxContentLength)
      • idleConnectionTimeoutMillis

        public FACTORY idleConnectionTimeoutMillis​(long idleConnectionTimeoutMillis)
      • handshakeConnectionTimeoutMillis

        public FACTORY handshakeConnectionTimeoutMillis​(long idleConnectionTimeoutMillis)
      • http2MaxConcurrentStreams

        public FACTORY http2MaxConcurrentStreams​(int maxConcurrentStreams)
      • http2MaxFrameSize

        public FACTORY http2MaxFrameSize​(int http2MaxFrameSize)
      • http2InitialWindowSize

        public FACTORY http2InitialWindowSize​(int http2InitialWindowSize)
      • http2HeaderTableSize

        public FACTORY http2HeaderTableSize​(int http2HeaderTableSize)
      • http2MaxHeaderListSize

        public FACTORY http2MaxHeaderListSize​(int http2MaxHeaderListSize)
      • enableInboundHttp2

        public FACTORY enableInboundHttp2​(boolean enableHttp2)
      • useCustomMultiplexHandler

        @Deprecated
        public FACTORY useCustomMultiplexHandler​(boolean useCustomMultiplexHandler)
        Deprecated.
      • getMaxInitialLineLength

        protected final int getMaxInitialLineLength()
      • getMaxHeaderSize

        protected final int getMaxHeaderSize()
      • getMaxChunkSize

        protected final int getMaxChunkSize()
      • isValidateHeaders

        protected final boolean isValidateHeaders()
      • isUseCustomMultiplexHandler

        @Deprecated
        protected final boolean isUseCustomMultiplexHandler()
        Deprecated.
      • initChannel

        protected void initChannel​(C ch)
                            throws java.lang.Exception
        This method will be called once the Channel was registered. After the method returns this instance will be removed from the ChannelPipeline of the Channel.
        Specified by:
        initChannel in class ChannelInitializer<C extends io.netty.channel.Channel>
        Parameters:
        ch - the Channel which was registered.
        Throws:
        java.lang.Exception - is thrown if an error occurs. In that case it will be handled by ChannelInitializer.exceptionCaught(io.netty.channel.ChannelHandlerContext, Throwable) which will by default close the Channel.
      • getServerHttp2Settings

        protected io.netty.handler.codec.http2.Http2Settings getServerHttp2Settings()
      • afterHttpServerCodec

        protected void afterHttpServerCodec​(io.netty.channel.ChannelPipeline pipeline)
      • beforeHttpServerCodec

        protected void beforeHttpServerCodec​(@Nonnull
                                             io.netty.channel.ChannelPipeline pipeline)
      • beforeChunkAggregator

        protected void beforeChunkAggregator​(@Nonnull
                                             io.netty.channel.ChannelPipeline pipeline)
      • beforeIdleStateHandler

        protected void beforeIdleStateHandler​(@Nonnull
                                              io.netty.channel.ChannelPipeline pipeline)
      • beforeHttpRequestHandler

        protected void beforeHttpRequestHandler​(@Nonnull
                                                io.netty.channel.ChannelPipeline pipeline)