import com.subgraph.vega.internal.http.requests.connection.SocksSupportingThreadSafeClientConnectionManager;
public class BasicHttpClientFactory {
static HttpClient createHttpClient(IHttpRequestEngine.EngineConfigType type) {
final IHttpClientConfigurer configurer = RequestEngineConfig.getHttpClientConfigurer(type);
final HttpParams params = configurer.createHttpParams();
final ClientConnectionManager ccm = createConnectionManager(params);
final DefaultHttpClient client = new VegaHttpClient(ccm, params);
configurer.configureHttpClient(client);
return client;
}