@Test public void testConfigureFromState() { HttpClientConfiguratorLoader loader = new HttpClientConfiguratorLoader(new State()); Assert.assertEquals(loader.getConfigurator().getClass(), DefaultHttpClientConfigurator.class); State state = new State(); state.setProp(HttpClientConfiguratorLoader.HTTP_CLIENT_CONFIGURATOR_TYPE_FULL_KEY, "default"); loader = new HttpClientConfiguratorLoader(state); Assert.assertEquals(loader.getConfigurator().getClass(), DefaultHttpClientConfigurator.class); }
public HttpClientConfigurator getConfigurator() { return _configurator; }
HttpClientConfiguratorLoader { public HttpClientConfigurator getConfigurator() { return _configurator; } }
HttpClientConfiguratorLoader { public HttpClientConfigurator getConfigurator() { return _configurator; } HttpClientConfiguratorLoader(State state);  HttpClientConfiguratorLoader(Config config);  HttpClientConfiguratorLoader(Optional<String> configuratorType); }
HttpClientConfiguratorLoader { public HttpClientConfigurator getConfigurator() { return _configurator; } HttpClientConfiguratorLoader(State state);  HttpClientConfiguratorLoader(Config config);  HttpClientConfiguratorLoader(Optional<String> configuratorType); HttpClientConfigurator getConfigurator(); }
HttpClientConfiguratorLoader { public HttpClientConfigurator getConfigurator() { return _configurator; } HttpClientConfiguratorLoader(State state);  HttpClientConfiguratorLoader(Config config);  HttpClientConfiguratorLoader(Optional<String> configuratorType); HttpClientConfigurator getConfigurator(); static final String HTTP_CLIENT_CONFIGURATOR_TYPE_KEY; static final String HTTP_CLIENT_CONFIGURATOR_TYPE_FULL_KEY; static final Class<? extends HttpClientConfigurator> DEFAULT_CONFIGURATOR_CLASS; }