Package com.cloudconvert.resource
Class AbstractExportFilesResource<TRAR extends AbstractResult<TaskResponse>>
java.lang.Object
com.cloudconvert.resource.AbstractResource
com.cloudconvert.resource.AbstractExportFilesResource<TRAR>
- All Implemented Interfaces:
Closeable,AutoCloseable
- Direct Known Subclasses:
AsyncExportFilesResource,ExportFilesResource
public abstract class AbstractExportFilesResource<TRAR extends AbstractResult<TaskResponse>>
extends AbstractResource
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields 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
ConstructorsConstructorDescriptionAbstractExportFilesResource(SettingsProvider settingsProvider, ObjectMapperProvider objectMapperProvider) -
Method Summary
Modifier and TypeMethodDescriptionabstract TRARazureBlob(@NotNull AzureBlobExportRequest azureBlobExportRequest) Create a task to export files to a Azure blob container.protected org.apache.http.client.methods.HttpUriRequestgetAzureBlobHttpUriRequest(@NotNull AzureBlobExportRequest azureBlobExportRequest) protected org.apache.http.client.methods.HttpUriRequestgetGoogleCloudStorageHttpUriRequest(@NotNull GoogleCloudStorageExportRequest googleCloudStorageExportRequest) protected org.apache.http.client.methods.HttpUriRequestgetOpenStackStorageHttpUriRequest(@NotNull OpenStackExportRequest openStackExportRequest) protected org.apache.http.client.methods.HttpUriRequestgetS3HttpUriRequest(@NotNull S3ExportRequest s3ExportRequest) protected org.apache.http.client.methods.HttpUriRequestgetSftpStorageHttpUriRequest(@NotNull SftpExportRequest sftpExportRequest) protected org.apache.http.client.methods.HttpUriRequestgetUrlHttpUriRequest(@NotNull UrlExportRequest urlExportRequest) abstract TRARgoogleCloudStorage(@NotNull GoogleCloudStorageExportRequest googleCloudStorageExportRequest) Create a task to export files to a Google Cloud Storage bucket.abstract TRARopenStack(@NotNull OpenStackExportRequest openStackExportRequest) Create a task to export files to OpenStack Object Storage (Swift).abstract TRARs3(@NotNull S3ExportRequest s3ExportRequest) Create a task to export files to a S3 bucket.abstract TRARsftp(@NotNull SftpExportRequest sftpExportRequest) Create a task to export files to a SFTP server.abstract TRARurl(@NotNull UrlExportRequest urlExportRequest) This task creates temporary URLs which can be used to download the files.Methods inherited from class com.cloudconvert.resource.AbstractResource
getHttpEntity, getHttpEntity, getHttpUriRequest, getHttpUriRequest, getJson, getSyncUri, getSyncUri, getUri, getUri, requestToMap
-
Field Details
-
PATH_SEGMENT_EXPORT
- See Also:
-
PATH_SEGMENT_URL
- See Also:
-
PATH_SEGMENT_S3
- See Also:
-
PATH_SEGMENTS_AZURE_BLOB
-
PATH_SEGMENT_GOOGLE_CLOUD_STORAGE
- See Also:
-
PATH_SEGMENT_OPENSTACK
- See Also:
-
PATH_SEGMENT_SFTP
- See Also:
-
-
Constructor Details
-
AbstractExportFilesResource
public AbstractExportFilesResource(SettingsProvider settingsProvider, ObjectMapperProvider objectMapperProvider)
-
-
Method Details
-
url
public abstract TRAR url(@NotNull @NotNull UrlExportRequest urlExportRequest) throws IOException, URISyntaxException, CloudConvertClientException, CloudConvertServerException 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:
IOExceptionURISyntaxExceptionCloudConvertClientExceptionCloudConvertServerException
-
getUrlHttpUriRequest
protected org.apache.http.client.methods.HttpUriRequest getUrlHttpUriRequest(@NotNull @NotNull UrlExportRequest urlExportRequest) throws IOException, URISyntaxException - Throws:
IOExceptionURISyntaxException
-
s3
public abstract TRAR s3(@NotNull @NotNull S3ExportRequest s3ExportRequest) throws IOException, URISyntaxException, CloudConvertClientException, CloudConvertServerException Create a task to export files to a S3 bucket.- Parameters:
s3ExportRequest-S3ExportRequest- Returns:
- TRD
- Throws:
IOExceptionURISyntaxExceptionCloudConvertClientExceptionCloudConvertServerException
-
getS3HttpUriRequest
protected org.apache.http.client.methods.HttpUriRequest getS3HttpUriRequest(@NotNull @NotNull S3ExportRequest s3ExportRequest) throws IOException, URISyntaxException - Throws:
IOExceptionURISyntaxException
-
azureBlob
public abstract TRAR azureBlob(@NotNull @NotNull AzureBlobExportRequest azureBlobExportRequest) throws IOException, URISyntaxException, CloudConvertClientException, CloudConvertServerException Create a task to export files to a Azure blob container.- Parameters:
azureBlobExportRequest-AzureBlobExportRequest- Returns:
- TRD
- Throws:
IOExceptionURISyntaxExceptionCloudConvertClientExceptionCloudConvertServerException
-
getAzureBlobHttpUriRequest
protected org.apache.http.client.methods.HttpUriRequest getAzureBlobHttpUriRequest(@NotNull @NotNull AzureBlobExportRequest azureBlobExportRequest) throws IOException, URISyntaxException - Throws:
IOExceptionURISyntaxException
-
googleCloudStorage
public abstract TRAR googleCloudStorage(@NotNull @NotNull GoogleCloudStorageExportRequest googleCloudStorageExportRequest) throws IOException, URISyntaxException, CloudConvertClientException, CloudConvertServerException Create a task to export files to a Google Cloud Storage bucket.- Parameters:
googleCloudStorageExportRequest-GoogleCloudStorageExportRequest- Returns:
- TRD
- Throws:
IOExceptionURISyntaxExceptionCloudConvertClientExceptionCloudConvertServerException
-
getGoogleCloudStorageHttpUriRequest
protected org.apache.http.client.methods.HttpUriRequest getGoogleCloudStorageHttpUriRequest(@NotNull @NotNull GoogleCloudStorageExportRequest googleCloudStorageExportRequest) throws IOException, URISyntaxException - Throws:
IOExceptionURISyntaxException
-
openStack
public abstract TRAR openStack(@NotNull @NotNull OpenStackExportRequest openStackExportRequest) throws IOException, URISyntaxException, CloudConvertClientException, CloudConvertServerException Create a task to export files to OpenStack Object Storage (Swift).- Parameters:
openStackExportRequest-OpenStackExportRequest- Returns:
- TRD
- Throws:
IOExceptionURISyntaxExceptionCloudConvertClientExceptionCloudConvertServerException
-
getOpenStackStorageHttpUriRequest
protected org.apache.http.client.methods.HttpUriRequest getOpenStackStorageHttpUriRequest(@NotNull @NotNull OpenStackExportRequest openStackExportRequest) throws IOException, URISyntaxException - Throws:
IOExceptionURISyntaxException
-
sftp
public abstract TRAR sftp(@NotNull @NotNull SftpExportRequest sftpExportRequest) throws IOException, URISyntaxException, CloudConvertClientException, CloudConvertServerException Create a task to export files to a SFTP server.- Parameters:
sftpExportRequest-SftpExportRequest- Returns:
- TRD
- Throws:
IOExceptionURISyntaxExceptionCloudConvertClientExceptionCloudConvertServerException
-
getSftpStorageHttpUriRequest
protected org.apache.http.client.methods.HttpUriRequest getSftpStorageHttpUriRequest(@NotNull @NotNull SftpExportRequest sftpExportRequest) throws IOException, URISyntaxException - Throws:
IOExceptionURISyntaxException
-