public class Http2ProtocolUpgradeHandler
extends io.netty.channel.ChannelDuplexHandler
HttpClientUpgradeHandler.UpgradeEvent event for h2c
upgrade signals and sets the upgrade promise accordingly.| Constructor and Description |
|---|
Http2ProtocolUpgradeHandler(io.netty.channel.ChannelPromise upgradePromise) |
| Modifier and Type | Method and Description |
|---|---|
void |
channelActive(io.netty.channel.ChannelHandlerContext ctx) |
void |
channelInactive(io.netty.channel.ChannelHandlerContext ctx) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
java.lang.Throwable cause) |
static void |
processChannelActive(io.netty.channel.ChannelHandlerContext ctx,
org.slf4j.Logger log,
io.netty.channel.ChannelPromise upgradePromise) |
void |
userEventTriggered(io.netty.channel.ChannelHandlerContext ctx,
java.lang.Object evt) |
bind, close, connect, deregister, disconnect, flush, read, writechannelRead, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChangedensureNotSharable, handlerAdded, handlerRemoved, isSharablepublic Http2ProtocolUpgradeHandler(io.netty.channel.ChannelPromise upgradePromise)
public void channelActive(io.netty.channel.ChannelHandlerContext ctx)
channelActive in interface io.netty.channel.ChannelInboundHandlerchannelActive in class io.netty.channel.ChannelInboundHandlerAdapterpublic static void processChannelActive(io.netty.channel.ChannelHandlerContext ctx,
org.slf4j.Logger log,
io.netty.channel.ChannelPromise upgradePromise)
public void userEventTriggered(io.netty.channel.ChannelHandlerContext ctx,
java.lang.Object evt)
userEventTriggered in interface io.netty.channel.ChannelInboundHandleruserEventTriggered in class io.netty.channel.ChannelInboundHandlerAdapterpublic void channelInactive(io.netty.channel.ChannelHandlerContext ctx)
channelInactive in interface io.netty.channel.ChannelInboundHandlerchannelInactive in class io.netty.channel.ChannelInboundHandlerAdapterpublic void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
java.lang.Throwable cause)
exceptionCaught in interface io.netty.channel.ChannelHandlerexceptionCaught in interface io.netty.channel.ChannelInboundHandlerexceptionCaught in class io.netty.channel.ChannelInboundHandlerAdapter