public void Proxy(boolean enable) {
if (enable == true) {
Properties systemSettings = System.getProperties();
systemSettings.put("http.proxyHost", "proxy_name");
systemSettings.put("http.proxyPort", "port_number");
System.setProperties(systemSettings);
}
}
Procedura ustanawiająca połączenie z proxy.
Brak komentarzy:
Prześlij komentarz