Not all params observed when using
Client.setProperty(CommonsHttpMessageSender.HTTP_CLIENT_PARAMS, params)
----------------------------------------------------------------------------------------------------------
Key: XFIRE-862
URL: http://jira.codehaus.org/browse/XFIRE-862
Project: XFire
Issue Type: Bug
Components: Core
Affects Versions: 1.2.4
Reporter: Ken Geis
Assigned To: Dan Diephouse
I have some code that says:
HttpClientParams params = new HttpClientParams();
params.setConnectionManagerClass(MyHttpConnectionManager.class);
client.setProperty(CommonsHttpMessageSender.HTTP_CLIENT_PARAMS, params);
It does nothing! This is because in the commons-httpclient class HttpClient,
the HttpConnectionManager is constructed based on parameters passed in the
constructor. If you set the parameters after constructing the HttpClient, it
will still use the original HttpConnectionManager. This may be considered a
bug in commons-httpclient, but XFire could work around it. I was about to
write a patch, but there might be some gotchas, and I'm not really set up to
test it thoroughly. It's all in CommonsHttpMessageSender.createClient().
At least it would be nice if you made CommonsHttpMessageSender.createClient()
protected instead of private.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email