Class DownloadCache
- java.lang.Object
-
- com.googlecode.download.maven.plugin.internal.cache.DownloadCache
-
public final class DownloadCache extends Object
A class representing a download cache- Author:
- Mickael Istria (Red Hat Inc)
-
-
Constructor Summary
Constructors Constructor Description DownloadCache(File cacheDirectory, org.apache.maven.plugin.logging.Log log)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FilegetArtifact(URI uri, Checksums checksums)Get a File in the download cache.voidinstall(URI uri, File outputFile, Checksums checksums)
-
-
-
Constructor Detail
-
DownloadCache
public DownloadCache(File cacheDirectory, org.apache.maven.plugin.logging.Log log)
-
-
Method Detail
-
getArtifact
public File getArtifact(URI uri, Checksums checksums)
Get a File in the download cache. If no cache for this URL, or if expected checksums don't match cached ones, returns null. available in cache,- Parameters:
uri- URL of the filechecksums- Supplied checksums.- Returns:
- A File when cache is found, null if no available cache
-
install
public void install(URI uri, File outputFile, Checksums checksums) throws org.apache.maven.plugin.MojoFailureException, IOException
- Throws:
org.apache.maven.plugin.MojoFailureExceptionIOException
-
-