List of usage examples for org.apache.http.impl.conn DefaultClientConnectionOperator DefaultClientConnectionOperator
public DefaultClientConnectionOperator(final SchemeRegistry schemes, final DnsResolver dnsResolver)
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); }