Example usage for org.apache.http.impl.conn ManagedHttpClientConnectionFactory INSTANCE

List of usage examples for org.apache.http.impl.conn ManagedHttpClientConnectionFactory INSTANCE

Introduction

In this page you can find the example usage for org.apache.http.impl.conn ManagedHttpClientConnectionFactory INSTANCE.

Prototype

ManagedHttpClientConnectionFactory INSTANCE

To view the source code for org.apache.http.impl.conn ManagedHttpClientConnectionFactory INSTANCE.

Click Source Link

Usage

From source file:com.serphacker.serposcope.scraper.http.extensions.CloseableBasicHttpClientConnectionManager.java

/**
 * @since 4.4/* w  w w. j a  v a 2 s  .  com*/
 */
public CloseableBasicHttpClientConnectionManager(
        final HttpClientConnectionOperator httpClientConnectionOperator,
        final HttpConnectionFactory<HttpRoute, ManagedHttpClientConnection> connFactory) {
    super();
    this.connectionOperator = Args.notNull(httpClientConnectionOperator, "Connection operator");
    this.connFactory = connFactory != null ? connFactory : ManagedHttpClientConnectionFactory.INSTANCE;
    this.expiry = Long.MAX_VALUE;
    this.socketConfig = SocketConfig.DEFAULT;
    this.connConfig = ConnectionConfig.DEFAULT;
    this.isShutdown = new AtomicBoolean(false);
}

From source file:org.apache.http.impl.conn.BasicHttpClientConnectionManager.java

public BasicHttpClientConnectionManager(final Lookup<ConnectionSocketFactory> socketFactoryRegistry,
        final HttpConnectionFactory<HttpRoute, ManagedHttpClientConnection> connFactory,
        final SchemePortResolver schemePortResolver, final DnsResolver dnsResolver) {
    super();//from www .  j a va  2  s  .com
    this.connectionOperator = new HttpClientConnectionOperator(socketFactoryRegistry, schemePortResolver,
            dnsResolver);
    this.connFactory = connFactory != null ? connFactory : ManagedHttpClientConnectionFactory.INSTANCE;
    this.expiry = Long.MAX_VALUE;
    this.socketConfig = SocketConfig.DEFAULT;
    this.connConfig = ConnectionConfig.DEFAULT;
}