Hi Roland,

thanks for your reply.. I just changed the method to be public and added a getSocket() delegate to the HttpConnectionAdapter class in MultiThreadedHttpConnectionManager..

works swell :-)

kind regards,

/Ole
eviware.com

Roland Weber skrev:
Hi Ole,

thanks, but this method seems to be protected (in HttpClient 3.0.1) and I cant find any easy way to subclass it together with MultiThreadedHttpConnectionManager.. any ideas?

Ah, of course. It would have been too easy :-(

The quick and dirty way is to put a new base class into the
o.a.c.httpclient package which provides a getSocket() method.
The new base class has access to the protected method of
the connection. It doesn't even have to be a base class, a
static utility method will do as well.
I might have another look at the source this evening to see
whether I can come up with a better idea.

cheers,
  Roland



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to