Hi Oleg,
thanks for the tips - i'll check them out.
They look rather obvious, too - i wonder why i didn't think of it :-(
I think the preferences stuff is a little hard to figure out. I usually end up scanning through the sources being quite confused. OTH, when i DO grasp something, it looks rather smart to me.
Regards, Oliver
Oleg Kalnichevski wrote:
I only have a minor feature request for the preferences architecture: it
would be nice to be able to define default HttpMethodParams per HttpClient instance. (i'm not sure, but you may already have taken care of that).
I believe that can be fairly easy accomplished using existing API
option 1) ======================================================== HttpClientParams params = new HttpClientParams(null); params.setParameter("whatever", new Integer(1)); HttpClient client = new HttpClient(params); ========================================================
option 2) ========================================================
DefaultHttpParams.setHttpParamsFactory(new HttpParamsFactory() { public HttpParams getDefaultParams() { HttpClientParams params = new HttpClientParams(null); params.setParameter("whatever", new Integer(1)); return params; } }); HttpClient client = new HttpClient(); ========================================================
Options 1 and 2 produce similar results. See which one suits your application better.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]