public class Http2OrHttpHandler
extends io.netty.handler.ssl.ApplicationProtocolNegotiationHandler
| 限定符和类型 | 字段和说明 |
|---|---|
private Http11Listener |
listener |
static String |
NAME |
| 构造器和说明 |
|---|
Http2OrHttpHandler(Http11Listener listener) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
configurePipeline(io.netty.channel.ChannelHandlerContext ctx,
String protocol) |
static HttpToHttp2ConnectionHandler |
createHttpToHttp2ConnectionHandler() |
exceptionCaught, handshakeFailure, userEventTriggeredchannelActive, channelInactive, channelRead, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChangedensureNotSharable, handlerAdded, handlerRemoved, isSharablepublic static String NAME
private Http11Listener listener
public Http2OrHttpHandler(Http11Listener listener)
protected void configurePipeline(io.netty.channel.ChannelHandlerContext ctx,
String protocol)
throws Exception
configurePipeline 在类中 io.netty.handler.ssl.ApplicationProtocolNegotiationHandlerExceptionpublic static HttpToHttp2ConnectionHandler createHttpToHttp2ConnectionHandler()
Copyright © 2023 Zodiac. All rights reserved.