@UnstableApi public final class Http2Codec extends ChannelDuplexHandler
Http2FrameCodec
and Http2MultiplexCodec
to the pipeline before
removing itself.ChannelHandler.Sharable
Constructor and Description |
---|
Http2Codec(boolean server,
ChannelHandler streamHandler)
Construct a new handler whose child channels run in the same event loop as this handler.
|
Http2Codec(boolean server,
ChannelHandler streamHandler,
Http2Settings initialSettings)
Construct a new handler whose child channels run in the same event loop as this handler.
|
Http2Codec(boolean server,
Http2StreamChannelBootstrap bootstrap,
Http2FrameLogger frameLogger)
Construct a new handler whose child channels run in a different event loop.
|
Http2Codec(boolean server,
Http2StreamChannelBootstrap bootstrap,
Http2FrameLogger frameLogger,
Http2Settings initialSettings)
Construct a new handler whose child channels run in a different event loop.
|
Modifier and Type | Method and Description |
---|---|
void |
handlerAdded(ChannelHandlerContext ctx)
Do nothing by default, sub-classes may override this method.
|
bind, close, connect, deregister, disconnect, flush, read, write
channelActive, channelInactive, channelRead, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
ensureNotSharable, handlerRemoved, isSharable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
exceptionCaught, handlerRemoved
public Http2Codec(boolean server, ChannelHandler streamHandler)
server
- true
this is a serverstreamHandler
- the handler added to channels for remotely-created streams. It must be
ChannelHandler.Sharable
. null
if the event loop from the parent channel should be used.public Http2Codec(boolean server, ChannelHandler streamHandler, Http2Settings initialSettings)
server
- true
this is a serverstreamHandler
- the handler added to channels for remotely-created streams. It must be
ChannelHandler.Sharable
. null
if the event loop from the parent channel should be used.initialSettings
- non default initial settings to send to peerpublic Http2Codec(boolean server, Http2StreamChannelBootstrap bootstrap, Http2FrameLogger frameLogger)
server
- true
this is a serverbootstrap
- bootstrap used to instantiate child channels for remotely-created streams.public Http2Codec(boolean server, Http2StreamChannelBootstrap bootstrap, Http2FrameLogger frameLogger, Http2Settings initialSettings)
server
- true
this is a serverbootstrap
- bootstrap used to instantiate child channels for remotely-created streams.initialSettings
- non default initial settings to send to peerpublic void handlerAdded(ChannelHandlerContext ctx) throws Exception
ChannelHandlerAdapter
handlerAdded
in interface ChannelHandler
handlerAdded
in class ChannelHandlerAdapter
Exception
Copyright © 2008–2017 The Netty Project. All rights reserved.