Class HTTP2CServerConnectionFactory

  • All Implemented Interfaces:
    ConnectionFactory, ConnectionFactory.Upgrading, NegotiatingServerConnection.CipherDiscriminator, org.eclipse.jetty.util.component.Container, org.eclipse.jetty.util.component.Destroyable, org.eclipse.jetty.util.component.Dumpable, org.eclipse.jetty.util.component.LifeCycle

    public class HTTP2CServerConnectionFactory
    extends HTTP2ServerConnectionFactory
    implements ConnectionFactory.Upgrading
    HTTP2 Clear Text Connection factory.

    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.

    • Constructor Detail

      • HTTP2CServerConnectionFactory

        public HTTP2CServerConnectionFactory​(@Name("config")
                                             HttpConfiguration httpConfiguration)
      • HTTP2CServerConnectionFactory

        public HTTP2CServerConnectionFactory​(@Name("config")
                                             HttpConfiguration httpConfiguration,
                                             @Name("protocols")
                                             java.lang.String... protocols)