[prev in list] [next in list] [prev in thread] [next in thread]
List: httpclient-users
Subject: Re: PoolingClientConnectionManager and createConnectionOperator
From: Oleg Kalnichevski <olegk () apache ! org>
Date: 2013-02-01 12:58:11
Message-ID: 1359723491.16745.13.camel () ubuntu
[Download RAW message or body]
On Thu, 2013-01-31 at 16:53 -0800, John Sheehy wrote:
> Hi,
>
> I'm trying to override the entity serializer for a http POST like so
>
> PoolingClientConnectionManager cm = new
> PoolingClientConnectionManager(schemeRegistry) {
> @Override
> protected ClientConnectionOperator createConnectionOperator(final
> SchemeRegistry schemeRegistry) {
> return new DefaultClientConnectionOperator(schemeRegistry) {
> @Override
> public OperatedClientConnection createConnection() {
> return new DefaultClientConnection() {
> @Override
> protected EntitySerializer createEntitySerializer() {
> return new MyEntitySerializer(new
> StrictContentLengthStrategy());
> }
> };
> }
> };
> }
> }
>
> However, the createConnection() overriden function is never called. Looking
> at the code, it seems there's a line in HttpConnPool (used internally by
> PoolingClientConnectionManager) that simply instantiates a
> DefaultHttpConnection().
>
> Is there any way to override this behaviour?
>
> Thanks a lot,
> John
John
It is a bug in PoolingClientConnectionManager. Please raise a JIRA for
this defect.
Oleg
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic