org.openstreetmap.josm.actions.downloadtasks
Class DownloadOsmUrlTask

java.lang.Object
  extended by org.openstreetmap.josm.actions.downloadtasks.AbstractDownloadTask
      extended by org.openstreetmap.josm.actions.downloadtasks.DownloadOsmTask
          extended by org.openstreetmap.josm.actions.downloadtasks.DownloadOsmUrlTask
All Implemented Interfaces:
DownloadTask

public class DownloadOsmUrlTask
extends DownloadOsmTask


Nested Class Summary
 
Nested classes/interfaces inherited from class org.openstreetmap.josm.actions.downloadtasks.DownloadOsmTask
DownloadOsmTask.DownloadTask
 
Field Summary
 
Fields inherited from class org.openstreetmap.josm.actions.downloadtasks.DownloadOsmTask
currentBounds, downloadedData, downloadTask, newLayerName, targetLayer
 
Constructor Summary
DownloadOsmUrlTask()
           
 
Method Summary
 boolean acceptsUrl(java.lang.String url)
          Returns true if the task is able to open the given URL, false otherwise.
 java.util.concurrent.Future<?> loadUrl(boolean newLayer, java.lang.String url, ProgressMonitor progressMonitor)
          Loads a given URL from the OSM Server
 
Methods inherited from class org.openstreetmap.josm.actions.downloadtasks.DownloadOsmTask
cancel, download, download, download, extractOsmFilename, getDownloadedData, rememberDownloadedData
 
Methods inherited from class org.openstreetmap.josm.actions.downloadtasks.AbstractDownloadTask
getErrorObjects, isCanceled, isFailed, rememberErrorMessage, rememberException, setCanceled, setFailed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DownloadOsmUrlTask

public DownloadOsmUrlTask()
Method Detail

loadUrl

public java.util.concurrent.Future<?> loadUrl(boolean newLayer,
                                              java.lang.String url,
                                              ProgressMonitor progressMonitor)
Description copied from class: DownloadOsmTask
Loads a given URL from the OSM Server

Specified by:
loadUrl in interface DownloadTask
Overrides:
loadUrl in class DownloadOsmTask
Parameters:
newLayer - True if the data should be saved to a new layer
url - The URL as String
progressMonitor - the progressMonitor
Returns:
the future representing the asynchronous task
See Also:
DownloadTask.download(boolean, Bounds, ProgressMonitor)

acceptsUrl

public boolean acceptsUrl(java.lang.String url)
Description copied from interface: DownloadTask
Returns true if the task is able to open the given URL, false otherwise.

Specified by:
acceptsUrl in interface DownloadTask
Overrides:
acceptsUrl in class DownloadOsmTask
Parameters:
url - the url to download from
Returns:
True if the task is able to open the given URL, false otherwise.


JOSM