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()
IRunnableTask
execute
in interface IRunnableTask
public void addRetrieveListener(RetrieveListener l)
public void cancel()
IRunnableTask
cancel
in interface IRunnableTask
public boolean isRunning()
IRunnableTask
isRunning
in interface IRunnableTask
public URLRequest getRequest()
public Vector getListeners()
public long getTaskTimeout()
IRunnableTask
getTaskTimeout
in interface IRunnableTask