@Override public String selectProtocol(SSLEngine sslEngine, String[] clientProtocols) { final Connection connection = AlpnSupport.getConnection(sslEngine); if (LOGGER.isLoggable(Level.FINE)) { LOGGER.log(Level.FINE, "Alpn selectProtocol. Connection={0} sslEngine={1} clientProtocols={2}", new Object[]{connection, sslEngine, Arrays.toString(clientProtocols)}); } for (String supportedProtocol : SUPPORTED_PROTOCOLS) { for (String clientProtocol : clientProtocols) { if (supportedProtocol.equals(clientProtocol)) { if (LOGGER.isLoggable(Level.FINE)) { LOGGER.log(Level.FINE, "Alpn select {0}", clientProtocol); } configureHttp2(connection, clientProtocol); return clientProtocol; } } } // Never try HTTP2 for this connection Http2State.create(connection).setNeverHttp2(); return null; }
@Override public String selectProtocol(SSLEngine sslEngine, String[] clientProtocols) { final Connection connection = AlpnSupport.getConnection(sslEngine); if (LOGGER.isLoggable(Level.FINE)) { LOGGER.log(Level.FINE, "Alpn selectProtocol. Connection={0} sslEngine={1} clientProtocols={2}", new Object[]{connection, sslEngine, Arrays.toString(clientProtocols)}); } for (String supportedProtocol : SUPPORTED_PROTOCOLS) { for (String clientProtocol : clientProtocols) { if (supportedProtocol.equals(clientProtocol)) { if (LOGGER.isLoggable(Level.FINE)) { LOGGER.log(Level.FINE, "Alpn select {0}", clientProtocol); } configureHttp2(connection, clientProtocol); return clientProtocol; } } } // Never try HTTP2 for this connection Http2State.create(connection).setNeverHttp2(); return null; }
@Override public String selectProtocol(SSLEngine sslEngine, String[] clientProtocols) { final Connection connection = AlpnSupport.getConnection(sslEngine); if (LOGGER.isLoggable(Level.FINE)) { LOGGER.log(Level.FINE, "Alpn selectProtocol. Connection={0} sslEngine={1} clientProtocols={2}", new Object[]{connection, sslEngine, Arrays.toString(clientProtocols)}); } for (String supportedProtocol : SUPPORTED_PROTOCOLS) { for (String clientProtocol : clientProtocols) { if (supportedProtocol.equals(clientProtocol)) { if (LOGGER.isLoggable(Level.FINE)) { LOGGER.log(Level.FINE, "Alpn select {0}", clientProtocol); } configureHttp2(connection, clientProtocol); return clientProtocol; } } } // Never try HTTP2 for this connection Http2State.create(connection).setNeverHttp2(); return null; }
@Override public String selectProtocol(SSLEngine sslEngine, String[] clientProtocols) { final Connection connection = AlpnSupport.getConnection(sslEngine); if (LOGGER.isLoggable(Level.FINE)) { LOGGER.log(Level.FINE, "Alpn selectProtocol. Connection={0} sslEngine={1} clientProtocols={2}", new Object[]{connection, sslEngine, Arrays.toString(clientProtocols)}); } for (String supportedProtocol : SUPPORTED_PROTOCOLS) { for (String clientProtocol : clientProtocols) { if (supportedProtocol.equals(clientProtocol)) { if (LOGGER.isLoggable(Level.FINE)) { LOGGER.log(Level.FINE, "Alpn select {0}", clientProtocol); } configureHttp2(connection, clientProtocol); return clientProtocol; } } } // Never try HTTP2 for this connection Http2State.create(connection).setNeverHttp2(); return null; }
@Override public String selectProtocol(SSLEngine sslEngine, String[] clientProtocols) { final Connection connection = AlpnSupport.getConnection(sslEngine); if (LOGGER.isLoggable(Level.FINE)) { LOGGER.log(Level.FINE, "Alpn selectProtocol. Connection={0} sslEngine={1} clientProtocols={2}", new Object[]{connection, sslEngine, Arrays.toString(clientProtocols)}); } for (String supportedProtocol : SUPPORTED_PROTOCOLS) { for (String clientProtocol : clientProtocols) { if (supportedProtocol.equals(clientProtocol)) { if (LOGGER.isLoggable(Level.FINE)) { LOGGER.log(Level.FINE, "Alpn select {0}", clientProtocol); } configureHttp2(connection, clientProtocol); return clientProtocol; } } } // Never try HTTP2 for this connection Http2State.create(connection).setNeverHttp2(); return null; }
@Override public String selectProtocol(SSLEngine sslEngine, String[] clientProtocols) { final Connection connection = AlpnSupport.getConnection(sslEngine); if (LOGGER.isLoggable(Level.FINE)) { LOGGER.log(Level.FINE, "Alpn selectProtocol. Connection={0} sslEngine={1} clientProtocols={2}", new Object[]{connection, sslEngine, Arrays.toString(clientProtocols)}); } for (String supportedProtocol : SUPPORTED_PROTOCOLS) { for (String clientProtocol : clientProtocols) { if (supportedProtocol.equals(clientProtocol)) { if (LOGGER.isLoggable(Level.FINE)) { LOGGER.log(Level.FINE, "Alpn select {0}", clientProtocol); } configureHttp2(connection, clientProtocol); return clientProtocol; } } } // Never try HTTP2 for this connection Http2State.create(connection).setNeverHttp2(); return null; }
@Override public String selectProtocol(SSLEngine sslEngine, String[] clientProtocols) { final Connection connection = AlpnSupport.getConnection(sslEngine); if (LOGGER.isLoggable(Level.FINE)) { LOGGER.log(Level.FINE, "Alpn selectProtocol. Connection={0} sslEngine={1} clientProtocols={2}", new Object[]{connection, sslEngine, Arrays.toString(clientProtocols)}); } for (String supportedProtocol : SUPPORTED_PROTOCOLS) { for (String clientProtocol : clientProtocols) { if (supportedProtocol.equals(clientProtocol)) { if (LOGGER.isLoggable(Level.FINE)) { LOGGER.log(Level.FINE, "Alpn select {0}", clientProtocol); } configureHttp2(connection, clientProtocol); return clientProtocol; } } } // Never try HTTP2 for this connection Http2State.create(connection).setNeverHttp2(); return null; }
@Override public String selectProtocol(SSLEngine sslEngine, String[] clientProtocols) { final Connection connection = AlpnSupport.getConnection(sslEngine); if (LOGGER.isLoggable(Level.FINE)) { LOGGER.log(Level.FINE, "Alpn selectProtocol. Connection={0} sslEngine={1} clientProtocols={2}", new Object[]{connection, sslEngine, Arrays.toString(clientProtocols)}); } for (String supportedProtocol : SUPPORTED_PROTOCOLS) { for (String clientProtocol : clientProtocols) { if (supportedProtocol.equals(clientProtocol)) { if (LOGGER.isLoggable(Level.FINE)) { LOGGER.log(Level.FINE, "Alpn select {0}", clientProtocol); } configureHttp2(connection, clientProtocol); return clientProtocol; } } } // Never try HTTP2 for this connection Http2State.create(connection).setNeverHttp2(); return null; }
@Override public String selectProtocol(SSLEngine sslEngine, String[] clientProtocols) { final Connection connection = AlpnSupport.getConnection(sslEngine); if (LOGGER.isLoggable(Level.FINE)) { LOGGER.log(Level.FINE, "Alpn selectProtocol. Connection={0} sslEngine={1} clientProtocols={2}", new Object[]{connection, sslEngine, Arrays.toString(clientProtocols)}); } for (String supportedProtocol : SUPPORTED_PROTOCOLS) { for (String clientProtocol : clientProtocols) { if (supportedProtocol.equals(clientProtocol)) { if (LOGGER.isLoggable(Level.FINE)) { LOGGER.log(Level.FINE, "Alpn select {0}", clientProtocol); } configureHttp2(connection, clientProtocol); return clientProtocol; } } } // Never try HTTP2 for this connection Http2State.create(connection).setNeverHttp2(); return null; }