Hopefully I haven't overlooked something but this is how it appears to me...
If by setting properties you mean the http.proxy*
ones, I don't think it will work as hosebird-client uses Apache's HTTP client under the hood which doesn't seem to use them.
From a cursory glance at the code, specifically around the ClientBuilder
, it doesn't look like hbc supports proxy configuration - perhaps they have a good reason not to or just don't need the feature themselves, maybe try requesting it?
It looks like one of the ways you can get HttpClient
to use a proxy is by adding it to the HttpParams
object, e.g.:
HttpParams params = ...
HttpHost proxy = new HttpHost(hostname, port);
params.setParameter(ConnRoutePNames.DEFAULT_PROXY, proxy);
Whilst the HttpParams
object isn't exposed anywhere you could potentially extend the ClientBuilder
in order to supply your proxy configuration. If you look at the ClientBuilder#build()
method, you can see where the HttpParams
object is being set up. Good luck!
EDIT: Additionally, this issue indicates there are no plans to add proxy support directly in hbc.