com.vaadin.flow.server.frontend.installer.

Class DefaultFileDownloader

  • java.lang.Object
    • com.vaadin.flow.server.frontend.installer.DefaultFileDownloader

  • public final class DefaultFileDownloader
    extends Object

    Default file downloader implementation.

    Derived from eirslett/frontend-maven-plugin

    Since:

    • Constructor Detail

      • DefaultFileDownloader

        public DefaultFileDownloader(ProxyConfig proxyConfig)

        Construct file downloader with given proxy configuration.

        Parameters:

        proxyConfig - proxy configuration to use for file download

    • Method Detail

      • download

        public void download(URI downloadURI,
                             File destination,
                             String userName,
                             String password)
                      throws com.vaadin.flow.server.frontend.installer.DownloadException

        Download to destination from url using username and password.

        Parameters:

        downloadURI - uri string from where to download

        destination - file target directory

        userName - user name, null accepted

        password - password, null accepted

        Throws:

        DownloadException - exception thrown when download fails