public class HttpClientDownloaderProcess extends Object implements DownloaderProcess
Constructor and Description |
---|
HttpClientDownloaderProcess() |
Modifier and Type | Method and Description |
---|---|
void |
addObserver(Observer o) |
void |
cancelRequest()
Request to the task that cancel.
|
void |
deleteObserver(Observer o) |
void |
deleteObservers() |
File |
getFile()
join() start() requestCancel() File getFile() URL getURL() String getID()
isTerminated isCanceled
|
String |
getID() |
TaskStatus |
getTaskStatus() |
URL |
getUrl() |
boolean |
isCancellationRequested()
Return true if has request to cancel to the task.
|
public TaskStatus getTaskStatus()
getTaskStatus
in interface MonitorableTask
public boolean isCancellationRequested()
CancellableTask
isCancellationRequested
in interface CancellableTask
public void cancelRequest()
CancellableTask
cancelRequest
in interface CancellableTask
public void addObserver(Observer o)
addObserver
in interface Observable
public void deleteObserver(Observer o)
deleteObserver
in interface Observable
public void deleteObservers()
deleteObservers
in interface Observable
public File getFile()
DownloaderProcess
getFile
in interface DownloaderProcess
public URL getUrl()
getUrl
in interface DownloaderProcess
public String getID()
getID
in interface DownloaderProcess