Changeset 9179 in josm for trunk/src/org
- Timestamp:
- 2015-12-27T16:17:23+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/HttpClient.java
r9178 r9179 22 22 import org.openstreetmap.josm.Main; 23 23 import org.openstreetmap.josm.data.Version; 24 import org.openstreetmap.josm.gui.progress.ProgressMonitor; 24 25 import org.openstreetmap.josm.io.Compression; 25 26 import org.openstreetmap.josm.io.UTFInputStreamReader; … … 55 56 */ 56 57 public Response connect() throws IOException { 58 return connect(null); 59 } 60 61 /** 62 * Opens the HTTP connection. 63 * @param monitor progress monitor 64 * @return HTTP response 65 * @throws IOException if any I/O error occurs 66 * @since 9179 67 */ 68 public Response connect(ProgressMonitor monitor) throws IOException { 57 69 final HttpURLConnection connection = (HttpURLConnection) url.openConnection(); 58 70 connection.setRequestMethod(requestMethod); … … 76 88 } 77 89 } 90 91 // FIXME: use ProgressMonitor 78 92 79 93 if ("PUT".equals(requestMethod) || "POST".equals(requestMethod) || "DELETE".equals(requestMethod)) {
Note:
See TracChangeset
for help on using the changeset viewer.