Class Http2StreamInitializer
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
com.netflix.zuul.netty.server.http2.Http2StreamInitializer
- All Implemented Interfaces:
io.netty.channel.ChannelHandler
,io.netty.channel.ChannelInboundHandler
@Sharable
public class Http2StreamInitializer
extends io.netty.channel.ChannelInboundHandlerAdapter
TODO - can this be done when we create the Http2StreamChannelBootstrap instead now?
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable
-
Constructor Summary
ConstructorDescriptionHttp2StreamInitializer
(io.netty.channel.Channel parent, Consumer<io.netty.channel.ChannelPipeline> addHttpHandlerFn, Http2MetricsChannelHandlers http2MetricsChannelHandlers, Http2ConnectionCloseHandler connectionCloseHandler, Http2ConnectionExpiryHandler connectionExpiryHandler) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addHttp2StreamSpecificHandlers
(io.netty.channel.ChannelPipeline pipeline) protected void
copyAttrFromParentChannel
(io.netty.channel.Channel parent, io.netty.channel.Channel child, io.netty.util.AttributeKey key) protected void
copyAttrsFromParentChannel
(io.netty.channel.Channel parent, io.netty.channel.Channel child) void
handlerAdded
(io.netty.channel.ChannelHandlerContext ctx) Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelRead, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerRemoved, isSharable
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.netty.channel.ChannelHandler
handlerRemoved
-
Constructor Details
-
Http2StreamInitializer
public Http2StreamInitializer(io.netty.channel.Channel parent, Consumer<io.netty.channel.ChannelPipeline> addHttpHandlerFn, Http2MetricsChannelHandlers http2MetricsChannelHandlers, Http2ConnectionCloseHandler connectionCloseHandler, Http2ConnectionExpiryHandler connectionExpiryHandler)
-
-
Method Details
-
handlerAdded
- Specified by:
handlerAdded
in interfaceio.netty.channel.ChannelHandler
- Overrides:
handlerAdded
in classio.netty.channel.ChannelHandlerAdapter
- Throws:
Exception
-
addHttp2StreamSpecificHandlers
protected void addHttp2StreamSpecificHandlers(io.netty.channel.ChannelPipeline pipeline) -
copyAttrsFromParentChannel
protected void copyAttrsFromParentChannel(io.netty.channel.Channel parent, io.netty.channel.Channel child) -
copyAttrFromParentChannel
protected void copyAttrFromParentChannel(io.netty.channel.Channel parent, io.netty.channel.Channel child, io.netty.util.AttributeKey key)
-