public class URLRetrieveTask extends Object implements IRunnableTask
| Constructor and Description |
|---|
URLRetrieveTask(URLRequest request,
RetrieveListener listener) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRetrieveListener(RetrieveListener l) |
void |
cancel()
Cancels the current execution, if any, of this task.
|
void |
execute()
Executes this task's operations.
|
Vector |
getListeners() |
URLRequest |
getRequest() |
long |
getTaskTimeout()
Returns the timeout set to this task in milliseconds
|
boolean |
isRunning()
Tells if the task is on execution.
|
public URLRetrieveTask(URLRequest request, RetrieveListener listener)
public void execute()
IRunnableTaskexecute in interface IRunnableTaskpublic void addRetrieveListener(RetrieveListener l)
public void cancel()
IRunnableTaskcancel in interface IRunnableTaskpublic boolean isRunning()
IRunnableTaskisRunning in interface IRunnableTaskpublic URLRequest getRequest()
public Vector getListeners()
public long getTaskTimeout()
IRunnableTaskgetTaskTimeout in interface IRunnableTask