Class BaseZuulChannelInitializer

java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.channel.ChannelInitializer<io.netty.channel.Channel>
com.netflix.zuul.netty.server.BaseZuulChannelInitializer
All Implemented Interfaces:
io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler
Direct Known Subclasses:
Http1MutualSslChannelInitializer, Http2SslChannelInitializer, PushChannelInitializer, ZuulServerChannelInitializer

public abstract class BaseZuulChannelInitializer extends io.netty.channel.ChannelInitializer<io.netty.channel.Channel>
User: Mike Smith Date: 3/5/16 Time: 6:26 PM
  • Field Details

    • HTTP_CODEC_HANDLER_NAME

      public static final String HTTP_CODEC_HANDLER_NAME
      See Also:
    • ATTR_CHANNEL_CONFIG

      public static final io.netty.util.AttributeKey<ChannelConfig> ATTR_CHANNEL_CONFIG
    • nettyLogger

      protected static final io.netty.handler.logging.LoggingHandler nettyLogger
    • MAX_INITIAL_LINE_LENGTH

      public static final com.netflix.config.CachedDynamicIntProperty MAX_INITIAL_LINE_LENGTH
    • MAX_HEADER_SIZE

      public static final com.netflix.config.CachedDynamicIntProperty MAX_HEADER_SIZE
    • MAX_CHUNK_SIZE

      public static final com.netflix.config.CachedDynamicIntProperty MAX_CHUNK_SIZE
    • port

      @Deprecated protected final int port
      Deprecated.
      The port that the server intends to listen on. Subclasses should NOT use this field, as it may not be set, and may differ from the actual listening port. For example:
      • When binding the server to port `0`, the actual port will be different from the one provided here.
      • If there is no port (such as in a LocalSocket, or DomainSocket), the port number may be `-1`.

      Instead, subclasses should read the local address on channel initialization, and decide to take action then.

    • metricId

      protected final String metricId
    • channelConfig

      protected final ChannelConfig channelConfig
    • channelDependencies

      protected final ChannelConfig channelDependencies
    • idleTimeout

      protected final int idleTimeout
    • httpRequestReadTimeout

      protected final int httpRequestReadTimeout
    • maxRequestsPerConnection

      protected final int maxRequestsPerConnection
    • maxRequestsPerConnectionInBrownout

      protected final int maxRequestsPerConnectionInBrownout
    • connectionExpiry

      protected final int connectionExpiry
    • maxConnections

      protected final int maxConnections
    • registry

      protected final com.netflix.spectator.api.Registry registry
    • httpMetricsHandler

      protected final HttpMetricsChannelHandler httpMetricsHandler
    • perEventLoopConnectionMetricsHandler

      protected final PerEventLoopMetricsChannelHandler.Connections perEventLoopConnectionMetricsHandler
    • perEventLoopRequestsMetricsHandler

      protected final PerEventLoopMetricsChannelHandler.HttpRequests perEventLoopRequestsMetricsHandler
    • maxConnectionsHandler

      protected final MaxInboundConnectionsHandler maxConnectionsHandler
    • accessLogPublisher

      protected final AccessLogPublisher accessLogPublisher
    • passportLoggingHandler

      protected final PassportLoggingHandler passportLoggingHandler
    • withProxyProtocol

      protected final boolean withProxyProtocol
    • stripInboundProxyHeadersHandler

      protected final StripUntrustedProxyHeadersHandler stripInboundProxyHeadersHandler
    • rateLimitingChannelHandler

      protected final io.netty.channel.ChannelHandler rateLimitingChannelHandler
    • sslClientCertCheckChannelHandler

      protected final io.netty.channel.ChannelHandler sslClientCertCheckChannelHandler
    • sessionContextDecorator

      protected final SessionContextDecorator sessionContextDecorator
    • requestCompleteHandler

      protected final RequestCompleteHandler requestCompleteHandler
    • httpRequestReadTimeoutCounter

      protected final com.netflix.spectator.api.Counter httpRequestReadTimeoutCounter
    • filterLoader

      protected final FilterLoader filterLoader
    • filterUsageNotifier

      protected final FilterUsageNotifier filterUsageNotifier
    • sourceAddressChannelHandler

      protected final SourceAddressChannelHandler sourceAddressChannelHandler
    • channels

      protected final io.netty.channel.group.ChannelGroup channels
      A collection of all the active channels that we can use to things like graceful shutdown
  • Constructor Details

  • Method Details

    • storeChannel

      protected void storeChannel(io.netty.channel.Channel ch)
    • addPassportHandler

      protected void addPassportHandler(io.netty.channel.ChannelPipeline pipeline)
    • addTcpRelatedHandlers

      protected void addTcpRelatedHandlers(io.netty.channel.ChannelPipeline pipeline)
    • addHttp1Handlers

      protected void addHttp1Handlers(io.netty.channel.ChannelPipeline pipeline)
    • createHttpServerCodec

      protected io.netty.handler.codec.http.HttpServerCodec createHttpServerCodec()
    • addHttpRelatedHandlers

      protected void addHttpRelatedHandlers(io.netty.channel.ChannelPipeline pipeline)
    • addTimeoutHandlers

      protected void addTimeoutHandlers(io.netty.channel.ChannelPipeline pipeline)
    • addSslInfoHandlers

      protected void addSslInfoHandlers(io.netty.channel.ChannelPipeline pipeline, boolean isSSlFromIntermediary)
    • addSslClientCertChecks

      protected void addSslClientCertChecks(io.netty.channel.ChannelPipeline pipeline)
    • addZuulHandlers

      protected void addZuulHandlers(io.netty.channel.ChannelPipeline pipeline)
    • addZuulFilterChainHandler

      protected void addZuulFilterChainHandler(io.netty.channel.ChannelPipeline pipeline)
    • getEndpointRunner

      protected ZuulEndPointRunner getEndpointRunner(ZuulFilterChainRunner<HttpResponseMessage> responseFilterChain, FilterUsageNotifier filterUsageNotifier, FilterLoader filterLoader)
    • getFilterChainRunner

      protected <T extends ZuulMessage> ZuulFilterChainRunner<T> getFilterChainRunner(ZuulFilter<T,T>[] filters, FilterUsageNotifier filterUsageNotifier)
    • getFilterChainRunner

      protected <T extends ZuulMessage, R extends ZuulMessage> ZuulFilterChainRunner<T> getFilterChainRunner(ZuulFilter<T,T>[] filters, FilterUsageNotifier filterUsageNotifier, FilterRunner<T,R> filterRunner)
    • getFilters

      public <T extends ZuulMessage> ZuulFilter<T,T>[] getFilters(ZuulFilter<T,T> start, ZuulFilter<T,T> stop)