This extension of HTTP2ServerConnection Factory sets the protocol name to "h2c" as used by the clear text upgrade mechanism for HTTP2 and marks all TLS ciphers as unacceptable.
If used in combination with a HttpConnectionFactory as the
default protocol, this factory can support the non-standard direct
update mechanism, where an HTTP1 request of the form "PRI * HTTP/2.0"
is used to trigger a switch to an HTTP2 connection. This approach
allows a single port to accept either HTTP/1 or HTTP/2 direct
connections.
| Modifier and Type | Field and Description |
|---|---|
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | isAcceptable(String protocol, String tlsProtocol, String tlsCipher)
Overrides org. Implements org.
|
| public Connection | upgradeConnection(Connector
The connector to upgrade for. connector, EndPoint The endpoint of the connection. endPoint, MetaData.The meta data of the upgrade request. request,The fields to be sent with the 101 response response101Implements org. Create a connection for an upgrade request. |
| LOG | back to summary |
|---|---|
| private static final Logger LOG Hides org. | |
| HTTP2CServerConnectionFactory | back to summary |
|---|---|
| public HTTP2CServerConnectionFactory(HttpConfiguration httpConfiguration) | |
| HTTP2CServerConnectionFactory | back to summary |
|---|---|
| public HTTP2CServerConnectionFactory(HttpConfiguration httpConfiguration, String... protocols) | |
| isAcceptable | back to summary |
|---|---|
| public boolean isAcceptable(String protocol, String tlsProtocol, String tlsCipher) Overrides org. Implements org.
| |
| upgradeConnection | back to summary |
|---|---|
| public Connection upgradeConnection(Connector connector, EndPoint endPoint, MetaData. Implements org. Doc from org. Create a connection for an upgrade request. This is a variation of
| |