Changeset 1523 in josm for trunk/src/org/openstreetmap/josm/io/MyHttpHandler.java
- Timestamp:
- 2009-04-06T20:18:48+02:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/MyHttpHandler.java
r1169 r1523 9 9 // Basically a copy of sun.net.www.protocol.http.Handler 10 10 public class MyHttpHandler extends sun.net.www.protocol.http.Handler { 11 protected String proxy;12 protected int proxyPort;11 protected String proxy; 12 protected int proxyPort; 13 13 14 public MyHttpHandler() {15 super();16 proxy = null;17 proxyPort = -1;18 }14 public MyHttpHandler() { 15 super(); 16 proxy = null; 17 proxyPort = -1; 18 } 19 19 20 protected java.net.URLConnection openConnection(URL u)21 throws IOException {22 return openConnection(u, (Proxy) null);23 }24 public MyHttpHandler(String proxy, int port) {25 this.proxy = proxy;26 proxyPort = port;27 }20 protected java.net.URLConnection openConnection(URL u) 21 throws IOException { 22 return openConnection(u, (Proxy) null); 23 } 24 public MyHttpHandler(String proxy, int port) { 25 this.proxy = proxy; 26 proxyPort = port; 27 } 28 28 29 protected java.net.URLConnection openConnection(URL u, Proxy p)30 throws IOException {31 return new MyHttpURLConnection(u, p, this);32 }29 protected java.net.URLConnection openConnection(URL u, Proxy p) 30 throws IOException { 31 return new MyHttpURLConnection(u, p, this); 32 } 33 33 }
Note:
See TracChangeset
for help on using the changeset viewer.
