Ignore:
Timestamp:
2015-12-27T16:17:23+01:00 (5 years ago)
Author:
Don-vip
Message:

see #12231 - initialize API to use progress monitor during HTTP connection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/HttpClient.java

    r9178 r9179  
    2222import org.openstreetmap.josm.Main;
    2323import org.openstreetmap.josm.data.Version;
     24import org.openstreetmap.josm.gui.progress.ProgressMonitor;
    2425import org.openstreetmap.josm.io.Compression;
    2526import org.openstreetmap.josm.io.UTFInputStreamReader;
     
    5556     */
    5657    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 {
    5769        final HttpURLConnection connection = (HttpURLConnection) url.openConnection();
    5870        connection.setRequestMethod(requestMethod);
     
    7688            }
    7789        }
     90
     91        // FIXME: use ProgressMonitor
    7892
    7993        if ("PUT".equals(requestMethod) || "POST".equals(requestMethod) || "DELETE".equals(requestMethod)) {
Note: See TracChangeset for help on using the changeset viewer.