Java 类org.apache.http.impl.client.DecompressingHttpClient 实例源码

项目:hbc    文件:RestartableHttpClient.java   
public void setup() {
  DefaultHttpClient defaultClient = new DefaultHttpClient(new PoolingClientConnectionManager(schemeRegistry), params);

  auth.setupConnection(defaultClient);

  if (enableGZip) {
    underlying.set(new DecompressingHttpClient(defaultClient));
  } else {
    underlying.set(defaultClient);
  }
}
项目:molgenis-lifelines    文件:WebAppConfig.java   
@Bean
public HttpClient httpClient()
{
    DefaultHttpClient defaultHttpClient = new DefaultHttpClient(connectionManager());
    HttpParams httpParams = defaultHttpClient.getParams();
    HttpConnectionParams.setConnectionTimeout(httpParams, 2000);
    HttpConnectionParams.setSoTimeout(httpParams, 30000);
    return new DecompressingHttpClient(defaultHttpClient);
}
项目:elasticshell    文件:ShellHttpClient.java   
ShellHttpClient() {
    this.httpClient = new DecompressingHttpClient(new DefaultHttpClient());
}