Interface FileDownloader

All Known Implementing Classes:
DefaultFileDownloader

public interface FileDownloader
Handle file download from given url to target destination.

Derived from eirslett/frontend-maven-plugin

For internal use only. May be renamed or removed in a future release.

Since:
  • Method Details

    • download

      void download(URI downloadTarget, File destination, String userName, String password, FileDownloader.ProgressListener progressListener) throws DownloadException
      Download to destination from url using username and password.
      Parameters:
      downloadTarget - uri string from where to download
      destination - file target directory
      userName - user name, null accepted
      password - password, null accepted
      progressListener - a progres listener or null if no progress listener is needed
      Throws:
      DownloadException - exception thrown when download fails