Class DownloadNotesUrlIdTask
- java.lang.Object
-
- org.openstreetmap.josm.actions.downloadtasks.AbstractDownloadTask<NoteData>
-
- org.openstreetmap.josm.actions.downloadtasks.DownloadNotesTask
-
- org.openstreetmap.josm.actions.downloadtasks.DownloadNotesUrlIdTask
-
- All Implemented Interfaces:
DownloadTask
public class DownloadNotesUrlIdTask extends DownloadNotesTask
Specialized task for downloading OSM notes by ID.It handles one URL pattern: openstreetmap website URL with
/node/<id>argument.- Since:
- 8195
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstreetmap.josm.actions.downloadtasks.DownloadNotesTask
DownloadNotesTask.DownloadBoundingBoxTask, DownloadNotesTask.DownloadCompressedRawUrlTask, DownloadNotesTask.DownloadRawUrlTask, DownloadNotesTask.DownloadTask
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.StringURL_ID_PATTERN-
Fields inherited from class org.openstreetmap.josm.actions.downloadtasks.DownloadNotesTask
DAYS_CLOSED, DOWNLOAD_LIMIT, warnAboutEmptyArea
-
Fields inherited from class org.openstreetmap.josm.actions.downloadtasks.AbstractDownloadTask
downloadedData, zoomAfterDownload
-
-
Constructor Summary
Constructors Constructor Description DownloadNotesUrlIdTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]getPatterns()Returns regular expressions that match the URLsjava.lang.StringgetTitle()Returns human-readable description of the taskjava.util.concurrent.Future<?>loadUrl(DownloadParams settings, java.lang.String url, ProgressMonitor progressMonitor)Asynchronously launches the download task for a given bounding URL.-
Methods inherited from class org.openstreetmap.josm.actions.downloadtasks.DownloadNotesTask
cancel, download, download, getConfirmationMessage, getDownloadProjectionBounds, isSafeForRemotecontrolRequests
-
Methods inherited from class org.openstreetmap.josm.actions.downloadtasks.AbstractDownloadTask
acceptsUrl, acceptsUrl, getDownloadedData, getErrorObjects, isCanceled, isFailed, patterns, rememberDownloadedData, rememberErrorMessage, rememberException, setCanceled, setFailed, setZoomAfterDownload, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.openstreetmap.josm.actions.downloadtasks.DownloadTask
acceptsDocumentationSummary, getErrorMessages
-
-
-
-
Field Detail
-
URL_ID_PATTERN
private static final java.lang.String URL_ID_PATTERN
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DownloadNotesUrlIdTask
public DownloadNotesUrlIdTask()
-
-
Method Detail
-
loadUrl
public java.util.concurrent.Future<?> loadUrl(DownloadParams settings, java.lang.String url, ProgressMonitor progressMonitor)
Description copied from interface:DownloadTaskAsynchronously launches the download task for a given bounding URL.Set progressMonitor to null, if the task should create, open, and close a progress monitor. Set progressMonitor to
NullProgressMonitor.INSTANCEif progress information is to be discarded.- Specified by:
loadUrlin interfaceDownloadTask- Overrides:
loadUrlin classDownloadNotesTask- Parameters:
settings- download settingsurl- the url to download fromprogressMonitor- the progressMonitor- Returns:
- the future representing the asynchronous task
- See Also:
DownloadTask.download(DownloadParams, Bounds, ProgressMonitor)
-
getPatterns
public java.lang.String[] getPatterns()
Description copied from interface:DownloadTaskReturns regular expressions that match the URLs- Specified by:
getPatternsin interfaceDownloadTask- Overrides:
getPatternsin classDownloadNotesTask- Returns:
- The array of accepted URL patterns
-
getTitle
public java.lang.String getTitle()
Description copied from interface:DownloadTaskReturns human-readable description of the task- Specified by:
getTitlein interfaceDownloadTask- Overrides:
getTitlein classDownloadNotesTask- Returns:
- The task description
-
-