org.gvsig.remoteclient.taskplanning.retrieving
Class RequestManager

java.lang.Object
  extended by org.gvsig.remoteclient.taskplanning.retrieving.RequestManager

public class RequestManager
extends java.lang.Object

pa administrar les tasques (la història aquella de que hi haja una cola per a cada servidor)

Author:
Luis W. Sevilla (sevilla_lui@gva.es)

Method Summary
protected  void addDownloadedURLRequest(URLRequest request, java.lang.String filePath)
          Adds an URL to the table of downloaded files for further uses.
 URLRetrieveTask addURLRequest(URLRequest request, RetrieveListener listener)
           
static RequestManager getInstance()
           
 void removeURLRequest(URLRequest request)
          Remove an URL from the system cache.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addDownloadedURLRequest

protected void addDownloadedURLRequest(URLRequest request,
                                       java.lang.String filePath)
Adds an URL to the table of downloaded files for further uses. If the URL already exists in the table its filePath value is updated to the new one and the old file itself is removed from the file system.

Parameters:
url -
filePath -

addURLRequest

public URLRetrieveTask addURLRequest(URLRequest request,
                                     RetrieveListener listener)

getInstance

public static RequestManager getInstance()

removeURLRequest

public void removeURLRequest(URLRequest request)
Remove an URL from the system cache. The file will remain in the file system for further eventual uses.

Parameters:
request -


Copyright © 2014 gvSIG Association. All Rights Reserved.