- Timestamp:
- 2012-09-01T16:36:47+02:00 (12 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/actions/downloadtasks
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadGpsTask.java
r5175 r5486 33 33 private static final String PATTERN_TRACKPOINTS_BBOX = "http://.*/api/0.6/trackpoints\\?bbox=.*,.*,.*,.*"; 34 34 35 private static final String PATTERN_EXTERNAL_GPX_SCRIPT = "http ://.*exportgpx.*";36 private static final String PATTERN_EXTERNAL_GPX_FILE = "http ://.*/(.*\\.gpx)";35 private static final String PATTERN_EXTERNAL_GPX_SCRIPT = "https?://.*exportgpx.*"; 36 private static final String PATTERN_EXTERNAL_GPX_FILE = "https?://.*/(.*\\.gpx)"; 37 37 38 38 protected String newLayerName = null; -
trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadOsmChangeCompressedTask.java
r5361 r5486 17 17 @Override 18 18 public boolean acceptsUrl(String url) { 19 return url != null && url.matches("http ://.*/.*\\.osc.(gz|bz2?)"); // Remote .osc.gz / .osc.bz / .osc.bz2 files19 return url != null && url.matches("https?://.*/.*\\.osc.(gz|bz2?)"); // Remote .osc.gz / .osc.bz / .osc.bz2 files 20 20 } 21 21 … … 30 30 protected DataSet parseDataSet() throws OsmTransferException { 31 31 ProgressMonitor subTaskMonitor = progressMonitor.createSubTaskMonitor(ProgressMonitor.ALL_TICKS, false); 32 if (url.matches("http ://.*/.*\\.osc.bz2?")) {32 if (url.matches("https?://.*/.*\\.osc.bz2?")) { 33 33 return reader.parseOsmChangeBzip2(subTaskMonitor); 34 34 } else { … … 39 39 currentBounds = null; 40 40 // Extract .osc.gz/bz/bz2 filename from URL to set the new layer name 41 extractOsmFilename("http ://.*/(.*\\.osc.(gz|bz2?))", url);41 extractOsmFilename("https?://.*/(.*\\.osc.(gz|bz2?))", url); 42 42 return Main.worker.submit(downloadTask); 43 43 } -
trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadOsmChangeTask.java
r5476 r5486 39 39 return url != null && ( 40 40 url.matches("http://.*/api/0.6/changeset/\\p{Digit}+/download") // OSM API 0.6 changesets 41 || url.matches("http ://.*/.*\\.osc")// Remote .osc files41 || url.matches("https?://.*/.*\\.osc") // Remote .osc files 42 42 ); 43 43 } … … 62 62 progressMonitor); 63 63 // Extract .osc filename from URL to set the new layer name 64 extractOsmFilename("http ://.*/(.*\\.osc)", url);64 extractOsmFilename("https?://.*/(.*\\.osc)", url); 65 65 return Main.worker.submit(downloadTask); 66 66 } -
trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadOsmCompressedTask.java
r5361 r5486 18 18 @Override 19 19 public boolean acceptsUrl(String url) { 20 return url != null && url.matches("http ://.*/.*\\.osm.(gz|bz2?)"); // Remote .osm.gz / .osm.bz / .osm.bz2 files20 return url != null && url.matches("https?://.*/.*\\.osm.(gz|bz2?)"); // Remote .osm.gz / .osm.bz / .osm.bz2 files 21 21 } 22 22 … … 40 40 protected DataSet parseDataSet() throws OsmTransferException { 41 41 ProgressMonitor subTaskMonitor = progressMonitor.createSubTaskMonitor(ProgressMonitor.ALL_TICKS, false); 42 if (url.matches("http ://.*/.*\\.osm.bz2?")) {42 if (url.matches("https?://.*/.*\\.osm.bz2?")) { 43 43 return reader.parseOsmBzip2(subTaskMonitor); 44 44 } else { … … 49 49 currentBounds = null; 50 50 // Extract .osm.gz/bz/bz2 filename from URL to set the new layer name 51 extractOsmFilename("http ://.*/(.*\\.osm.(gz|bz2?))", url);51 extractOsmFilename("https?://.*/(.*\\.osm.(gz|bz2?))", url); 52 52 return Main.worker.submit(downloadTask); 53 53 } -
trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadOsmTask.java
r5402 r5486 129 129 currentBounds = null; 130 130 // Extract .osm filename from URL to set the new layer name 131 extractOsmFilename("http ://.*/(.*\\.osm)", url);131 extractOsmFilename("https?://.*/(.*\\.osm)", url); 132 132 return Main.worker.submit(downloadTask); 133 133 } … … 147 147 || url.matches("http://.*/interpreter\\?data=.*") // Overpass API 148 148 || url.matches("http://.*/xapi\\?.*\\[@meta\\].*") // Overpass API XAPI compatibility layer 149 || url.matches("http ://.*/.*\\.osm")// Remote .osm files149 || url.matches("https?://.*/.*\\.osm") // Remote .osm files 150 150 ); 151 151 }
Note:
See TracChangeset
for help on using the changeset viewer.