Class DefaultFileDownloader

java.lang.Object
com.vaadin.flow.server.frontend.installer.DefaultFileDownloader
All Implemented Interfaces:
FileDownloader

public final class DefaultFileDownloader extends Object implements FileDownloader
Default file downloader implementation.

Derived from eirslett/frontend-maven-plugin

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

Since:
  • Field Details

  • Constructor Details

    • DefaultFileDownloader

      public DefaultFileDownloader(ProxyConfig proxyConfig)
      Construct file downloader with given proxy configuration.
      Parameters:
      proxyConfig - proxy configuration to use for file download
  • Method Details

    • download

      public void download(URI downloadURI, File destination, String userName, String password, FileDownloader.ProgressListener progressListener) throws DownloadException
      Description copied from interface: FileDownloader
      Download to destination from url using username and password.
      Specified by:
      download in interface FileDownloader
      Parameters:
      downloadURI - 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