public interface Downloads
| Modifier and Type | Method and Description |
|---|---|
java.io.File |
download(java.lang.String jarUrl,
java.util.Map<java.lang.String,java.lang.String> headers,
java.lang.String sha256) |
java.io.File download(java.lang.String jarUrl,
java.util.Map<java.lang.String,java.lang.String> headers,
java.lang.String sha256)
throws java.io.IOException
jarUrl - the exact URL to download from.headers - request headers (for example, an auth token) to send with the download; may
be null or empty.sha256 - the expected SHA-256 of the downloaded jar, hex-encoded, or null to skip
integrity verification.jarUrl, downloaded only when not already cached.java.io.IOException - if the download fails, or the downloaded content does not match sha256.