Class URLRetrieveTask

java.lang.Object
org.gvsig.remoteclient.taskplanning.retrieving.URLRetrieveTask
All Implemented Interfaces:
IRunnableTask

public class URLRetrieveTask extends Object implements IRunnableTask
Clase para bajar ficheros en un thread independiente.
  • Constructor Details

  • Method Details

    • execute

      public void execute()
      Description copied from interface: IRunnableTask
      Executes this task's operations.
      Specified by:
      execute in interface IRunnableTask
    • addRetrieveListener

      public void addRetrieveListener(RetrieveListener l)
    • cancel

      public void cancel()
      Description copied from interface: IRunnableTask
      Cancels the current execution, if any, of this task. Should have no effect if the task is not executing anything.
      Specified by:
      cancel in interface IRunnableTask
    • isRunning

      public boolean isRunning()
      Description copied from interface: IRunnableTask
      Tells if the task is on execution.
      Specified by:
      isRunning in interface IRunnableTask
      Returns:
      true if the task is busy, false otherwise.
    • getRequest

      public URLRequest getRequest()
    • getListeners

      public Vector getListeners()
    • getTaskTimeout

      public long getTaskTimeout()
      Description copied from interface: IRunnableTask
      Returns the timeout set to this task in milliseconds
      Specified by:
      getTaskTimeout in interface IRunnableTask
      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.