@UnstableApi public final class CleartextHttp2ServerUpgradeHandler extends ChannelHandlerAdapter
| Modifier and Type | Class and Description |
|---|---|
static class |
CleartextHttp2ServerUpgradeHandler.PriorKnowledgeUpgradeEvent
启动用于通知HTTP / 2协议的用户事件。
|
ChannelHandler.Sharable| Constructor and Description |
|---|
CleartextHttp2ServerUpgradeHandler(HttpServerCodec httpServerCodec, HttpServerUpgradeHandler httpServerUpgradeHandler, ChannelHandler http2ServerHandler)
创建通道处理程序,从HTTP升级或先前的知识提供明文HTTP / 2升级
|
| Modifier and Type | Method and Description |
|---|---|
void |
handlerAdded(ChannelHandlerContext ctx)
子类可以忽略这个方法。
|
ensureNotSharable, exceptionCaught, handlerRemoved, isSharablepublic CleartextHttp2ServerUpgradeHandler(HttpServerCodec httpServerCodec, HttpServerUpgradeHandler httpServerUpgradeHandler, ChannelHandler http2ServerHandler)
httpServerCodec - http服务器编解码器
httpServerUpgradeHandler - HTTP / 2的http服务器升级处理程序
http2ServerHandler - 根据先验知识启动HTTP / 2时,http2服务器处理程序将被添加到管道中
public void handlerAdded(ChannelHandlerContext ctx) throws java.lang.Exception
ChannelHandlerAdapter
handlerAdded接口
ChannelHandler
handlerAdded在课堂
ChannelHandlerAdapter
java.lang.Exception
Copyright © 2008–2018 The Netty Project. All rights reserved.