Package org.eclipse.jetty.alpn.client

Examples of org.eclipse.jetty.alpn.client.ALPNClientConnectionFactory


            ClientConnectionFactory factory = new HTTP2ClientConnectionFactory();

            SslContextFactory sslContextFactory = (SslContextFactory)context.get(SslClientConnectionFactory.SSL_CONTEXT_FACTORY_CONTEXT_KEY);
            if (sslContextFactory != null)
            {
                ALPNClientConnectionFactory alpn = new ALPNClientConnectionFactory(getExecutor(), factory, "h2-14");
                factory = new SslClientConnectionFactory(sslContextFactory, byteBufferPool, getExecutor(), alpn);
            }

            return factory.newConnection(endpoint, context);
        }
View Full Code Here

TOP

Related Classes of org.eclipse.jetty.alpn.client.ALPNClientConnectionFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.