>
> On Mon, Oct 10, 2011 at 2:13 PM, Craig Gambino <[email protected]> wrote:
>> If I were to write my own DNS resolver, what is the best way to utilize it?
>> I see that there is a chain of injection that I can do if I override the
>> DefaultClientConnectionOperator, but I wasn't sure if there was a cleaner /
>> easier way.
>>
A code snippet:
DnsResolver myResolver = new MyDnsResolver();
DefaultHttpClient httpclient = new DefaultHttpClient(new
PoolingClientConnectionManager(
SchemeRegistryFactory.createDefault(), myResolver));
HttpGet httpget = new HttpGet("http://www.google.com/");
HttpResponse response = httpclient.execute(httpget);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]