Source:
private ConnectorInfo createConnector(Server server, String name, IntSupplier port, ServerConnectorConfig config, ServerConnector bootConnector) { final List<ConnectionFactory> factories = new ArrayList<>(); final SslContextFactory ssl; switch (config.getProtocol()) { case "proxy+http": factories.add(new ProxyConnectionFactory()); case "http": ssl = null; break; case "proxy+https": factories.add(new ProxyConnectionFactory()); case "https": ssl = new SuperSadSslContextFactory(name, config); break; default: throw new UnsupportedOperationException(String.format("For connector '%s', unsupported protocol '%s'", name, config.getProtocol())); } final HttpConfiguration httpConfig = new HttpConfiguration(); if (ssl != null) { httpConfig.addCustomizer(new SecureRequestCustomizer()); } else if (config.isForceSecure()) { httpConfig.addCustomizer(new SuperSecureCustomizer()); } httpConfigCustomizers.ifPresent(c -> c.forEach(h -> h.accept(httpConfig))); final HttpConnectionFactory http = new HttpConnectionFactory(httpConfig); if (ssl != null) { if (!CollectionUtils.isEmpty(excludedProtocols)) { LOG.warn("Excluding following protocols:"); excludedProtocols.forEach(protocol -> LOG.info("Disabling {}", protocol)); ssl.setExcludeProtocols(excludedProtocols.toArray(new String[0])); } factories.add(new SslConnectionFactory(ssl, http.getProtocol())); } factories.add(http); final ServerConnector connector = new ServerConnector(server, factories.toArray(new ConnectionFactory[factories.size()])); connector.setName(name); if (BOOT_CONNECTOR_NAME.equals(name) && bootConnector != null) { connector.setHost(bootConnector.getHost()); connector.setPort(bootConnector.getPort()); LOG.debug("Configuring HTTP connector, setting host and port to Spring's defaults."); } else { connector.setHost(config.getBindAddress()); connector.setPort(selectPort(port, config)); } server.addConnector(connector); return new ServerConnectorInfo(name, connector, config); }

Target:
private ConnectorInfo createConnector(Server server, String name, IntSupplier port, ServerConnectorConfig config, ServerConnector bootConnector) { final List<ConnectionFactory> factories = new ArrayList<>(); final SslContextFactory ssl; switch (config.getProtocol()) { case "proxy+http": factories.add(new ProxyConnectionFactory()); case "http": ssl = null; break; case "proxy+https": factories.add(new ProxyConnectionFactory()); case "https": ssl = new SuperSadSslContextFactory(name, config); break; default: throw new UnsupportedOperationException(String.format("For connector '%s', unsupported protocol '%s'", name, config.getProtocol())); } final HttpConfiguration httpConfig = new HttpConfiguration(); if (ssl != null) { httpConfig.addCustomizer(new SecureRequestCustomizer()); } else if (config.isForceSecure()) { httpConfig.addCustomizer(new SuperSecureCustomizer()); } httpConfigCustomizers.ifPresent(c -> c.forEach(h -> h.accept(httpConfig))); final HttpConnectionFactory http = new HttpConnectionFactory(httpConfig); if (ssl != null) { if (!CollectionUtils.isEmpty(excludedProtocols)) { LOG.warn("Excluding following protocols:"); excludedProtocols.forEach(protocol -> LOG.warn("Disabling {}", protocol)); ssl.setExcludeProtocols(excludedProtocols.toArray(new String[0])); } factories.add(new SslConnectionFactory(ssl, http.getProtocol())); } factories.add(http); final ServerConnector connector = new ServerConnector(server, factories.toArray(new ConnectionFactory[factories.size()])); connector.setName(name); if (BOOT_CONNECTOR_NAME.equals(name) && bootConnector != null) { connector.setHost(bootConnector.getHost()); connector.setPort(bootConnector.getPort()); LOG.debug("Configuring HTTP connector, setting host and port to Spring's defaults."); } else { connector.setHost(config.getBindAddress()); connector.setPort(selectPort(port, config)); } server.addConnector(connector); return new ServerConnectorInfo(name, connector, config); }