On 16 Dec 2011, at 09:13, Russell Brown wrote:

> Hi,
> On 16 Dec 2011, at 08:58, Olivier Rossel wrote:
> 
>> …
>> 
>> Is there a special way to declare proxies in riak-java-client ?
> Yes. Can you let me know which version of the RJC you are using, please?

OK, from speaking to you on another channel you are 1.0.x based. This means 
that the Riak HTTP Client uses Apache HTTP Client 4.1 underneath. _At the 
moment_ the only way to set the proxy is to provide a pre-configured Apache 
HTTP Client to the RJC. How you do this depends on which client interface you 
are coding too. Assuming you are using the high-level IRiakClient interface 
then you provide your configured apache client via a config object.

Something like this gist[1] would do it. I believe you can also persuade the 
Apache HTTP client to use the system properties[2] but that also involves 
providing a configured client, so the same as the gist, except you need to set 
the client up to use the `ProxySelectorRoutePlanner`.

I'd like to add proxy settings to the `HTTPClientConfig` class (pull request 
gratefully accepted ;)), and I will, as soon as I have a bit of time for it.

Cheers

Russell

[1] https://gist.github.com/1485435
[2] 
http://hc.apache.org/httpcomponents-client-ga/tutorial/html/connmgmt.html#d4e482

> 
> Cheers
> 
> Russell
> 
>> 
>> Any help is welcome.
>> 
>> _______________________________________________
>> riak-users mailing list
>> [email protected]
>> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
> 
> 
> _______________________________________________
> riak-users mailing list
> [email protected]
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to