public interface DownloadSpec
| Modifier and Type | Method and Description |
|---|---|
void |
dest(java.lang.Object dest)
Sets the download destination
|
java.io.File |
getDest() |
java.lang.String |
getPassword() |
java.net.URL |
getSrc() |
java.lang.String |
getUsername() |
boolean |
isOnlyIfNewer() |
boolean |
isOverwrite() |
boolean |
isQuiet() |
void |
onlyIfNewer(boolean onlyIfNewer)
Sets the onlyIfNewer flag
|
void |
overwrite(boolean overwrite)
Sets the overwrite flag
|
void |
password(java.lang.String password)
Sets the password for
Basic authentication |
void |
quiet(boolean quiet)
Sets the quiet flag
|
void |
src(java.lang.Object src)
Sets the download source URL
|
void |
username(java.lang.String username)
Sets the username for
Basic authentication |
void src(java.lang.Object src)
throws java.net.MalformedURLException
src - the URLjava.net.MalformedURLException - if the download source is not a URLvoid dest(java.lang.Object dest)
dest - a file or directory where to store the retrieved filevoid quiet(boolean quiet)
quiet - true if download progress should not be loggedvoid overwrite(boolean overwrite)
overwrite - true if existing files should be overwritten, false otherwisevoid onlyIfNewer(boolean onlyIfNewer)
onlyIfNewer - true if the file should only be downloaded if it
has been modified on the server since the last downloadvoid username(java.lang.String username)
Basic authenticationusername - the usernamevoid password(java.lang.String password)
Basic authenticationpassword - the passwordjava.net.URL getSrc()
java.io.File getDest()
boolean isQuiet()
boolean isOverwrite()
boolean isOnlyIfNewer()
java.lang.String getUsername()
Basic authenticationjava.lang.String getPassword()
Basic authentication