Package org.gvsig.compat.net
Interface Downloader
public interface Downloader
- Version:
- $Id$
- Author:
- gvSIG Team
-
Method Summary
Modifier and TypeMethodDescriptionvoidCleans every temporal file previously downloaded.downloadFile(URL url, String data, String name, ICancellable cancel) Downloads a URL using the HTTP Post protocoldownloadFile(URL url, String data, String name, ICancellable cancel, int maxbytes) downloadFile(URL url, String method, org.apache.http.entity.ContentType contentType, String data, String name, ICancellable cancel) downloadFile(URL url, String method, org.apache.http.entity.ContentType contentType, String data, String name, ICancellable cancel, int maxbytes) downloadFile(URL url, String method, org.apache.http.entity.ContentType contentType, String data, String name, ICancellable cancel, int maxbytes, boolean useCache) downloadFile(URL url, String name, ICancellable cancel) Downloads an URL into a temporary file that is removed the next time the tempFileManager class is called, which means the next time gvSIG is launched.voidvoid
-
Method Details
-
downloadFile
File downloadFile(URL url, String name, ICancellable cancel) throws IOException, ConnectException, UnknownHostException Downloads an URL into a temporary file that is removed the next time the tempFileManager class is called, which means the next time gvSIG is launched.- Parameters:
url-name-cancel-- Returns:
- Throws:
IOExceptionConnectExceptionUnknownHostException
-
downloadFile
File downloadFile(URL url, String data, String name, ICancellable cancel) throws IOException, ConnectException, UnknownHostException Downloads a URL using the HTTP Post protocol- Parameters:
url- The server URLdata- The data to send in the requestname- A common name for all the retrieved filescancel- Used to cancel the downloads- Returns:
- The retrieved file
- Throws:
IOExceptionConnectExceptionUnknownHostException
-
downloadFile
File downloadFile(URL url, String data, String name, ICancellable cancel, int maxbytes) throws IOException, ConnectException, UnknownHostException -
downloadFile
File downloadFile(URL url, String method, org.apache.http.entity.ContentType contentType, String data, String name, ICancellable cancel) throws IOException, ConnectException, UnknownHostException -
downloadFile
File downloadFile(URL url, String method, org.apache.http.entity.ContentType contentType, String data, String name, ICancellable cancel, int maxbytes) throws IOException, ConnectException, UnknownHostException -
downloadFile
File downloadFile(URL url, String method, org.apache.http.entity.ContentType contentType, String data, String name, ICancellable cancel, int maxbytes, boolean useCache) throws IOException, ConnectException, UnknownHostException -
removeURL
-
removeURL
-
cleanUpTempFiles
void cleanUpTempFiles()Cleans every temporal file previously downloaded.
-