Package jetbrains.buildServer.artifacts
Interface ProgressTrackingURLContentRetriever
-
- All Known Implementing Classes:
HttpTransport
public interface ProgressTrackingURLContentRetriever
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringdownloadUrlTo(String url, File target, FileProgress fileDownloadProgress)Download artifact to a given location tracking downloading progress.StringgetId()
-
-
-
Method Detail
-
downloadUrlTo
@Nullable String downloadUrlTo(@NotNull String url, @NotNull File target, @NotNull FileProgress fileDownloadProgress) throws 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:
IOException- in case of exception
-
getId
String getId()
- Returns:
- id of this retriever
-
-