Class DownloadOsmIdTask
java.lang.Object
org.openstreetmap.josm.actions.downloadtasks.AbstractDownloadTask<DataSet>
org.openstreetmap.josm.actions.downloadtasks.DownloadOsmTask
org.openstreetmap.josm.actions.downloadtasks.DownloadOsmIdTask
- All Implemented Interfaces:
DownloadTask
Specialized task for downloading OSM objects by ID.
It handles one URL pattern: openstreetmap website URL with /(node|way|relation)/<id> argument.
- Since:
- 8240
-
Nested Class Summary
Nested classes/interfaces inherited from class org.openstreetmap.josm.actions.downloadtasks.DownloadOsmTask
DownloadOsmTask.AbstractInternalTask, DownloadOsmTask.DownloadTask -
Field Summary
FieldsFields inherited from class org.openstreetmap.josm.actions.downloadtasks.DownloadOsmTask
currentBounds, downloadTask, newLayerName, OVERPASS_INTERPRETER_DATA, warnAboutEmptyAreaFields inherited from class org.openstreetmap.josm.actions.downloadtasks.AbstractDownloadTask
downloadedData, zoomAfterDownload -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]Returns regular expressions that match the URLsgetTitle()Returns human-readable description of the taskFuture<?>loadUrl(DownloadParams settings, String url, ProgressMonitor progressMonitor) Loads a given URL from the OSM ServerMethods inherited from class org.openstreetmap.josm.actions.downloadtasks.DownloadOsmTask
cancel, download, download, download, extractOsmFilename, getConfirmationMessage, getDownloadProjectionBounds, getOsmServerReader, isSafeForRemotecontrolRequests, modifyUrlBeforeLoad, rememberDownloadedBounds, searchPotentiallyDeletedPrimitivesMethods inherited from class org.openstreetmap.josm.actions.downloadtasks.AbstractDownloadTask
acceptsUrl, acceptsUrl, getDownloadedData, getErrorObjects, isCanceled, isFailed, patterns, rememberDownloadedData, rememberErrorMessage, rememberException, setCanceled, setFailed, setZoomAfterDownload, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.openstreetmap.josm.actions.downloadtasks.DownloadTask
acceptsDocumentationSummary, getErrorMessages, providesOldData
-
Field Details
-
URL_ID_PATTERN
- See Also:
-
-
Constructor Details
-
DownloadOsmIdTask
public DownloadOsmIdTask()
-
-
Method Details
-
getPatterns
Description copied from interface:DownloadTaskReturns regular expressions that match the URLs- Specified by:
getPatternsin interfaceDownloadTask- Overrides:
getPatternsin classDownloadOsmTask- Returns:
- The array of accepted URL patterns
-
loadUrl
Description copied from class:DownloadOsmTaskLoads a given URL from the OSM Server- Specified by:
loadUrlin interfaceDownloadTask- Overrides:
loadUrlin classDownloadOsmTask- Parameters:
settings- download settingsurl- The URL as StringprogressMonitor- the progressMonitor- Returns:
- the future representing the asynchronous task
- See Also:
-
getTitle
Description copied from interface:DownloadTaskReturns human-readable description of the task- Specified by:
getTitlein interfaceDownloadTask- Overrides:
getTitlein classDownloadOsmTask- Returns:
- The task description
-