Changeset 6889 in josm for trunk/src/org/openstreetmap/josm/io/OsmApi.java
- Timestamp:
- 2014-02-27T01:41:49+01:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/OsmApi.java
r6875 r6889 59 59 * Maximum number of retries to send a request in case of HTTP 500 errors or timeouts 60 60 */ 61 static public final int DEFAULT_MAX_NUM_RETRIES = 5;61 public static final int DEFAULT_MAX_NUM_RETRIES = 5; 62 62 63 63 /** … … 67 67 * @since 5386 68 68 */ 69 static public final int MAX_DOWNLOAD_THREADS = 2;69 public static final int MAX_DOWNLOAD_THREADS = 2; 70 70 71 71 /** … … 73 73 * @since 5422 74 74 */ 75 static public final String DEFAULT_API_URL = "http://api.openstreetmap.org/api";75 public static final String DEFAULT_API_URL = "http://api.openstreetmap.org/api"; 76 76 77 77 // The collection of instantiated OSM APIs … … 88 88 * 89 89 */ 90 static public OsmApi getOsmApi(String serverUrl) {90 public static OsmApi getOsmApi(String serverUrl) { 91 91 OsmApi api = instances.get(serverUrl); 92 92 if (api == null) { … … 102 102 * @return the OsmApi 103 103 */ 104 static public OsmApi getOsmApi() {104 public static OsmApi getOsmApi() { 105 105 String serverUrl = Main.pref.get("osm-server.url", DEFAULT_API_URL); 106 106 return getOsmApi(serverUrl);
Note:
See TracChangeset
for help on using the changeset viewer.