public class BasicDownloadResolver extends java.lang.Object implements DownloadResolver
Constructor and Description |
---|
BasicDownloadResolver(java.lang.Iterable<java.lang.String> targets,
java.lang.String filename) |
BasicDownloadResolver(java.lang.Iterable<java.lang.String> targets,
java.lang.String filename,
java.lang.String unpackDirectoryName) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFilename()
The name of the artifact.
|
java.util.List<java.lang.String> |
getTargets()
The targets (normally URLs) for downloading the artifact.
|
java.lang.String |
getUnpackedDirectoryName(java.lang.String defaultVal)
The name of the directory in the expanded artifact (e.g.
|
java.lang.String |
toString() |
public BasicDownloadResolver(java.lang.Iterable<java.lang.String> targets, java.lang.String filename)
public BasicDownloadResolver(java.lang.Iterable<java.lang.String> targets, java.lang.String filename, java.lang.String unpackDirectoryName)
public java.util.List<java.lang.String> getTargets()
DownloadResolver
getTargets
in interface DownloadResolver
public java.lang.String getFilename()
DownloadResolver
getFilename
in interface DownloadResolver
public java.lang.String getUnpackedDirectoryName(java.lang.String defaultVal)
DownloadResolver
getUnpackedDirectoryName
in interface DownloadResolver
public java.lang.String toString()
toString
in class java.lang.Object