| Modifier and Type | Field and Description |
|---|---|
| private final Http2ConnectionHandler | |
| private final String | |
| private final ChannelHandler | |
| private static final List | |
| private final ChannelHandler |
| Access | Constructor and Description |
|---|---|
| public | |
| public | Http2ClientUpgradeCodec(String handlerName, Http2FrameCodec frameCodec, ChannelHandler upgradeToHandler)
|
| public | Http2ClientUpgradeCodec(Http2ConnectionHandler
the HTTP/2 connection handler connectionHandler)Creates the codec using a default name for the connection handler when adding to the pipeline. |
| public | Http2ClientUpgradeCodec(Http2ConnectionHandler
the HTTP/2 connection handler connectionHandler, Http2MultiplexHandler the Http2 Multiplexer handler to work with Http2FrameCodec http2MultiplexHandler)Creates the codec using a default name for the connection handler when adding to the pipeline. |
| public | Http2ClientUpgradeCodec(String
the name of the HTTP/2 connection handler to be used in the pipeline,
or handlerName, Http2ConnectionHandler null to auto-generate the namethe HTTP/2 connection handler connectionHandler)Creates the codec providing an upgrade to the given handler for HTTP/2. |
| public | Http2ClientUpgradeCodec(String
the name of the HTTP/2 connection handler to be used in the pipeline,
or handlerName, Http2ConnectionHandler null to auto-generate the namethe HTTP/2 connection handler connectionHandler, Http2MultiplexHandler http2MultiplexHandler)Creates the codec providing an upgrade to the given handler for HTTP/2. |
| private | Http2ClientUpgradeCodec(String handlerName, Http2ConnectionHandler connectionHandler, ChannelHandler upgradeToHandler, Http2MultiplexHandler http2MultiplexHandler)
|
| Modifier and Type | Method and Description |
|---|---|
| private CharSequence | getSettingsHeaderValue(ChannelHandlerContext ctx)
Converts the current settings for the handler to the Base64-encoded representation used in the HTTP2-Settings upgrade header. |
| public CharSequence | protocol()
Implements io. 'UPGRADE' header.
|
| public Collection | setUpgradeHeaders(ChannelHandlerContext ctx, HttpRequest upgradeRequest)
Implements io. |
| public void | upgradeTo(ChannelHandlerContext
the context for the current handler. ctx, FullHttpResponse the 101 Switching Protocols response that indicates that the server
has switched to this protocol. upgradeResponse)Implements io. |
| connectionHandler | back to summary |
|---|---|
| private final Http2ConnectionHandler connectionHandler | |
| handlerName | back to summary |
|---|---|
| private final String handlerName | |
| http2MultiplexHandler | back to summary |
|---|---|
| private final ChannelHandler http2MultiplexHandler | |
| UPGRADE_HEADERS | back to summary |
|---|---|
| private static final List<CharSequence> UPGRADE_HEADERS | |
| upgradeToHandler | back to summary |
|---|---|
| private final ChannelHandler upgradeToHandler | |
| Http2ClientUpgradeCodec | back to summary |
|---|---|
| public Http2ClientUpgradeCodec(Http2FrameCodec frameCodec, ChannelHandler upgradeToHandler) | |
| Http2ClientUpgradeCodec | back to summary |
|---|---|
| public Http2ClientUpgradeCodec(String handlerName, Http2FrameCodec frameCodec, ChannelHandler upgradeToHandler) | |
| Http2ClientUpgradeCodec | back to summary |
|---|---|
| public Http2ClientUpgradeCodec(Http2ConnectionHandler connectionHandler) Creates the codec using a default name for the connection handler when adding to the pipeline.
| |
| Http2ClientUpgradeCodec | back to summary |
|---|---|
| public Http2ClientUpgradeCodec(Http2ConnectionHandler connectionHandler, Http2MultiplexHandler http2MultiplexHandler) Creates the codec using a default name for the connection handler when adding to the pipeline.
| |
| Http2ClientUpgradeCodec | back to summary |
|---|---|
| public Http2ClientUpgradeCodec(String handlerName, Http2ConnectionHandler connectionHandler) Creates the codec providing an upgrade to the given handler for HTTP/2.
| |
| Http2ClientUpgradeCodec | back to summary |
|---|---|
| public Http2ClientUpgradeCodec(String handlerName, Http2ConnectionHandler connectionHandler, Http2MultiplexHandler http2MultiplexHandler) Creates the codec providing an upgrade to the given handler for HTTP/2.
| |
| Http2ClientUpgradeCodec | back to summary |
|---|---|
| private Http2ClientUpgradeCodec(String handlerName, Http2ConnectionHandler connectionHandler, ChannelHandler upgradeToHandler, Http2MultiplexHandler http2MultiplexHandler) | |
| getSettingsHeaderValue | back to summary |
|---|---|
| private CharSequence getSettingsHeaderValue(ChannelHandlerContext ctx) Converts the current settings for the handler to the Base64-encoded representation used in the HTTP2-Settings upgrade header. | |
| protocol | back to summary |
|---|---|
| public CharSequence protocol() Implements io. Doc from io. Returns the name of the protocol supported by this codec, as indicated by the
| |
| setUpgradeHeaders | back to summary |
|---|---|
| public Collection Implements io. Doc from io. Sets any protocol-specific headers required to the upgrade request. Returns the names of all headers that were added. These headers will be used to populate the CONNECTION header.
| |
| upgradeTo | back to summary |
|---|---|
| public void upgradeTo(ChannelHandlerContext ctx, FullHttpResponse upgradeResponse) throws Exception Implements io. Doc from io. Performs an HTTP protocol upgrade from the source codec. This method is responsible for adding all handlers required for the new protocol.
| |