RE: DefaultProxySelector should use system defaults on Windows, MacOS and Gnome
As our product is changing, this is becoming a big concern of ours. People have told us that they can access our website with InternetExplorer, but our Swing application can't access our services because of proxy issues. If the proxy setting could be automatically obtained (already authenticated), it would make our rollout so much easier.
We are currently using Apache's HttpClient, which has a Window's specific client that can use NT credentials to authenticate with the proxy. However, it is not fully supported (due to resource constraints) and there isn't a Mac counterpart.
So, as for the bug report, I would hope that authentication be incorporated, or at least considered, as part of a total solution.
I have seen some net-dev emails about authentication recently, so I am hoping this can all be addressed in coordination.
Senior Software Engineer
Donnell Systems, Inc.
130 South Main Street
Leighton Plaza Suite 375
South Bend, IN 46601
E-mail: mailto:[hidden email] Voice: (574)232-3784
The opinions provided herein do not necessarily state or reflect those of Donnell Systems, Inc.(DSI). DSI makes no warranty for and assumes no legal liability or responsibility for the posting.
From: net-dev [mailto:[hidden email]] On Behalf Of Zeller, Arno
Sent: Wednesday, December 14, 2016 11:07 AM
To: [hidden email] Subject: RFR: DefaultProxySelector should use system defaults on Windows, MacOS and Gnome
can you please review my proposal for bug 8170868 - DefaultProxySelector should use system defaults on Windows, MacOS and Gnome.
Have you tried to use
I think this should work and it would mke it possible to rename:
which is much nicer IMHO :)
Not sure if I understand this right, but in the gconf case above you
insert all proxies returned by "g_proxy_resolver_lookup" into the
prox-list returned by DefaultProxySelector_getSystemProxies. In the
Windows case you write:
247 * From MSDN: The proxy server list contains one or more of
the following strings separated by semicolons or whitespace.
248 * ([<scheme>=][<scheme>"://"]<server>[":"<port>])
249 * We will only take the first entry here because the
java.net.Proxy class has only one entry.
Why can't you build up a proxy list here in the same way you do it for
the gconf case on Unix?
I'm not familiar with the Mac programming model, but I don't think
"com.sap.jvm.DefaultProxySelector" is a good name for
kResolveProxyRunLoopMode. It should be something like
"java.net.DefaultProxySelector" but I'm open for better proposals :)
Thank you and best regards,
PS: for your next RFR, can you please also add the estimated sisze and
the bug id to the subject line (e.g. "RFR(M):
8170868:DefaultProxySelector should..."). This makes it much easier to
find a review thread :)