Class HotswapAgentDownloader

java.lang.Object
com.vaadin.copilot.HotswapAgentDownloader

public final class HotswapAgentDownloader extends Object
A class for downloading the Hotswap Agent JAR file.
  • Constructor Details

    • HotswapAgentDownloader

      public HotswapAgentDownloader()
  • Method Details

    • downloadHotswapAgent

      public void downloadHotswapAgent(File target, Consumer<String> statusUpdater) throws MalformedURLException, com.vaadin.flow.server.frontend.installer.DownloadException, URISyntaxException
      Downloads the Hotswap Agent JAR file into the given target file.
      Parameters:
      target - the target file
      statusUpdater - a consumer that will be called with status updates
      Throws:
      MalformedURLException
      com.vaadin.flow.server.frontend.installer.DownloadException
      URISyntaxException