Changeset 14119 in josm for trunk/src/org/openstreetmap/josm/io
- Timestamp:
- 2018-08-11T16:10:32+02:00 (6 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/io
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/AbstractReader.java
r14099 r14119 62 62 * @param pp postprocessor 63 63 * @see #deregisterPostprocessor 64 * @since xxx(moved from OsmReader)64 * @since 14119 (moved from OsmReader) 65 65 */ 66 66 public static void registerPostprocessor(OsmServerReadPostprocessor pp) { … … 75 75 * @param pp postprocessor 76 76 * @see #registerPostprocessor 77 * @since xxx(moved from OsmReader)77 * @since 14119 (moved from OsmReader) 78 78 */ 79 79 public static void deregisterPostprocessor(OsmServerReadPostprocessor pp) { -
trunk/src/org/openstreetmap/josm/io/CachedFile.java
r13881 r14119 541 541 542 542 private static void checkOfflineAccess(String urlString) { 543 OnlineResource.JOSM_WEBSITE.checkOfflineAccess(urlString, Main.getJOSMWebsite());543 OnlineResource.JOSM_WEBSITE.checkOfflineAccess(urlString, Config.getUrls().getJOSMWebsite()); 544 544 OnlineResource.OSM_API.checkOfflineAccess(urlString, OsmApi.getOsmApi().getServerUrl()); 545 545 } -
trunk/src/org/openstreetmap/josm/io/OsmApi.java
r13647 r14119 37 37 import org.openstreetmap.josm.io.auth.CredentialsManager; 38 38 import org.openstreetmap.josm.spi.preferences.Config; 39 import org.openstreetmap.josm.spi.preferences.IUrls; 39 40 import org.openstreetmap.josm.tools.CheckParameterUtil; 40 41 import org.openstreetmap.josm.tools.HttpClient; … … 73 74 /** 74 75 * Default URL of the standard OSM API. 76 * @deprecated Use {@link IUrls#getDefaultOsmApiUrl} 75 77 * @since 5422 76 78 */ 79 @Deprecated 77 80 public static final String DEFAULT_API_URL = "https://api.openstreetmap.org/api"; 78 81 … … 136 139 137 140 private static String getServerUrlFromPref() { 138 return Config.getPref().get("osm-server.url", DEFAULT_API_URL);141 return Config.getPref().get("osm-server.url", Config.getUrls().getDefaultOsmApiUrl()); 139 142 } 140 143 -
trunk/src/org/openstreetmap/josm/io/OsmServerReader.java
r14005 r14119 14 14 import javax.xml.parsers.ParserConfigurationException; 15 15 16 import org.openstreetmap.josm.Main;17 16 import org.openstreetmap.josm.data.gpx.GpxData; 18 17 import org.openstreetmap.josm.data.notes.Note; … … 21 20 import org.openstreetmap.josm.io.auth.CredentialsAgentException; 22 21 import org.openstreetmap.josm.io.auth.CredentialsManager; 22 import org.openstreetmap.josm.spi.preferences.Config; 23 23 import org.openstreetmap.josm.tools.HttpClient; 24 24 import org.openstreetmap.josm.tools.Logging; … … 155 155 boolean uncompressAccordingToContentDisposition, String httpMethod, byte[] requestBody) throws OsmTransferException { 156 156 try { 157 OnlineResource.JOSM_WEBSITE.checkOfflineAccess(urlStr, Main.getJOSMWebsite());157 OnlineResource.JOSM_WEBSITE.checkOfflineAccess(urlStr, Config.getUrls().getJOSMWebsite()); 158 158 OnlineResource.OSM_API.checkOfflineAccess(urlStr, OsmApi.getOsmApi().getServerUrl()); 159 159 -
trunk/src/org/openstreetmap/josm/io/remotecontrol/handler/ImportHandler.java
r13929 r14119 10 10 import java.util.Set; 11 11 12 import org.openstreetmap.josm.Main;13 12 import org.openstreetmap.josm.actions.downloadtasks.DownloadOsmTask; 14 13 import org.openstreetmap.josm.actions.downloadtasks.DownloadTask; … … 75 74 public String[] getUsageExamples() { 76 75 return new String[] {"/import?url=" + Utils.encodeUrl( 77 Main.getJOSMWebsite()+"/browser/josm/trunk/data_nodist/direction-arrows.osm?format=txt")};76 Config.getUrls().getJOSMWebsite()+"/browser/josm/trunk/data_nodist/direction-arrows.osm?format=txt")}; 78 77 } 79 78
Note:
See TracChangeset
for help on using the changeset viewer.