public class DownloadHandler extends Object
Modifier and Type | Field and Description |
---|---|
protected int |
fileDownloadRetryAttempts |
Constructor and Description |
---|
DownloadHandler(File rootStandaloneServerDirectory,
File downloadedZipFileDirectory,
int fileDownloadRetryAttempts,
int fileDownloadConnectTimeout,
int fileDownloadReadTimeout,
DriverMap filesToDownload,
boolean overwriteFilesThatExist,
boolean checkFileHash,
boolean useSystemProxy,
boolean onlyGetLatestVersions) |
Modifier and Type | Method and Description |
---|---|
protected File |
downloadFile(DriverDetails driverDetails,
boolean shouldWeCheckFileHash)
Perform the file download
|
DriverMap |
ensureStandaloneExecutableFilesExist() |
public DownloadHandler(File rootStandaloneServerDirectory, File downloadedZipFileDirectory, int fileDownloadRetryAttempts, int fileDownloadConnectTimeout, int fileDownloadReadTimeout, DriverMap filesToDownload, boolean overwriteFilesThatExist, boolean checkFileHash, boolean useSystemProxy, boolean onlyGetLatestVersions) throws org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoFailureException
protected File downloadFile(DriverDetails driverDetails, boolean shouldWeCheckFileHash) throws org.apache.maven.plugin.MojoExecutionException, IOException, URISyntaxException
driverDetails
- Driver details extracted from Repositorymap.xmlshouldWeCheckFileHash
- true if file hash should be checkedorg.apache.maven.plugin.MojoExecutionException
- Unable to download fileIOException
- Error writing to file systemURISyntaxException
- Invalid URIpublic DriverMap ensureStandaloneExecutableFilesExist() throws org.apache.maven.plugin.MojoFailureException, org.apache.maven.plugin.MojoExecutionException, IOException, URISyntaxException
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
IOException
URISyntaxException
Copyright © 2017. All rights reserved.