public abstract class AbstractDownloadTask extends Object implements DownloadTask
| Modifier and Type | Field and Description |
|---|---|
private boolean |
canceled |
private List<Object> |
errorMessages |
private boolean |
failed |
| Constructor and Description |
|---|
AbstractDownloadTask() |
| Modifier and Type | Method and Description |
|---|---|
String |
acceptsDocumentationSummary()
Returns a short HTML documentation string, describing acceptable URLs.
|
boolean |
acceptsUrl(String url)
Returns true if the task is able to open the given URL, false otherwise.
|
List<Object> |
getErrorObjects()
Replies the error objects of the task.
|
String[] |
getPatterns()
Returns regular expressions that match the URLs
|
String |
getTitle()
Returns human-readable description of the task
|
boolean |
isCanceled() |
boolean |
isFailed() |
protected void |
rememberErrorMessage(String message) |
protected void |
rememberException(Exception exception) |
void |
setCanceled(boolean canceled) |
void |
setFailed(boolean failed) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcancel, download, getConfirmationMessage, loadUrlprivate List<Object> errorMessages
private boolean canceled
private boolean failed
public AbstractDownloadTask()
public boolean isCanceled()
public void setCanceled(boolean canceled)
public boolean isFailed()
public void setFailed(boolean failed)
protected void rememberErrorMessage(String message)
protected void rememberException(Exception exception)
public List<Object> getErrorObjects()
DownloadTaskStrings with error messages or Exceptions.getErrorObjects in interface DownloadTaskpublic String acceptsDocumentationSummary()
DownloadTaskacceptsDocumentationSummary in interface DownloadTaskpublic boolean acceptsUrl(String url)
DownloadTaskacceptsUrl in interface DownloadTaskurl - the url to download frompublic String getTitle()
DownloadTaskgetTitle in interface DownloadTaskpublic String[] getPatterns()
DownloadTaskgetPatterns in interface DownloadTask