Package org.gvsig.downloader.lib.impl
Class DownloaderManagerImpl
java.lang.Object
org.gvsig.compat.se.net.downloader.se.SEDownloader
org.gvsig.downloader.lib.impl.DownloaderManagerImpl
- All Implemented Interfaces:
org.gvsig.compat.net.Downloader,org.gvsig.compat.se.net.downloader.Downloader,org.gvsig.downloader.DownloaderManager
public class DownloaderManagerImpl
extends org.gvsig.compat.se.net.downloader.se.SEDownloader
implements org.gvsig.downloader.DownloaderManager
-
Field Summary
Fields inherited from interface org.gvsig.downloader.DownloaderManager
METHOD_DELETE, METHOD_GET, METHOD_POST, METHOD_PUT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddOrReplaceCredentials(org.gvsig.downloader.DownloaderCredentials credentials) protected RunnablecreateDownloaderTask(org.gvsig.compat.se.net.downloader.se.SEDownloader downloader, Executor executor, URL url, String data, File target, Object groupID, int maxbytes) protected RunnablecreateDownloaderTask(org.gvsig.compat.se.net.downloader.se.SEDownloader downloader, Executor executor, URL url, String method, org.apache.http.entity.ContentType contenttype, String data, File target, Object groupID, int maxbytes) downloadFile(URL url, String method, org.apache.http.entity.ContentType contenttype, String data, String name, org.gvsig.compat.net.ICancellable cancel, int maxbytes) downloadFile(URL url, String method, org.apache.http.entity.ContentType contenttype, String data, String name, org.gvsig.compat.net.ICancellable cancel, int maxbytes, boolean useCache) org.gvsig.downloader.DownloaderAuthenticationConfigCollection<org.gvsig.downloader.DownloaderAuthenticationConfig> Collection<org.gvsig.downloader.DownloaderAuthenticationFactory> getAuthorizationToken(URL url) Collection<org.gvsig.downloader.DownloaderCredentials> org.gvsig.downloader.DownloaderCredentialsgetCredentials(String url) org.gvsig.downloader.DownloaderCredentialsgetCredentials(URL url) org.gvsig.downloader.DownloaderAuthenticationFactorygetDownloaderAuthenticationFactory(String providerName) voidpropagateCredentials(String sourceServiceUrl, Collection<String> targetServicesUrls) voidvoidregisterAuthenticationConfigurationService(org.gvsig.downloader.DownloaderAuthenticationConfig config) voidregisterAuthenticationType(org.gvsig.downloader.DownloaderAuthenticationFactory factory) voidremoveAuthenticationConfigurationService(org.gvsig.downloader.DownloaderAuthenticationConfig config) voidremoveCredentials(String serviceUrl) voidremoveCredentials(org.gvsig.downloader.DownloaderCredentials credentials) org.gvsig.downloader.DownloaderAuthenticationConfigMethods inherited from class org.gvsig.compat.se.net.downloader.se.SEDownloader
addDownloadedURL, cleanUpTempFiles, downloadFile, downloadFile, downloadFile, downloadFile, getCanceled, getExecutorUI, getLatency, getPreviousDownloadedURL, getUniqueTemporaryFile, removeURL, removeURL, setCanceled, setDownloadExceptionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gvsig.compat.net.Downloader
cleanUpTempFiles, downloadFile, downloadFile, downloadFile, downloadFile, removeURL, removeURL
-
Constructor Details
-
DownloaderManagerImpl
public DownloaderManagerImpl()
-
-
Method Details
-
createDownloaderTask
protected Runnable createDownloaderTask(org.gvsig.compat.se.net.downloader.se.SEDownloader downloader, Executor executor, URL url, String data, File target, Object groupID, int maxbytes) - Overrides:
createDownloaderTaskin classorg.gvsig.compat.se.net.downloader.se.SEDownloader
-
createDownloaderTask
protected Runnable createDownloaderTask(org.gvsig.compat.se.net.downloader.se.SEDownloader downloader, Executor executor, URL url, String method, org.apache.http.entity.ContentType contenttype, String data, File target, Object groupID, int maxbytes) - Overrides:
createDownloaderTaskin classorg.gvsig.compat.se.net.downloader.se.SEDownloader
-
addOrReplaceCredentials
public void addOrReplaceCredentials(org.gvsig.downloader.DownloaderCredentials credentials) - Specified by:
addOrReplaceCredentialsin interfaceorg.gvsig.downloader.DownloaderManager
-
removeCredentials
public void removeCredentials(org.gvsig.downloader.DownloaderCredentials credentials) - Specified by:
removeCredentialsin interfaceorg.gvsig.downloader.DownloaderManager
-
removeCredentials
- Specified by:
removeCredentialsin interfaceorg.gvsig.downloader.DownloaderManager
-
getCredentials
- Specified by:
getCredentialsin interfaceorg.gvsig.downloader.DownloaderManager
-
getCredentials
- Specified by:
getCredentialsin interfaceorg.gvsig.downloader.DownloaderManager
-
registerAuthenticationConfigurationService
public void registerAuthenticationConfigurationService(org.gvsig.downloader.DownloaderAuthenticationConfig config) - Specified by:
registerAuthenticationConfigurationServicein interfaceorg.gvsig.downloader.DownloaderManager
-
removeAuthenticationConfigurationService
public void removeAuthenticationConfigurationService(org.gvsig.downloader.DownloaderAuthenticationConfig config) - Specified by:
removeAuthenticationConfigurationServicein interfaceorg.gvsig.downloader.DownloaderManager
-
registerAuthenticationType
public void registerAuthenticationType(org.gvsig.downloader.DownloaderAuthenticationFactory factory) - Specified by:
registerAuthenticationTypein interfaceorg.gvsig.downloader.DownloaderManager
-
getAuthenticationConfigurationService
public org.gvsig.downloader.DownloaderAuthenticationConfig getAuthenticationConfigurationService(String baseUrl) - Specified by:
getAuthenticationConfigurationServicein interfaceorg.gvsig.downloader.DownloaderManager
-
getAuthenticationTypes
- Specified by:
getAuthenticationTypesin interfaceorg.gvsig.downloader.DownloaderManager
-
getAuthenticationConfigurationServices
public Collection<org.gvsig.downloader.DownloaderAuthenticationConfig> getAuthenticationConfigurationServices()- Specified by:
getAuthenticationConfigurationServicesin interfaceorg.gvsig.downloader.DownloaderManager
-
getCredentials
- Specified by:
getCredentialsin interfaceorg.gvsig.downloader.DownloaderManager
-
requestAutenticationConfig
-
getDownloaderAuthenticationFactory
public org.gvsig.downloader.DownloaderAuthenticationFactory getDownloaderAuthenticationFactory(String providerName) - Specified by:
getDownloaderAuthenticationFactoryin interfaceorg.gvsig.downloader.DownloaderManager
-
registerAuthenticationConfigurationService
- Specified by:
registerAuthenticationConfigurationServicein interfaceorg.gvsig.downloader.DownloaderManager
-
getAuthenticationConfigurationServiceAsString
- Specified by:
getAuthenticationConfigurationServiceAsStringin interfaceorg.gvsig.downloader.DownloaderManager
-
downloadFile
public File downloadFile(URL url, String method, org.apache.http.entity.ContentType contenttype, String data, String name, org.gvsig.compat.net.ICancellable cancel, int maxbytes) throws IOException, ConnectException, UnknownHostException - Specified by:
downloadFilein interfaceorg.gvsig.compat.net.Downloader- Overrides:
downloadFilein classorg.gvsig.compat.se.net.downloader.se.SEDownloader- Throws:
IOExceptionConnectExceptionUnknownHostException
-
downloadFile
public File downloadFile(URL url, String method, org.apache.http.entity.ContentType contenttype, String data, String name, org.gvsig.compat.net.ICancellable cancel, int maxbytes, boolean useCache) throws IOException, ConnectException, UnknownHostException - Specified by:
downloadFilein interfaceorg.gvsig.compat.net.Downloader- Overrides:
downloadFilein classorg.gvsig.compat.se.net.downloader.se.SEDownloader- Throws:
IOExceptionConnectExceptionUnknownHostException
-
propagateCredentials
- Specified by:
propagateCredentialsin interfaceorg.gvsig.downloader.DownloaderManager
-
getAuthorizationToken
- Specified by:
getAuthorizationTokenin interfaceorg.gvsig.downloader.DownloaderManager
-