Class AbstractExportFilesResource<TRAR extends AbstractResult<TaskResponse>>

java.lang.Object
com.cloudconvert.resource.AbstractResource
com.cloudconvert.resource.AbstractExportFilesResource<TRAR>
All Implemented Interfaces:
java.io.Closeable, java.lang.AutoCloseable
Direct Known Subclasses:
AsyncExportFilesResource, ExportFilesResource

public abstract class AbstractExportFilesResource<TRAR extends AbstractResult<TaskResponse>>
extends AbstractResource
  • Field Details

  • Constructor Details

  • Method Details

    • url

      public abstract TRAR url​(@NotNull @NotNull UrlExportRequest urlExportRequest) throws java.io.IOException, java.net.URISyntaxException
      This task creates temporary URLs which can be used to download the files.

      Please note that all tasks get deleted after 24 hours automatically. Meaning, the created URLs are available for 24 hours only.

      Parameters:
      urlExportRequest - UrlExportRequest
      Returns:
      TRD
      Throws:
      java.io.IOException
      java.net.URISyntaxException
    • getUrlHttpUriRequest

      protected org.apache.http.client.methods.HttpUriRequest getUrlHttpUriRequest​(@NotNull @NotNull UrlExportRequest urlExportRequest) throws java.io.IOException, java.net.URISyntaxException
      Throws:
      java.io.IOException
      java.net.URISyntaxException
    • s3

      public abstract TRAR s3​(@NotNull @NotNull S3ExportRequest s3ExportRequest) throws java.io.IOException, java.net.URISyntaxException
      Create a task to export files to a S3 bucket.
      Parameters:
      s3ExportRequest - S3ExportRequest
      Returns:
      TRD
      Throws:
      java.io.IOException
      java.net.URISyntaxException
    • getS3HttpUriRequest

      protected org.apache.http.client.methods.HttpUriRequest getS3HttpUriRequest​(@NotNull @NotNull S3ExportRequest s3ExportRequest) throws java.io.IOException, java.net.URISyntaxException
      Throws:
      java.io.IOException
      java.net.URISyntaxException
    • azureBlob

      public abstract TRAR azureBlob​(@NotNull @NotNull AzureBlobExportRequest azureBlobExportRequest) throws java.io.IOException, java.net.URISyntaxException
      Create a task to export files to a Azure blob container.
      Parameters:
      azureBlobExportRequest - AzureBlobExportRequest
      Returns:
      TRD
      Throws:
      java.io.IOException
      java.net.URISyntaxException
    • getAzureBlobHttpUriRequest

      protected org.apache.http.client.methods.HttpUriRequest getAzureBlobHttpUriRequest​(@NotNull @NotNull AzureBlobExportRequest azureBlobExportRequest) throws java.io.IOException, java.net.URISyntaxException
      Throws:
      java.io.IOException
      java.net.URISyntaxException
    • googleCloudStorage

      public abstract TRAR googleCloudStorage​(@NotNull @NotNull GoogleCloudStorageExportRequest googleCloudStorageExportRequest) throws java.io.IOException, java.net.URISyntaxException
      Create a task to export files to a Google Cloud Storage bucket.
      Parameters:
      googleCloudStorageExportRequest - GoogleCloudStorageExportRequest
      Returns:
      TRD
      Throws:
      java.io.IOException
      java.net.URISyntaxException
    • getGoogleCloudStorageHttpUriRequest

      protected org.apache.http.client.methods.HttpUriRequest getGoogleCloudStorageHttpUriRequest​(@NotNull @NotNull GoogleCloudStorageExportRequest googleCloudStorageExportRequest) throws java.io.IOException, java.net.URISyntaxException
      Throws:
      java.io.IOException
      java.net.URISyntaxException
    • openStack

      public abstract TRAR openStack​(@NotNull @NotNull OpenStackExportRequest openStackExportRequest) throws java.io.IOException, java.net.URISyntaxException
      Create a task to export files to OpenStack Object Storage (Swift).
      Parameters:
      openStackExportRequest - OpenStackExportRequest
      Returns:
      TRD
      Throws:
      java.io.IOException
      java.net.URISyntaxException
    • getOpenStackStorageHttpUriRequest

      protected org.apache.http.client.methods.HttpUriRequest getOpenStackStorageHttpUriRequest​(@NotNull @NotNull OpenStackExportRequest openStackExportRequest) throws java.io.IOException, java.net.URISyntaxException
      Throws:
      java.io.IOException
      java.net.URISyntaxException
    • sftp

      public abstract TRAR sftp​(@NotNull @NotNull SftpExportRequest sftpExportRequest) throws java.io.IOException, java.net.URISyntaxException
      Create a task to export files to a SFTP server.
      Parameters:
      sftpExportRequest - SftpExportRequest
      Returns:
      TRD
      Throws:
      java.io.IOException
      java.net.URISyntaxException
    • getSftpStorageHttpUriRequest

      protected org.apache.http.client.methods.HttpUriRequest getSftpStorageHttpUriRequest​(@NotNull @NotNull SftpExportRequest sftpExportRequest) throws java.io.IOException, java.net.URISyntaxException
      Throws:
      java.io.IOException
      java.net.URISyntaxException