public interface URLContentRetriever
Modifier and Type | Method and Description |
---|---|
java.lang.String |
downloadUrlTo(java.lang.String url,
java.io.File target)
Download artifact to given location.
|
java.lang.String |
getDigest(java.lang.String url)
Retrieve content's digest.
|
void |
interrupt()
Interrupt operation.
|
@Nullable java.lang.String downloadUrlTo(@NotNull java.lang.String url, @NotNull java.io.File target) throws java.io.IOException
url
- source url to get artifact fromtarget
- target file locationjava.io.IOException
- if operation failed, can also throw RecoverableIOException
if operation can be repeated@Nullable java.lang.String getDigest(@NotNull java.lang.String url) throws java.io.IOException
url
- source url of the artifact to retrieve digest forjava.io.IOException
- if operation failedvoid interrupt()
ResolvingInterruptedException
when interrupt is received