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:
Closeable,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
ConstructorsConstructorDescriptionAsyncExportFilesResource(SettingsProvider settingsProvider, ObjectMapperProvider objectMapperProvider, AsyncRequestExecutor asyncRequestExecutor) -
Method Summary
Modifier and TypeMethodDescriptionazureBlob(@NotNull AzureBlobExportRequest azureBlobExportRequest) Create a task to export files to a Azure blob container.voidclose()googleCloudStorage(@NotNull GoogleCloudStorageExportRequest googleCloudStorageExportRequest) Create a task to export files to a Google Cloud Storage bucket.openStack(@NotNull OpenStackExportRequest openStackExportRequest) Create a task to export files to OpenStack Object Storage (Swift).s3(@NotNull S3ExportRequest s3ExportRequest) Create a task to export files to a S3 bucket.sftp(@NotNull SftpExportRequest sftpExportRequest) Create a task to export files to a SFTP server.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, requestToMap
-
Constructor Details
-
AsyncExportFilesResource
public AsyncExportFilesResource(SettingsProvider settingsProvider, ObjectMapperProvider objectMapperProvider, AsyncRequestExecutor asyncRequestExecutor)
-
-
Method Details
-
url
public AsyncResult<TaskResponse> url(@NotNull @NotNull UrlExportRequest urlExportRequest) throws IOException, URISyntaxException Description 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:
IOExceptionURISyntaxException
-
s3
public AsyncResult<TaskResponse> s3(@NotNull @NotNull S3ExportRequest s3ExportRequest) throws IOException, URISyntaxException Description 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:
IOExceptionURISyntaxException
-
azureBlob
public AsyncResult<TaskResponse> azureBlob(@NotNull @NotNull AzureBlobExportRequest azureBlobExportRequest) throws IOException, URISyntaxException Description 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:
IOExceptionURISyntaxException
-
googleCloudStorage
public AsyncResult<TaskResponse> googleCloudStorage(@NotNull @NotNull GoogleCloudStorageExportRequest googleCloudStorageExportRequest) throws IOException, URISyntaxException Description 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:
IOExceptionURISyntaxException
-
openStack
public AsyncResult<TaskResponse> openStack(@NotNull @NotNull OpenStackExportRequest openStackExportRequest) throws IOException, URISyntaxException Description 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:
IOExceptionURISyntaxException
-
sftp
public AsyncResult<TaskResponse> sftp(@NotNull @NotNull SftpExportRequest sftpExportRequest) throws IOException, URISyntaxException Description 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:
IOExceptionURISyntaxException
-
close
- Throws:
IOException
-