I'm trying to convince DefaultHttpAsyncClient to use DNSJava instead of the
standard Java DNS. With DefaultHttpClient it is not difficult by using a
specialized DefaultConnectionOperator:
DefaultHttpClient httpClient = new DefaultHttpClient( new
BasicClientConnectionManager() {
@Override
protected ClientConnectionOperator
createConnectionOperator(
SchemeRegistry schreg ) {
return new DefaultClientConnectionOperator(
schreg, new DnsResolver() {
@Override
public InetAddress[] resolve( String
host ) throws UnknownHostException
{
return Address.getAllByName(
host );
}
});
}
});
I couldn't find any way to obtain the same result with
DefaultHttpAsyncClient. Any help appreciated!
--
View this message in context:
http://httpcomponents.10934.n7.nabble.com/Injecting-DNS-resolver-in-HttpAsyncClient-tp18558.html
Sent from the HttpClient-User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]