Changeset 6875 in josm for trunk/src/org


Ignore:
Timestamp:
2014-02-19T19:12:39+01:00 (10 years ago)
Author:
Don-vip
Message:

fix #9744 - Make OsmApi.sendRequest() protected to let plugins access this method (need for notes plugin)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/OsmApi.java

    r6852 r6875  
    578578    }
    579579
    580     private String sendRequest(String requestMethod, String urlSuffix,String requestBody, ProgressMonitor monitor) throws OsmTransferException {
     580    protected final String sendRequest(String requestMethod, String urlSuffix,String requestBody, ProgressMonitor monitor) throws OsmTransferException {
    581581        return sendRequest(requestMethod, urlSuffix, requestBody, monitor, true, false);
    582582    }
     
    601601     *    been exhausted), or rewrapping a Java exception.
    602602     */
    603     private String sendRequest(String requestMethod, String urlSuffix,String requestBody, ProgressMonitor monitor, boolean doAuthenticate, boolean fastFail) throws OsmTransferException {
     603    protected final String sendRequest(String requestMethod, String urlSuffix,String requestBody, ProgressMonitor monitor, boolean doAuthenticate, boolean fastFail) throws OsmTransferException {
    604604        StringBuilder responseBody = new StringBuilder();
    605605        int retries = fastFail ? 0 : getMaxRetries();
Note: See TracChangeset for help on using the changeset viewer.