| Modifier and Type | Class and Description |
|---|---|
| public static class | CleartextHttp2ServerUpgradeHandler.
User event that is fired to notify about HTTP/2 protocol is started. |
| Modifier and Type | Field and Description |
|---|---|
| private static final ByteBuf | |
| private final ChannelHandler | |
| private final HttpServerCodec | |
| private final HttpServerUpgradeHandler |
| Access | Constructor and Description |
|---|---|
| public | CleartextHttp2ServerUpgradeHandler(HttpServerCodec
the http server codec httpServerCodec, HttpServerUpgradeHandler the http server upgrade handler for HTTP/2 httpServerUpgradeHandler, ChannelHandler the http2 server handler, will be added into pipeline
when starting HTTP/2 by prior knowledge http2ServerHandler)Creates the channel handler provide cleartext HTTP/2 upgrade from HTTP upgrade or prior knowledge |
| Modifier and Type | Method and Description |
|---|---|
| protected void | decode(ChannelHandlerContext
the ctx, ByteBuf ChannelHandlerContext which this ByteToMessageDecoder belongs tothe in, List<Object> ByteBuf from which to read datathe out)List to which decoded messages should be addedImplements abstract io. |
| public void | handlerAdded(ChannelHandlerContext ctx)
Overrides io. Implements io. ChannelHandler was added to the actual context and it's ready to handle events.
|
| CONNECTION_PREFACE | back to summary |
|---|---|
| private static final ByteBuf CONNECTION_PREFACE | |
| http2ServerHandler | back to summary |
|---|---|
| private final ChannelHandler http2ServerHandler | |
| httpServerCodec | back to summary |
|---|---|
| private final HttpServerCodec httpServerCodec | |
| httpServerUpgradeHandler | back to summary |
|---|---|
| private final HttpServerUpgradeHandler httpServerUpgradeHandler | |
| CleartextHttp2ServerUpgradeHandler | back to summary |
|---|---|
| public CleartextHttp2ServerUpgradeHandler(HttpServerCodec httpServerCodec, HttpServerUpgradeHandler httpServerUpgradeHandler, ChannelHandler http2ServerHandler) Creates the channel handler provide cleartext HTTP/2 upgrade from HTTP upgrade or prior knowledge
| |
| decode | back to summary |
|---|---|
| protected void decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) throws Exception Implements abstract io. Peek inbound message to determine current connection wants to start HTTP/2 by HTTP upgrade or prior knowledge
| |
| handlerAdded | back to summary |
|---|---|
| public void handlerAdded(ChannelHandlerContext ctx) throws Exception Overrides io. Implements io. Doc from io. Gets called after the
| |
| Modifier and Type | Field and Description |
|---|---|
| private static final CleartextHttp2ServerUpgradeHandler. |
| Access | Constructor and Description |
|---|---|
| private |
| INSTANCE | back to summary |
|---|---|
| private static final CleartextHttp2ServerUpgradeHandler. | |
| PriorKnowledgeUpgradeEvent | back to summary |
|---|---|
| private PriorKnowledgeUpgradeEvent() | |