switch (proxy.type()) {
case DIRECT:
connectorHandler.setProcessor(createFilterChain(engine, null, clientSSLEngineConfigurator, false, uri, timeoutHandler, sharedTransport, sharedTransportTimeout));
LOGGER.log(Level.CONFIG, String.format("Connecting to '%s' (no proxy).", uri));
connectionGrizzlyFuture = connectorHandler.connect(socketAddress);
break;
default:
connectorHandler.setProcessor(createFilterChain(engine, null, clientSSLEngineConfigurator, true, uri, timeoutHandler, sharedTransport, sharedTransportTimeout));
LOGGER.log(Level.CONFIG, String.format("Connecting to '%s' via proxy '%s'.", uri, proxy));