Can anyone please tell that how can I get the Proxy Setting information using java ?
After java 1.5 there is one class called ProxySelector. It's select method returns the all the applicable proxies. But along with that I wanted to have "do not use proxy server for addresses beginning with" tab data as well which we configure in the Advanced Proxy Setting of IE.
What do you want to do with getting these setting? Where do you want to execute this code. If you are executing on the server then what will you do knowing what a client has set as proxy url to use and all the rules on the browser?
So you get some connection information from the desktop client and additionally you want to use any rules he has put in his browser? I dont know a way to do that, possibly iexplorer or other browser provide some api to get that. I am doubtful though because you have not at all started a browser instance and you want some settings from it. Additionally, how will you handle if the user has mozilla installed instead?
From the usability perspective: This idea seems very non-intutive to me. If a user has wrongly specified something in his browser and he runs your application, he will have no idea of why you did not use the proxy for a url.