Package com.cloudconvert.resource.async
Class AsyncExportFilesResource
java.lang.Object
com.cloudconvert.resource.AbstractResource
com.cloudconvert.resource.AbstractExportFilesResource<AsyncResult<TaskResponse>>
com.cloudconvert.resource.async.AsyncExportFilesResource
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class AsyncExportFilesResource extends AbstractExportFilesResource<AsyncResult<TaskResponse>>
-
Field Summary
Fields inherited from class com.cloudconvert.resource.AbstractExportFilesResource
PATH_SEGMENT_EXPORT, PATH_SEGMENT_GOOGLE_CLOUD_STORAGE, PATH_SEGMENT_OPENSTACK, PATH_SEGMENT_S3, PATH_SEGMENT_SFTP, PATH_SEGMENT_URL, PATH_SEGMENTS_AZURE_BLOBFields inherited from class com.cloudconvert.resource.AbstractResource
BEARER, HEADER_AUTHORIZATION, HEADER_USER_AGENT, INPUT_STREAM_TYPE_REFERENCE, JOB_RESPONSE_PAGEABLE_TYPE_REFERENCE, JOB_RESPONSE_TYPE_REFERENCE, MAP_STRING_TO_OBJECT_TYPE_REFERENCE, OPERATION_RESPONSE_PAGEABLE_TYPE_REFERENCE, TASK_RESPONSE_PAGEABLE_TYPE_REFERENCE, TASK_RESPONSE_TYPE_REFERENCE, USER_RESPONSE_TYPE_REFERENCE, V2, VALUE_USER_AGENT, VOID_TYPE_REFERENCE, WEBHOOKS_RESPONSE_PAGEABLE_TYPE_REFERENCE, WEBHOOKS_RESPONSE_TYPE_REFERENCE -
Constructor Summary
Constructors Constructor Description AsyncExportFilesResource(SettingsProvider settingsProvider, ObjectMapperProvider objectMapperProvider, AsyncRequestExecutor asyncRequestExecutor) -
Method Summary
Modifier and Type Method Description AsyncResult<TaskResponse>azureBlob(@NotNull AzureBlobExportRequest azureBlobExportRequest)Create a task to export files to a Azure blob container.voidclose()AsyncResult<TaskResponse>googleCloudStorage(@NotNull GoogleCloudStorageExportRequest googleCloudStorageExportRequest)Create a task to export files to a Google Cloud Storage bucket.AsyncResult<TaskResponse>openStack(@NotNull OpenStackExportRequest openStackExportRequest)Create a task to export files to OpenStack Object Storage (Swift).AsyncResult<TaskResponse>s3(@NotNull S3ExportRequest s3ExportRequest)Create a task to export files to a S3 bucket.AsyncResult<TaskResponse>sftp(@NotNull SftpExportRequest sftpExportRequest)Create a task to export files to a SFTP server.AsyncResult<TaskResponse>url(@NotNull UrlExportRequest urlExportRequest)This task creates temporary URLs which can be used to download the files.Methods inherited from class com.cloudconvert.resource.AbstractExportFilesResource
getAzureBlobHttpUriRequest, getGoogleCloudStorageHttpUriRequest, getOpenStackStorageHttpUriRequest, getS3HttpUriRequest, getSftpStorageHttpUriRequest, getUrlHttpUriRequestMethods inherited from class com.cloudconvert.resource.AbstractResource
getHttpEntity, getHttpEntity, getHttpUriRequest, getHttpUriRequest, getJson, getSyncUri, getSyncUri, getUri, getUri, requestToMapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
AsyncExportFilesResource
public AsyncExportFilesResource(SettingsProvider settingsProvider, ObjectMapperProvider objectMapperProvider, AsyncRequestExecutor asyncRequestExecutor)
-
-
Method Details
-
url
public AsyncResult<TaskResponse> url(@NotNull @NotNull UrlExportRequest urlExportRequest) throws java.io.IOException, java.net.URISyntaxExceptionDescription copied from class:AbstractExportFilesResourceThis 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.
- Specified by:
urlin classAbstractExportFilesResource<AsyncResult<TaskResponse>>- Parameters:
urlExportRequest-UrlExportRequest- Returns:
- TRD
- Throws:
java.io.IOExceptionjava.net.URISyntaxException
-
s3
public AsyncResult<TaskResponse> s3(@NotNull @NotNull S3ExportRequest s3ExportRequest) throws java.io.IOException, java.net.URISyntaxExceptionDescription copied from class:AbstractExportFilesResourceCreate a task to export files to a S3 bucket.- Specified by:
s3in classAbstractExportFilesResource<AsyncResult<TaskResponse>>- Parameters:
s3ExportRequest-S3ExportRequest- Returns:
- TRD
- Throws:
java.io.IOExceptionjava.net.URISyntaxException
-
azureBlob
public AsyncResult<TaskResponse> azureBlob(@NotNull @NotNull AzureBlobExportRequest azureBlobExportRequest) throws java.io.IOException, java.net.URISyntaxExceptionDescription copied from class:AbstractExportFilesResourceCreate a task to export files to a Azure blob container.- Specified by:
azureBlobin classAbstractExportFilesResource<AsyncResult<TaskResponse>>- Parameters:
azureBlobExportRequest-AzureBlobExportRequest- Returns:
- TRD
- Throws:
java.io.IOExceptionjava.net.URISyntaxException
-
googleCloudStorage
public AsyncResult<TaskResponse> googleCloudStorage(@NotNull @NotNull GoogleCloudStorageExportRequest googleCloudStorageExportRequest) throws java.io.IOException, java.net.URISyntaxExceptionDescription copied from class:AbstractExportFilesResourceCreate a task to export files to a Google Cloud Storage bucket.- Specified by:
googleCloudStoragein classAbstractExportFilesResource<AsyncResult<TaskResponse>>- Parameters:
googleCloudStorageExportRequest-GoogleCloudStorageExportRequest- Returns:
- TRD
- Throws:
java.io.IOExceptionjava.net.URISyntaxException
-
openStack
public AsyncResult<TaskResponse> openStack(@NotNull @NotNull OpenStackExportRequest openStackExportRequest) throws java.io.IOException, java.net.URISyntaxExceptionDescription copied from class:AbstractExportFilesResourceCreate a task to export files to OpenStack Object Storage (Swift).- Specified by:
openStackin classAbstractExportFilesResource<AsyncResult<TaskResponse>>- Parameters:
openStackExportRequest-OpenStackExportRequest- Returns:
- TRD
- Throws:
java.io.IOExceptionjava.net.URISyntaxException
-
sftp
public AsyncResult<TaskResponse> sftp(@NotNull @NotNull SftpExportRequest sftpExportRequest) throws java.io.IOException, java.net.URISyntaxExceptionDescription copied from class:AbstractExportFilesResourceCreate a task to export files to a SFTP server.- Specified by:
sftpin classAbstractExportFilesResource<AsyncResult<TaskResponse>>- Parameters:
sftpExportRequest-SftpExportRequest- Returns:
- TRD
- Throws:
java.io.IOExceptionjava.net.URISyntaxException
-
close
public void close() throws java.io.IOException- Throws:
java.io.IOException
-