/** Loads a HttpClientConfigurator with the specified class or alias. If not specified, * {@link #DEFAULT_CONFIGURATOR_CLASS} is used. */ public HttpClientConfiguratorLoader(Optional<String> configuratorType) { try { _configurator = getConfiguratorClass(configuratorType).newInstance(); } catch (InstantiationException | IllegalAccessException | ClassNotFoundException e) { throw new RuntimeException("Unable to find HttpClientConfigurator:" + e, e); } }
/** Loads a HttpClientConfigurator with the specified class or alias. If not specified, * {@link #DEFAULT_CONFIGURATOR_CLASS} is used. */ public HttpClientConfiguratorLoader(Optional<String> configuratorType) { try { _configurator = getConfiguratorClass(configuratorType).newInstance(); } catch (InstantiationException | IllegalAccessException | ClassNotFoundException e) { throw new RuntimeException("Unable to find HttpClientConfigurator:" + e, e); } }