@UnstableApi public final class CleartextHttp2ServerUpgradeHandler extends ChannelHandlerAdapter
Modifier and Type | Class and Description |
---|---|
private class |
CleartextHttp2ServerUpgradeHandler.PriorKnowledgeHandler
Peek inbound message to determine current connection wants to start HTTP/2
by HTTP upgrade or prior knowledge
|
static class |
CleartextHttp2ServerUpgradeHandler.PriorKnowledgeUpgradeEvent
User event that is fired to notify about HTTP/2 protocol is started.
|
ChannelHandler.Sharable
Modifier and Type | Field and Description |
---|---|
private static ByteBuf |
CONNECTION_PREFACE |
private ChannelHandler |
http2ServerHandler |
private HttpServerCodec |
httpServerCodec |
private HttpServerUpgradeHandler |
httpServerUpgradeHandler |
Constructor and Description |
---|
CleartextHttp2ServerUpgradeHandler(HttpServerCodec httpServerCodec,
HttpServerUpgradeHandler httpServerUpgradeHandler,
ChannelHandler http2ServerHandler)
Creates the channel handler provide cleartext HTTP/2 upgrade from HTTP
upgrade or prior knowledge
|
Modifier and Type | Method and Description |
---|---|
void |
handlerAdded(ChannelHandlerContext ctx)
Do nothing by default, sub-classes may override this method.
|
ensureNotSharable, exceptionCaught, handlerRemoved, isSharable
private static final ByteBuf CONNECTION_PREFACE
private final HttpServerCodec httpServerCodec
private final HttpServerUpgradeHandler httpServerUpgradeHandler
private final ChannelHandler http2ServerHandler
public CleartextHttp2ServerUpgradeHandler(HttpServerCodec httpServerCodec, HttpServerUpgradeHandler httpServerUpgradeHandler, ChannelHandler http2ServerHandler)
httpServerCodec
- the http server codechttpServerUpgradeHandler
- the http server upgrade handler for HTTP/2http2ServerHandler
- the http2 server handler, will be added into pipeline
when starting HTTP/2 by prior knowledgepublic void handlerAdded(ChannelHandlerContext ctx) throws java.lang.Exception
ChannelHandlerAdapter
handlerAdded
in interface ChannelHandler
handlerAdded
in class ChannelHandlerAdapter
java.lang.Exception