Revision 47840 trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.downloader/org.gvsig.downloader.lib/org.gvsig.downloader.lib.impl/src/main/java/org/gvsig/downloader/lib/impl/DownloaderManagerImpl.java
DownloaderManagerImpl.java | ||
---|---|---|
32 | 32 |
import java.util.List; |
33 | 33 |
import java.util.Map; |
34 | 34 |
import org.apache.commons.lang3.StringUtils; |
35 |
import org.apache.http.entity.ContentType; |
|
35 | 36 |
import org.gvsig.compat.se.net.downloader.se.SEDownloader; |
36 | 37 |
import org.gvsig.downloader.DownloaderAuthenticationConfig; |
37 | 38 |
import org.gvsig.downloader.DownloaderAuthenticationFactory; |
... | ... | |
74 | 75 |
} |
75 | 76 |
|
76 | 77 |
@Override |
78 |
protected Runnable createDownloaderTask(SEDownloader downloader, URL url, String method, ContentType contenttype, String data, File target, Object groupID, int maxbytes) { |
|
79 |
SEAuthDownloaderTask t = new SEAuthDownloaderTask( |
|
80 |
downloader, |
|
81 |
url, |
|
82 |
method, |
|
83 |
contenttype, |
|
84 |
data, |
|
85 |
target, |
|
86 |
groupID); |
|
87 |
t.setMaxbytes(maxbytes); |
|
88 |
return t; |
|
89 |
} |
|
90 |
|
|
91 |
@Override |
|
77 | 92 |
public void addOrReplaceCredentials(DownloaderCredentials credentials) { |
78 | 93 |
if( credentials == null ) { |
79 | 94 |
LOG.warn("Invalid credentials (null)."); |
Also available in: Unified diff