Package jetbrains.buildServer.artifacts
Interface ProgressTrackingURLContentRetriever
-
public interface ProgressTrackingURLContentRetriever
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
downloadUrlTo(java.lang.String url, java.io.File target, FileProgress fileDownloadProgress)
Download artifact to a given location tracking downloading progress.java.lang.String
getId()
-
-
-
Method Detail
-
downloadUrlTo
@Nullable java.lang.String downloadUrlTo(@NotNull java.lang.String url, @NotNull java.io.File target, @NotNull FileProgress fileDownloadProgress) throws java.io.IOException
Download artifact to a given location tracking downloading progress. Implementation is expected to write file only if the content was fetched successfully- Parameters:
url
- source url to get artifact fromtarget
- target file locationfileDownloadProgress
- download progress holder- Returns:
- digest of downloaded context, or null if the content can not be retrieved by this transport
- Throws:
java.io.IOException
- in case of exception
-
getId
java.lang.String getId()
- Returns:
- id of this retriever
-
-