Class URLRetrieveTask
java.lang.Object
org.gvsig.remoteclient.taskplanning.retrieving.URLRetrieveTask
- All Implemented Interfaces:
IRunnableTask
Clase para bajar ficheros en un thread independiente.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
URLRetrieveTask
-
-
Method Details
-
execute
public void execute()Description copied from interface:IRunnableTaskExecutes this task's operations.- Specified by:
executein interfaceIRunnableTask
-
addRetrieveListener
-
cancel
public void cancel()Description copied from interface:IRunnableTaskCancels the current execution, if any, of this task. Should have no effect if the task is not executing anything.- Specified by:
cancelin interfaceIRunnableTask
-
isRunning
public boolean isRunning()Description copied from interface:IRunnableTaskTells if the task is on execution.- Specified by:
isRunningin interfaceIRunnableTask- Returns:
- true if the task is busy, false otherwise.
-
getRequest
-
getListeners
-
getTaskTimeout
public long getTaskTimeout()Description copied from interface:IRunnableTaskReturns the timeout set to this task in milliseconds- Specified by:
getTaskTimeoutin interfaceIRunnableTask- Returns:
- the amount of milliseconds to wait until the task will be considered as unsuccessful, or 0 or less to say that task can wait forever.
-