Args.notNull(params, "HTTP params");
this.plainfactory = null;
this.sslfactory = sslfactory;
this.connectTimeout = params.getIntParameter(CoreConnectionPNames.CONNECTION_TIMEOUT, 0);
this.sconfig = HttpParamConfig.getSocketConfig(params);
this.connFactory = new DefaultBHttpClientConnectionFactory(
HttpParamConfig.getConnectionConfig(params));
}