Class DownloadNotesUrlBoundsTask
- java.lang.Object
-
- org.openstreetmap.josm.actions.downloadtasks.AbstractDownloadTask<NoteData>
-
- org.openstreetmap.josm.actions.downloadtasks.DownloadNotesTask
-
- org.openstreetmap.josm.actions.downloadtasks.DownloadNotesUrlBoundsTask
-
- All Implemented Interfaces:
DownloadTask
public class DownloadNotesUrlBoundsTask extends DownloadNotesTask
Specialized task for downloading OSM notes within bounds.It handles one URL pattern: openstreetmap website URL with
#map?
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 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 DownloadNotesUrlBoundsTask()
-
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.String
getTitle()
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
-
-
-
-
Constructor Detail
-
DownloadNotesUrlBoundsTask
public DownloadNotesUrlBoundsTask()
-
-
Method Detail
-
loadUrl
public java.util.concurrent.Future<?> loadUrl(DownloadParams settings, java.lang.String url, ProgressMonitor progressMonitor)
Description copied from interface:DownloadTask
Asynchronously 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.INSTANCE
if progress information is to be discarded.- Specified by:
loadUrl
in interfaceDownloadTask
- Overrides:
loadUrl
in 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:DownloadTask
Returns regular expressions that match the URLs- Specified by:
getPatterns
in interfaceDownloadTask
- Overrides:
getPatterns
in classDownloadNotesTask
- Returns:
- The array of accepted URL patterns
-
getTitle
public java.lang.String getTitle()
Description copied from interface:DownloadTask
Returns human-readable description of the task- Specified by:
getTitle
in interfaceDownloadTask
- Overrides:
getTitle
in classDownloadNotesTask
- Returns:
- The task description
-
-