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
  • 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:
      createDownloaderTask in class org.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:
      createDownloaderTask in class org.gvsig.compat.se.net.downloader.se.SEDownloader
    • addOrReplaceCredentials

      public void addOrReplaceCredentials(org.gvsig.downloader.DownloaderCredentials credentials)
      Specified by:
      addOrReplaceCredentials in interface org.gvsig.downloader.DownloaderManager
    • removeCredentials

      public void removeCredentials(org.gvsig.downloader.DownloaderCredentials credentials)
      Specified by:
      removeCredentials in interface org.gvsig.downloader.DownloaderManager
    • removeCredentials

      public void removeCredentials(String serviceUrl)
      Specified by:
      removeCredentials in interface org.gvsig.downloader.DownloaderManager
    • getCredentials

      public org.gvsig.downloader.DownloaderCredentials getCredentials(URL url)
      Specified by:
      getCredentials in interface org.gvsig.downloader.DownloaderManager
    • getCredentials

      public org.gvsig.downloader.DownloaderCredentials getCredentials(String url)
      Specified by:
      getCredentials in interface org.gvsig.downloader.DownloaderManager
    • registerAuthenticationConfigurationService

      public void registerAuthenticationConfigurationService(org.gvsig.downloader.DownloaderAuthenticationConfig config)
      Specified by:
      registerAuthenticationConfigurationService in interface org.gvsig.downloader.DownloaderManager
    • removeAuthenticationConfigurationService

      public void removeAuthenticationConfigurationService(org.gvsig.downloader.DownloaderAuthenticationConfig config)
      Specified by:
      removeAuthenticationConfigurationService in interface org.gvsig.downloader.DownloaderManager
    • registerAuthenticationType

      public void registerAuthenticationType(org.gvsig.downloader.DownloaderAuthenticationFactory factory)
      Specified by:
      registerAuthenticationType in interface org.gvsig.downloader.DownloaderManager
    • getAuthenticationConfigurationService

      public org.gvsig.downloader.DownloaderAuthenticationConfig getAuthenticationConfigurationService(String baseUrl)
      Specified by:
      getAuthenticationConfigurationService in interface org.gvsig.downloader.DownloaderManager
    • getAuthenticationTypes

      public Collection<org.gvsig.downloader.DownloaderAuthenticationFactory> getAuthenticationTypes()
      Specified by:
      getAuthenticationTypes in interface org.gvsig.downloader.DownloaderManager
    • getAuthenticationConfigurationServices

      public Collection<org.gvsig.downloader.DownloaderAuthenticationConfig> getAuthenticationConfigurationServices()
      Specified by:
      getAuthenticationConfigurationServices in interface org.gvsig.downloader.DownloaderManager
    • getCredentials

      public Collection<org.gvsig.downloader.DownloaderCredentials> getCredentials()
      Specified by:
      getCredentials in interface org.gvsig.downloader.DownloaderManager
    • requestAutenticationConfig

      public org.gvsig.downloader.DownloaderAuthenticationConfig requestAutenticationConfig(URL url)
    • getDownloaderAuthenticationFactory

      public org.gvsig.downloader.DownloaderAuthenticationFactory getDownloaderAuthenticationFactory(String providerName)
      Specified by:
      getDownloaderAuthenticationFactory in interface org.gvsig.downloader.DownloaderManager
    • registerAuthenticationConfigurationService

      public void registerAuthenticationConfigurationService(String config)
      Specified by:
      registerAuthenticationConfigurationService in interface org.gvsig.downloader.DownloaderManager
    • getAuthenticationConfigurationServiceAsString

      public String getAuthenticationConfigurationServiceAsString(String baseUrl)
      Specified by:
      getAuthenticationConfigurationServiceAsString in interface org.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:
      downloadFile in interface org.gvsig.compat.net.Downloader
      Overrides:
      downloadFile in class org.gvsig.compat.se.net.downloader.se.SEDownloader
      Throws:
      IOException
      ConnectException
      UnknownHostException
    • 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:
      downloadFile in interface org.gvsig.compat.net.Downloader
      Overrides:
      downloadFile in class org.gvsig.compat.se.net.downloader.se.SEDownloader
      Throws:
      IOException
      ConnectException
      UnknownHostException
    • propagateCredentials

      public void propagateCredentials(String sourceServiceUrl, Collection<String> targetServicesUrls)
      Specified by:
      propagateCredentials in interface org.gvsig.downloader.DownloaderManager
    • getAuthorizationToken

      public String getAuthorizationToken(URL url)
      Specified by:
      getAuthorizationToken in interface org.gvsig.downloader.DownloaderManager