added URL Proxy & Timeouts

This commit is contained in:
Jeremy Long
2012-09-10 21:27:26 -04:00
parent 559d35b519
commit 391a410e5b
3 changed files with 56 additions and 2 deletions

View File

@@ -45,6 +45,11 @@ public class DownloaderTest {
// @Test
// public void testFetchFile_URL_String() throws Exception {
// System.out.println("fetchFile");
//
//// Settings.setString(Settings.KEYS.PROXY_URL, "test");
//// Settings.setString(Settings.KEYS.PROXY_PORT, "80");
//// Settings.setString(Settings.KEYS.CONNECTION_TIMEOUT, "1000");
//
// URL url = new URL(Settings.getString(Settings.KEYS.CPE_URL));
// String outputPath = "target\\downloaded_cpe.xml";
// Downloader.fetchFile(url, outputPath);