Example usage for org.apache.http.impl.conn DefaultClientConnectionOperator DefaultClientConnectionOperator

List of usage examples for org.apache.http.impl.conn DefaultClientConnectionOperator DefaultClientConnectionOperator

Introduction

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

Prototype

public DefaultClientConnectionOperator(final SchemeRegistry schemes, final DnsResolver dnsResolver) 

Source Link

Document

Creates a new client connection operator for the given scheme registry and the given custom DNS lookup mechanism.

Usage

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

/**
 * Hook for creating the connection operator.
 * It is called by the constructor./* w  w  w.  j a v  a2s .c o m*/
 * Derived classes can override this method to change the
 * instantiation of the operator.
 * The default implementation here instantiates
 * {@link DefaultClientConnectionOperator DefaultClientConnectionOperator}.
 *
 * @param schreg    the scheme registry.
 *
 * @return  the connection operator to use
 */
protected ClientConnectionOperator createConnectionOperator(SchemeRegistry schreg) {
    return new DefaultClientConnectionOperator(schreg, this.dnsResolver);
}

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

/**
 * Hook for creating the connection operator.
 * It is called by the constructor./*from   ww  w .ja  va  2s. c  o m*/
 * Derived classes can override this method to change the
 * instantiation of the operator.
 * The default implementation here instantiates
 * {@link DefaultClientConnectionOperator DefaultClientConnectionOperator}.
 *
 * @param schreg    the scheme registry.
 *
 * @return  the connection operator to use
 */
protected ClientConnectionOperator createConnectionOperator(final SchemeRegistry schreg) {
    return new DefaultClientConnectionOperator(schreg, this.dnsResolver);
}