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, setDownloadException
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
areSameURLs, urlStartsWith
cleanUpTempFiles, downloadFile, downloadFile, downloadFile, downloadFile, removeURL, removeURL
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)
createDownloaderTask
in class SEDownloader
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)
createDownloaderTask
in class SEDownloader
public void addOrReplaceCredentials(DownloaderCredentials credentials)
addOrReplaceCredentials
in interface DownloaderManager
public void removeCredentials(DownloaderCredentials credentials)
removeCredentials
in interface DownloaderManager
public void removeCredentials(java.lang.String serviceUrl)
removeCredentials
in interface DownloaderManager
public DownloaderCredentials getCredentials(java.net.URL url)
getCredentials
in interface DownloaderManager
public DownloaderCredentials getCredentials(java.lang.String url)
getCredentials
in interface DownloaderManager
public void registerAuthenticationConfigurationService(DownloaderAuthenticationConfig config)
registerAuthenticationConfigurationService
in interface DownloaderManager
public void removeAuthenticationConfigurationService(DownloaderAuthenticationConfig config)
removeAuthenticationConfigurationService
in interface DownloaderManager
public void registerAuthenticationType(DownloaderAuthenticationFactory factory)
registerAuthenticationType
in interface DownloaderManager
public DownloaderAuthenticationConfig getAuthenticationConfigurationService(java.lang.String baseUrl)
getAuthenticationConfigurationService
in interface DownloaderManager
public java.util.Collection<DownloaderAuthenticationFactory> getAuthenticationTypes()
getAuthenticationTypes
in interface DownloaderManager
public java.util.Collection<DownloaderAuthenticationConfig> getAuthenticationConfigurationServices()
getAuthenticationConfigurationServices
in interface DownloaderManager
public java.util.Collection<DownloaderCredentials> getCredentials()
getCredentials
in interface DownloaderManager
public DownloaderAuthenticationConfig requestAutenticationConfig(java.net.URL url)
public DownloaderAuthenticationFactory getDownloaderAuthenticationFactory(java.lang.String providerName)
getDownloaderAuthenticationFactory
in interface DownloaderManager
public void registerAuthenticationConfigurationService(java.lang.String config)
registerAuthenticationConfigurationService
in interface DownloaderManager
public java.lang.String getAuthenticationConfigurationServiceAsString(java.lang.String baseUrl)
getAuthenticationConfigurationServiceAsString
in interface DownloaderManager
public 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 Downloader
downloadFile
in class SEDownloader
java.io.IOException
java.net.ConnectException
java.net.UnknownHostException
public 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 Downloader
downloadFile
in class SEDownloader
java.io.IOException
java.net.ConnectException
java.net.UnknownHostException
public void propagateCredentials(java.lang.String sourceServiceUrl, java.util.Collection<java.lang.String> targetServicesUrls)
propagateCredentials
in interface DownloaderManager