Class DatasetUploads

java.lang.Object
com.qtsurfer.api.sdk.internal.DatasetUploads

public final class DatasetUploads extends Object
Transfers dataset bytes to presigned upload targets without an API-auth interceptor.
Since:
0.18.0
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    upload(HttpClient client, com.qtsurfer.api.client.model.DatasetCreated created, Path file)
    Upload a file using the initial target returned when a dataset is created.
    static void
    upload(HttpClient client, com.qtsurfer.api.client.model.DatasetUploadSession session, Path file)
    Upload a file using a target opened for an existing dataset.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • upload

      public static void upload(HttpClient client, com.qtsurfer.api.client.model.DatasetCreated created, Path file)
      Upload a file using the initial target returned when a dataset is created.
      Parameters:
      client - HTTP client used for the transfer
      created - newly created dataset containing its first upload target
      file - readable regular file to transfer
      Throws:
      QTSUploadError - when the input is invalid, the transfer fails, or the target rejects it
    • upload

      public static void upload(HttpClient client, com.qtsurfer.api.client.model.DatasetUploadSession session, Path file)
      Upload a file using a target opened for an existing dataset.
      Parameters:
      client - HTTP client used for the transfer
      session - upload session containing the presigned target
      file - readable regular file to transfer
      Throws:
      QTSUploadError - when the input is invalid, the transfer fails, or the target rejects it