GeezerVison is showing netty.io — Http2ClientUpgradeCodec (Netty API Reference (4.1.141.Final))
Class Http2ClientUpgradeCodec
-
Constructor Summary
Constructors
Constructor
Description
Creates the codec using a default name for the connection handler when adding to the
pipeline.
Creates the codec using a default name for the connection handler when adding to the
pipeline.
Creates the codec providing an upgrade to the given handler for HTTP/2.
Creates the codec providing an upgrade to the given handler for HTTP/2.
-
Method Summary
Modifier and Type
Method
Description
Returns the name of the protocol supported by this codec, as indicated by the 'UPGRADE' header.
Sets any protocol-specific headers required to the upgrade request.
void
Performs an HTTP protocol upgrade from the source codec.
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
-
-
Http2ClientUpgradeCodec
Creates the codec using a default name for the connection handler when adding to the
pipeline.
- Parameters:
connectionHandler - the HTTP/2 connection handler
-
Http2ClientUpgradeCodec
Creates the codec using a default name for the connection handler when adding to the
pipeline.
- Parameters:
connectionHandler - the HTTP/2 connection handler
http2MultiplexHandler - the Http2 Multiplexer handler to work with Http2FrameCodec
-
Http2ClientUpgradeCodec
Creates the codec providing an upgrade to the given handler for HTTP/2.
- Parameters:
handlerName - the name of the HTTP/2 connection handler to be used in the pipeline,
or null to auto-generate the name
connectionHandler - the HTTP/2 connection handler
-
Http2ClientUpgradeCodec
Creates the codec providing an upgrade to the given handler for HTTP/2.
- Parameters:
handlerName - the name of the HTTP/2 connection handler to be used in the pipeline,
or null to auto-generate the name
connectionHandler - the HTTP/2 connection handler
-
Method Details
-
-
-
upgradeTo
Performs an HTTP protocol upgrade from the source codec. This method is responsible for
adding all handlers required for the new protocol.
- Specified by:
upgradeTo in interface HttpClientUpgradeHandler.UpgradeCodec
- Parameters:
ctx - the context for the current handler.
upgradeResponse - the 101 Switching Protocols response that indicates that the server
has switched to this protocol.
- Throws:
Exception
|