Interface ProgressTrackingURLContentRetriever

  • All Known Implementing Classes:
    HttpTransport

    public interface ProgressTrackingURLContentRetriever
    • 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 from
        target - target file location
        fileDownloadProgress - 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