| Modifier and Type | Field and Description |
|---|---|
| private final Http2ConnectionHandler | |
| private static final ChannelHandler[] | |
| private final Http2FrameReader | |
| private final String | |
| private final ChannelHandler[] | |
| private static final InternalLogger | |
| private static final List | |
| private Http2Settings |
| Access | Constructor and Description |
|---|---|
| public | Http2ServerUpgradeCodec(Http2ConnectionHandler
the HTTP/2 connection handler connectionHandler)Creates the codec using a default name for the connection handler when adding to the pipeline. |
| public | Http2ServerUpgradeCodec(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 | Http2ServerUpgradeCodec(Http2FrameCodec
the HTTP/2 frame handler. http2Codec, ChannelHandler... the handlers that will handle the handlers)Http2Frames.Creates the codec using a default name for the connection handler when adding to the pipeline. |
| private | Http2ServerUpgradeCodec(String handlerName, Http2ConnectionHandler connectionHandler, ChannelHandler... handlers)
|
| Modifier and Type | Method and Description |
|---|---|
| private static Buffer | createSettingsFrame(ChannelHandlerContext ctx, Buffer payload)
Creates an HTTP2-Settings header with the given payload. |
| private Http2Settings | decodeSettings(ChannelHandlerContext ctx, Buffer frame)
Decodes the settings frame and returns the settings. |
| private Http2Settings | decodeSettingsHeader(ChannelHandlerContext ctx, CharSequence settingsHeader)
Decodes the settings header and returns a |
| public boolean | prepareUpgradeResponse(ChannelHandlerContext ctx, FullHttpRequest upgradeRequest, HttpHeaders headers)
Implements io. upgradeHeaders for a protocol update based upon the contents of upgradeRequest.
|
| public Collection | requiredUpgradeHeaders()
Implements io. |
| public void | upgradeTo(final ChannelHandlerContext
the context for the current handler. ctx, FullHttpRequest the request that triggered the upgrade to this protocol. upgradeRequest)Implements io. |
| connectionHandler | back to summary |
|---|---|
| private final Http2ConnectionHandler connectionHandler | |
| EMPTY_HANDLERS | back to summary |
|---|---|
| private static final ChannelHandler[] EMPTY_HANDLERS | |
| frameReader | back to summary |
|---|---|
| private final Http2FrameReader frameReader | |
| handlerName | back to summary |
|---|---|
| private final String handlerName | |
| handlers | back to summary |
|---|---|
| private final ChannelHandler[] handlers | |
| logger | back to summary |
|---|---|
| private static final InternalLogger logger | |
| REQUIRED_UPGRADE_HEADERS | back to summary |
|---|---|
| private static final List<CharSequence> REQUIRED_UPGRADE_HEADERS | |
| settings | back to summary |
|---|---|
| private Http2Settings settings | |
| Http2ServerUpgradeCodec | back to summary |
|---|---|
| public Http2ServerUpgradeCodec(Http2ConnectionHandler connectionHandler) Creates the codec using a default name for the connection handler when adding to the pipeline.
| |
| Http2ServerUpgradeCodec | back to summary |
|---|---|
| public Http2ServerUpgradeCodec(String handlerName, Http2ConnectionHandler connectionHandler) Creates the codec providing an upgrade to the given handler for HTTP/2.
| |
| Http2ServerUpgradeCodec | back to summary |
|---|---|
| public Http2ServerUpgradeCodec(Http2FrameCodec http2Codec, ChannelHandler... handlers) Creates the codec using a default name for the connection handler when adding to the pipeline.
| |
| Http2ServerUpgradeCodec | back to summary |
|---|---|
| private Http2ServerUpgradeCodec(String handlerName, Http2ConnectionHandler connectionHandler, ChannelHandler... handlers) | |
| createSettingsFrame | back to summary |
|---|---|
| private static Buffer createSettingsFrame(ChannelHandlerContext ctx, Buffer payload) Creates an HTTP2-Settings header with the given payload. The payload buffer is released. | |
| decodeSettings | back to summary |
|---|---|
| private Http2Settings decodeSettings(ChannelHandlerContext ctx, Buffer frame) throws Http2Exception Decodes the settings frame and returns the settings. | |
| decodeSettingsHeader | back to summary |
|---|---|
| private Http2Settings decodeSettingsHeader(ChannelHandlerContext ctx, CharSequence settingsHeader) throws Http2Exception Decodes the settings header and returns a | |
| prepareUpgradeResponse | back to summary |
|---|---|
| public boolean prepareUpgradeResponse(ChannelHandlerContext ctx, FullHttpRequest upgradeRequest, HttpHeaders headers) Implements io. Doc from io. Prepares the
| |
| requiredUpgradeHeaders | back to summary |
|---|---|
| public Collection Implements io. Doc from io. Gets all protocol-specific headers required by this protocol for a successful upgrade.
Any supplied header will be required to appear in the
| |
| upgradeTo | back to summary |
|---|---|
| public void upgradeTo(final ChannelHandlerContext ctx, FullHttpRequest upgradeRequest) 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.
| |