hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Brown" <chris92...@hotmail.com>
Subject Re: Auto-detecting proxy settings in a standalone Java app
Date Sun, 07 Nov 2004 09:43:41 GMT
Hi,

About proxy auto-detection, interesting read for those that can use JDK 5 
and need this feature.

http://www.javadesktop.org/forums/thread.jspa?threadID=6011&tstart=0
http://blogs.sun.com/roller/resources/jcc/Proxies.pdf

- Chris

>From: "Chris Brown" <chris92250@hotmail.com>
>Reply-To: "HttpClient Project" <httpclient-dev@jakarta.apache.org>
>To: httpclient-dev@jakarta.apache.org
>Subject: Re: Auto-detecting proxy settings in a standalone Java app
>Date: Thu, 28 Oct 2004 15:53:32 +0200
>
>I'll add it to my "TODO" list then, which unfortunately tends to get bigger 
>rather than smaller.  So if anyone else has a chance, don't wait for me 
>(although I did scratch an itch for date headers a while back in 
>HttpClient, and passed on the patch to you, so it's not impossible ! ;-) ).
>
>Don't worry, I wouldn't advocate a mandatory 1.5 / 5.0 yet !  I'm only just 
>beginning to move to 1.4 myself in professional projects (although 5.0 is 
>good fun for personal stuff, apart from javac's nasty little bugs...)
>
>- Chris
>
>>From: Michael Becke <becke@u.washington.edu>
>>Reply-To: "HttpClient Project" <httpclient-dev@jakarta.apache.org>
>>To: "HttpClient Project" <httpclient-dev@jakarta.apache.org>
>>Subject: Re: Auto-detecting proxy settings in a standalone Java app
>>Date: Thu, 28 Oct 2004 08:47:36 -0400
>>
>>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 <becke@u.washington.edu>
>>>>Reply-To: "HttpClient Project" <httpclient-dev@jakarta.apache.org>
>>>>To: "HttpClient Project" <httpclient-dev@jakarta.apache.org>
>>>>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" <chris92250@hotmail.com>
>>>>>>Reply-To: "Commons HttpClient Project"  
>>>>>><commons-httpclient-dev@jakarta.apache.org>
>>>>>>To: commons-httpclient-dev@jakarta.apache.org
>>>>>>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 <bruce.mchaffie@entrust.com>
>>>>>>>Reply-To: "Commons HttpClient Project"  
>>>>>>><commons-httpclient-dev@jakarta.apache.org>
>>>>>>>To: "'Commons HttpClient Project'"  
>>>>>>><commons-httpclient-dev@jakarta.apache.org>
>>>>>>>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:  
>>>>>>commons-httpclient-dev-unsubscribe@jakarta.apache.org
>>>>>>For additional commands, e-mail:  
>>>>>>commons-httpclient-dev-help@jakarta.apache.org
>>>>>>
>>>>>
>>>>>_________________________________________________________________
>>>>>MSN Search, le moteur de recherche qui pense comme vous !   
>>>>>http://search.msn.fr/
>>>>>
>>>>>
>>>>>---------------------------------------------------------------------
>>>>>To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
>>>>>For additional commands, e-mail:  
>>>>>httpclient-dev-help@jakarta.apache.org
>>>>>
>>>>
>>>>
>>>>---------------------------------------------------------------------
>>>>To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
>>>>For additional commands, e-mail:  httpclient-dev-help@jakarta.apache.org
>>>>
>>>
>>>_________________________________________________________________
>>>MSN Search, le moteur de recherche qui pense comme vous !   
>>>http://search.msn.fr
>>>
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
>>>For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org
>>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org
>>
>
>_________________________________________________________________
>MSN Messenger : dialoguez en temps réel avec vos amis ! 
>http://g.msn.fr/FR1001/866 la solidarité à portée de click
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org
>

_________________________________________________________________
MSN Actions Solidaires : volontaire à l'étranger 
http://www.msn.fr/actionssolidaires/Default.asp?Ath=f


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org


Mime
View raw message