public class DownloaderManagerImpl extends SEDownloader implements DownloaderManager
METHOD_DELETE, METHOD_GET, METHOD_POST, METHOD_PUT| Constructor and Description |
|---|
DownloaderManagerImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addOrReplaceCredentials(DownloaderCredentials credentials) |
protected java.lang.Runnable |
createDownloaderTask(SEDownloader downloader,
java.util.concurrent.Executor executor,
java.net.URL url,
java.lang.String method,
ContentType contenttype,
java.lang.String data,
java.io.File target,
java.lang.Object groupID,
int maxbytes) |
protected java.lang.Runnable |
createDownloaderTask(SEDownloader downloader,
java.util.concurrent.Executor executor,
java.net.URL url,
java.lang.String data,
java.io.File target,
java.lang.Object groupID,
int maxbytes) |
java.io.File |
downloadFile(java.net.URL url,
java.lang.String method,
ContentType contenttype,
java.lang.String data,
java.lang.String name,
ICancellable cancel,
int maxbytes) |
java.io.File |
downloadFile(java.net.URL url,
java.lang.String method,
ContentType contenttype,
java.lang.String data,
java.lang.String name,
ICancellable cancel,
int maxbytes,
boolean useCache) |
DownloaderAuthenticationConfig |
getAuthenticationConfigurationService(java.lang.String baseUrl) |
java.lang.String |
getAuthenticationConfigurationServiceAsString(java.lang.String baseUrl) |
java.util.Collection<DownloaderAuthenticationConfig> |
getAuthenticationConfigurationServices() |
java.util.Collection<DownloaderAuthenticationFactory> |
getAuthenticationTypes() |
java.util.Collection<DownloaderCredentials> |
getCredentials() |
DownloaderCredentials |
getCredentials(java.lang.String url) |
DownloaderCredentials |
getCredentials(java.net.URL url) |
DownloaderAuthenticationFactory |
getDownloaderAuthenticationFactory(java.lang.String providerName) |
void |
propagateCredentials(java.lang.String sourceServiceUrl,
java.util.Collection<java.lang.String> targetServicesUrls) |
void |
registerAuthenticationConfigurationService(DownloaderAuthenticationConfig config) |
void |
registerAuthenticationConfigurationService(java.lang.String config) |
void |
registerAuthenticationType(DownloaderAuthenticationFactory factory) |
void |
removeAuthenticationConfigurationService(DownloaderAuthenticationConfig config) |
void |
removeCredentials(DownloaderCredentials credentials) |
void |
removeCredentials(java.lang.String serviceUrl) |
DownloaderAuthenticationConfig |
requestAutenticationConfig(java.net.URL url) |
addDownloadedURL, cleanUpTempFiles, downloadFile, downloadFile, downloadFile, downloadFile, getCanceled, getExecutorUI, getLatency, getPreviousDownloadedURL, getUniqueTemporaryFile, removeURL, removeURL, setCanceled, setDownloadExceptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitareSameURLs, urlStartsWithcleanUpTempFiles, downloadFile, downloadFile, downloadFile, downloadFile, removeURL, removeURLprotected java.lang.Runnable createDownloaderTask(SEDownloader downloader, java.util.concurrent.Executor executor, java.net.URL url, java.lang.String data, java.io.File target, java.lang.Object groupID, int maxbytes)
createDownloaderTask in class SEDownloaderprotected java.lang.Runnable createDownloaderTask(SEDownloader downloader, java.util.concurrent.Executor executor, java.net.URL url, java.lang.String method, ContentType contenttype, java.lang.String data, java.io.File target, java.lang.Object groupID, int maxbytes)
createDownloaderTask in class SEDownloaderpublic void addOrReplaceCredentials(DownloaderCredentials credentials)
addOrReplaceCredentials in interface DownloaderManagerpublic void removeCredentials(DownloaderCredentials credentials)
removeCredentials in interface DownloaderManagerpublic void removeCredentials(java.lang.String serviceUrl)
removeCredentials in interface DownloaderManagerpublic DownloaderCredentials getCredentials(java.net.URL url)
getCredentials in interface DownloaderManagerpublic DownloaderCredentials getCredentials(java.lang.String url)
getCredentials in interface DownloaderManagerpublic void registerAuthenticationConfigurationService(DownloaderAuthenticationConfig config)
registerAuthenticationConfigurationService in interface DownloaderManagerpublic void removeAuthenticationConfigurationService(DownloaderAuthenticationConfig config)
removeAuthenticationConfigurationService in interface DownloaderManagerpublic void registerAuthenticationType(DownloaderAuthenticationFactory factory)
registerAuthenticationType in interface DownloaderManagerpublic DownloaderAuthenticationConfig getAuthenticationConfigurationService(java.lang.String baseUrl)
getAuthenticationConfigurationService in interface DownloaderManagerpublic java.util.Collection<DownloaderAuthenticationFactory> getAuthenticationTypes()
getAuthenticationTypes in interface DownloaderManagerpublic java.util.Collection<DownloaderAuthenticationConfig> getAuthenticationConfigurationServices()
getAuthenticationConfigurationServices in interface DownloaderManagerpublic java.util.Collection<DownloaderCredentials> getCredentials()
getCredentials in interface DownloaderManagerpublic DownloaderAuthenticationConfig requestAutenticationConfig(java.net.URL url)
public DownloaderAuthenticationFactory getDownloaderAuthenticationFactory(java.lang.String providerName)
getDownloaderAuthenticationFactory in interface DownloaderManagerpublic void registerAuthenticationConfigurationService(java.lang.String config)
registerAuthenticationConfigurationService in interface DownloaderManagerpublic java.lang.String getAuthenticationConfigurationServiceAsString(java.lang.String baseUrl)
getAuthenticationConfigurationServiceAsString in interface DownloaderManagerpublic java.io.File downloadFile(java.net.URL url,
java.lang.String method,
ContentType contenttype,
java.lang.String data,
java.lang.String name,
ICancellable cancel,
int maxbytes)
throws java.io.IOException,
java.net.ConnectException,
java.net.UnknownHostException
downloadFile in interface DownloaderdownloadFile in class SEDownloaderjava.io.IOExceptionjava.net.ConnectExceptionjava.net.UnknownHostExceptionpublic java.io.File downloadFile(java.net.URL url,
java.lang.String method,
ContentType contenttype,
java.lang.String data,
java.lang.String name,
ICancellable cancel,
int maxbytes,
boolean useCache)
throws java.io.IOException,
java.net.ConnectException,
java.net.UnknownHostException
downloadFile in interface DownloaderdownloadFile in class SEDownloaderjava.io.IOExceptionjava.net.ConnectExceptionjava.net.UnknownHostExceptionpublic void propagateCredentials(java.lang.String sourceServiceUrl,
java.util.Collection<java.lang.String> targetServicesUrls)
propagateCredentials in interface DownloaderManager