|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.lazerycode.selenium.download.FileDownloader
public class FileDownloader
| Constructor Summary | |
|---|---|
FileDownloader(File downloadDirectory,
int retries,
int connectTimeout,
int readTimeout)
|
|
| Method Summary | |
|---|---|
File |
downloadFile()
Perform the file download |
boolean |
fileExistsAndIsValid(File fileToCheck)
Check if the file exists and perform a getHash check on it to see if it is valid |
void |
remoteURL(URL value)
Set the URL that will be used to download the remote file. |
void |
setHash(String hashValue,
HashType hashType)
Set the getHash and getHash type that will be used to check that the file is valid |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileDownloader(File downloadDirectory,
int retries,
int connectTimeout,
int readTimeout)
throws org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoFailureException| Method Detail |
|---|
public boolean fileExistsAndIsValid(File fileToCheck)
throws IOException,
org.apache.maven.plugin.MojoExecutionException
fileToCheck -
IOException
org.apache.maven.plugin.MojoExecutionException
public void remoteURL(URL value)
throws org.apache.maven.plugin.MojoExecutionException
value -
org.apache.maven.plugin.MojoExecutionException
public void setHash(String hashValue,
HashType hashType)
hashValue - hashType -
public File downloadFile()
throws IOException,
org.apache.maven.plugin.MojoExecutionException
IOException
org.apache.maven.plugin.MojoExecutionException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||