On Thu, 2014-09-25 at 19:31 +0700, Maxim Solodovnik wrote:
> Thanks for the clarification
> 
> Could you please provide example or maybe a hint of how to use "Custom
> content length strategy"?
> I have tried this one [1] and found it not compilable
> Another example (I'm unable to find right now) was too complicated: lots of
> code was written (creating and using DefaultBHttpClientConnection). I
> wonder if there any simplier way to achieve this?
> 

It turned out I had forgotted to add an optional constructor to
ManagedHttpClientConnectionFactory in 4.3. Now it will have to wait
until 4.4.

https://github.com/apache/httpclient/commit/0f227fa940598c7d5c64b9b7f4dcfe70dfa3da31
 

Essentially this is how it is supposed to work.
---
ManagedHttpClientConnectionFactory connFactory = new
ManagedHttpClientConnectionFactory(...);
PoolingHttpClientConnectionManager cm = new
PoolingHttpClientConnectionManager(connFactory);
---

For now you will have to build a custom HttpConnectionFactory<HttpRoute,
ManagedHttpClientConnection> implementation.

Oleg




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to