@Override public Connector build( Server server, MetricRegistry metrics, String name, ThreadPool threadPool) { logSupportedParameters(); final HttpConfiguration httpConfig = buildHttpConfiguration(); final HttpConnectionFactory httpConnectionFactory = buildHttpConnectionFactory(httpConfig); final SslContextFactory sslContextFactory = buildSslContextFactory(); server.addBean(sslContextFactory); final SslConnectionFactory sslConnectionFactory = new SslConnectionFactory(sslContextFactory, HttpVersion.HTTP_1_1.toString()); final Scheduler scheduler = new ScheduledExecutorScheduler(); final ByteBufferPool bufferPool = buildBufferPool(); final String timerName = name( HttpConnectionFactory.class, getBindHost(), Integer.toString(getPort()), "connections"); return buildConnector( server, scheduler, bufferPool, name, threadPool, new InstrumentedConnectionFactory(sslConnectionFactory, metrics.timer(timerName)), httpConnectionFactory); }