public static void proxyPort(final int port){
  final String portValue=Integer.toString(port);
  setProperty("http.proxyPort",portValue);
  setProperty("https.proxyPort",portValue);
}

public static void proxyPort ( final int port ) { final String portValue = Integer . toString ( port ) ; setProperty ( "http.proxyPort" , portValue ) ; setProperty ( "https.proxyPort" , portValue ) ; }
set the ' http . proxyport ' & ' https . proxyport ' properties to the given port number . < p / > this setting will apply to all requests .
