Package com.vaadin.copilot
Class HotswapAgentDownloader
java.lang.Object
com.vaadin.copilot.HotswapAgentDownloader
A class for downloading the Hotswap Agent JAR file.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddownloadHotswapAgent(File target, Consumer<String> statusUpdater) Downloads the Hotswap Agent JAR file into the given target 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 filestatusUpdater- a consumer that will be called with status updates- Throws:
MalformedURLExceptioncom.vaadin.flow.server.frontend.installer.DownloadExceptionURISyntaxException
-