public void clear(){
  Properties sysprops=System.getProperties();
  sysprops.remove("http.proxyHost");
  sysprops.remove("http.proxyPort");
  sysprops.remove("http.proxyUser");
  sysprops.remove("http.proxyPassword");
  sysprops.remove("https.proxyHost");
  sysprops.remove("https.proxyPort");
  sysprops.remove("ftp.proxyHost");
  sysprops.remove("ftp.proxyPort");
  Authenticator.setDefault(new ProxyAuthenticator("",""));
}

public void clear ( ) { Properties sysprops = System . getProperties ( ) ; sysprops . remove ( "http.proxyHost" ) ; sysprops . remove ( "http.proxyPort" ) ; sysprops . remove ( "http.proxyUser" ) ; sysprops . remove ( "http.proxyPassword" ) ; sysprops . remove ( "https.proxyHost" ) ; sysprops . remove ( "https.proxyPort" ) ; sysprops . remove ( "ftp.proxyHost" ) ; sysprops . remove ( "ftp.proxyPort" ) ; Authenticator . setDefault ( new ProxyAuthenticator ( "" , "" ) ) ; }
clear all proxy settings .
