Googled and find few links about proxy settings in Java, but few things make me a little confused
1) Do we really need to set the proxySet property or not?
System.getProperties().put( "proxySet", "true" );
System.getProperties().put( "proxyHost", "proxy host" );
System.getProperties().put( "proxyPort", "8080" );
2) What's difference between setting http.proxyHost and proxyHost? basically, does it mean that the "proxyHost" one will be applied to all protocols including http, https, ftp, etc, whereas http.proxyHost only applies to http protocol?
System.getProperties().put( "proxyHost", "proxy host" );
or
System.getProperties().put( "http.proxyHost", "proxy host" );
3) Do we always need to do afterwards?
System.getProperties().put( "proxySet", "false" );
System.getProperties().put( "proxyHost", "" );
System.getProperties().put( "proxyPort", "" );
4) Where is the detailed and official documentation about doing proxy settings in Java?