Hi Chris,

True, we have definitely resorted to reflection to get around some 1.4 compatibility issues. In all the cases I can think of though it's only been for a single method or class, and it has been for fairly critical features.

This feature would also be difficult to use solely through reflection. Given that 1.5 is so new I'm still a little wary of making core HttpClient compilable only with 1.5.

My intention is not to discourage the addition of this feature, as I think it would be really valuable. Supporting proxy discovery in 1.5/applets/webstart would be nice, but it leaves out a large HttpClient user group (stand-alone pre 1.5 users) and it makes HttpClient dependent on 1.5. My preference would be to play with this in contrib and make it a part of the core once we are comfortable with 1.5. Though as Oleg says it pretty hard to reject a well designed patch against HEAD :)

Mike

On Oct 28, 2004, at 3:25 AM, Chris Brown wrote:

Hi Michael,

I noticed in the release notes for HttpClient 3.0:

http://www.apache.org/dist/jakarta/commons/httpclient/RELEASE-NOTES.txt

...that there's "Support for JDK1.4 connect timeout through reflection". This might be a good way to enable proxy support too, with pluggable implementations of a generic interface (that could also map onto applet/webstart config if available).

It seems useful enough to become a standard feature. "Contrib" projects don't always keep pace with the main project.

- Chris

From: Michael Becke <[EMAIL PROTECTED]>
Reply-To: "HttpClient Project" <[EMAIL PROTECTED]>
To: "HttpClient Project" <[EMAIL PROTECTED]>
Subject: Re: Auto-detecting proxy settings in a standalone Java app
Date: Wed, 27 Oct 2004 22:32:04 -0400

Hi Chris,

Thanks for following through on this one. This is definitely good to know.

Given that this feature is only available in 5(1.5) I don't think we want to include it in the main HttpClient dist. It may be a good addition to the contrib dir or the site docs though. Any other opinions as to the best location for this?

Mike

On Oct 27, 2004, at 4:21 PM, Chris Brown wrote:

Hi all,

I followed this up on the JDIC forums...
http://www.javadesktop.org/forums/thread.jspa?threadID=6011&tstart=0

Maybe the people who followed this thread on this list might be interested in looking at it. It discussed ways of accessing system-wide proxy settings. In particular, HttpClient might want to use Java's reflection APIs to access the J2SE 5 ProxySelector class, and call the getDefault method (just like it already does to access socket options in J2SE 1.4). Using features when possible, as it were.

Thanks again to all,
Chris

From: "Chris Brown" <[EMAIL PROTECTED]>
Reply-To: "Commons HttpClient Project" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: RE: Auto-detecting proxy settings in a standalone Java app
Date: Fri, 22 Oct 2004 23:21:06 +0200


Hi Bruce,

Thanks anyway. Looking into the sun packages in plugin.jar, as you helpfully suggested, I found Windows-specific implementations for NS4, NS6, and IE. Didn't see any way to resolve conflicts between settings (e.g.: a method for determing the preferred browser when there are multiple browsers installed with different settings), although were a lot of similar-sounding classes there.

The API seems sound enough, might fit in well with the JDIC project on java.net ...

- Chris

From: Bruce McHaffie <[EMAIL PROTECTED]>
Reply-To: "Commons HttpClient Project" <[EMAIL PROTECTED]>
To: "'Commons HttpClient Project'" <[EMAIL PROTECTED]>
Subject: RE: Auto-detecting proxy settings in a standalone Java app
Date: Fri, 22 Oct 2004 11:47:50 -0400


Hi Chris, I just meant decompile the plugin.jar code and take a look at what
Sun does for getting proxy settings. I've never tried loading plugin.jar
outside a browser. That's an interesting idea though.


Bruce.

_________________________________________________________________ Trouvez l'�me soeur sur MSN Rencontres http://g.msn.fr/FR1000/9551


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



_________________________________________________________________
MSN Search, le moteur de recherche qui pense comme vous ! http://search.msn.fr/



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




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



_________________________________________________________________
MSN Search, le moteur de recherche qui pense comme vous ! http://search.msn.fr



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



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



Reply via email to