GeezerVison is showing netty.io — CleartextHttp2ServerUpgradeHandler (Netty API Reference (4.1.141.Final))
Class CleartextHttp2ServerUpgradeHandler
- All Implemented Interfaces:
ChannelHandler, ChannelInboundHandler
Performing cleartext upgrade, by h2c HTTP upgrade or Prior Knowledge.
This handler config pipeline for h2c upgrade when handler added.
And will update pipeline once it detect the connection is starting HTTP/2 by
prior knowledge or not.
-
Nested Class Summary
Nested Classes
Modifier and Type
Class
Description
static final class
User event that is fired to notify about HTTP/2 protocol is started.
-
-
Constructor Summary
Constructors
Constructor
Description
Creates the channel handler provide cleartext HTTP/2 upgrade from HTTP
upgrade or prior knowledge
-
Method Summary
Modifier and Type
Method
Description
protected void
Peek inbound message to determine current connection wants to start HTTP/2
by HTTP upgrade or prior knowledge
void
Do nothing by default, sub-classes may override this method.
actualReadableBytes, callDecode, channelInactive, channelRead, channelReadComplete, decodeLast, discardSomeReadBytes, handlerRemoved, handlerRemoved0, internalBuffer, isSingleDecode, setCumulator, setDiscardAfterReads, setSingleDecode, userEventTriggered
Modifier and Type
Method
Description
protected int
Returns the actual number of readable bytes in the internal cumulative
buffer of this decoder.
protected void
Called once data should be decoded from the given ByteBuf.
void
void
void
protected void
protected final void
final void
Do nothing by default, sub-classes may override this method.
protected void
Gets called after the ByteToMessageDecoder was removed from the actual context and it doesn't handle
events anymore.
Returns the internal cumulative buffer of this decoder.
boolean
void
void
void
void
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
CleartextHttp2ServerUpgradeHandler
Creates the channel handler provide cleartext HTTP/2 upgrade from HTTP
upgrade or prior knowledge
- Parameters:
httpServerCodec - the http server codec
httpServerUpgradeHandler - the http server upgrade handler for HTTP/2
http2ServerHandler - the http2 server handler, will be added into pipeline
when starting HTTP/2 by prior knowledge
-
|