Klasse AbstractImportFilesResource<TRAR extends AbstractResult<TaskResponse>>
java.lang.Object
com.cloudconvert.resource.AbstractResource
com.cloudconvert.resource.AbstractImportFilesResource<TRAR>
- Alle implementierten Schnittstellen:
Closeable,AutoCloseable
- Bekannte direkte Unterklassen:
AsyncImportFilesResource,ImportFilesResource
public abstract class AbstractImportFilesResource<TRAR extends AbstractResult<TaskResponse>>
extends AbstractResource
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringVon Klasse geerbte Felder 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 -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungAbstractImportFilesResource(SettingsProvider settingsProvider, ObjectMapperProvider objectMapperProvider) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungabstract TRARazureBlob(@NotNull AzureBlobImportRequest azureBlobImportRequest) Create a task to import files by downloading it from a Azure blob container.abstract TRARbase64(@NotNull Base64ImportRequest base64ImportRequest) Create a task to import a base64 fileprotected org.apache.http.client.methods.HttpUriRequestgetAzureBlobHttpUriRequest(@NotNull AzureBlobImportRequest azureBlobImportRequest) protected org.apache.http.client.methods.HttpUriRequestgetBase64HttpUriRequest(@NotNull Base64ImportRequest base64ImportRequest) protected org.apache.http.client.methods.HttpUriRequestgetGoogleCloudHttpUriRequest(@NotNull GoogleCloudStorageImportRequest googleCloudStorageImportRequest) protected org.apache.http.HttpEntitygetMultipartHttpEntity(TaskResponse.Result.Form uploadImportResponseResultForm, File file) protected org.apache.http.HttpEntitygetMultipartHttpEntity(TaskResponse.Result.Form uploadImportResponseResultForm, InputStream inputStream) protected org.apache.http.HttpEntitygetMultipartHttpEntity(TaskResponse.Result.Form uploadImportResponseResultForm, @NotNull String filename, InputStream inputStream) protected org.apache.http.client.methods.HttpUriRequestgetOpenStackHttpUriRequest(@NotNull OpenStackImportRequest openStackImportRequest) protected org.apache.http.client.methods.HttpUriRequestgetRawHttpUriRequest(@NotNull RawImportRequest rawImportRequest) protected org.apache.http.client.methods.HttpUriRequestgetS3HttpUriRequest(@NotNull S3ImportRequest s3ImportRequest) protected org.apache.http.client.methods.HttpUriRequestgetSftpHttpUriRequest(@NotNull SftpImportRequest sftpImportRequest) protected org.apache.http.client.methods.HttpUriRequestgetUrlHttpUriRequest(@NotNull UrlImportRequest urlImportRequest) abstract TRARgoogleCloudStorage(@NotNull GoogleCloudStorageImportRequest googleCloudStorageImportRequest) Create a task to import files by downloading it from a Google Cloud Storage bucket.abstract TRARopenStack(@NotNull OpenStackImportRequest openStackImportRequest) Create a task to import files by downloading it from OpenStack Object Storage (Swift).abstract TRARraw(@NotNull RawImportRequest rawImportRequest) Create a task to import raw fileabstract TRARs3(@NotNull S3ImportRequest s3ImportRequest) Create a task to import files by downloading it from a S3 bucket.abstract TRARsftp(@NotNull SftpImportRequest sftpImportRequest) Create a task to import files by downloading it from a SFTP server.abstract TRARupload(@NotNull UploadImportRequest uploadImportRequest) Create a task which uploads one input file.abstract TRARupload(@NotNull UploadImportRequest uploadImportRequest, @NotNull File file) Create a task which uploads one input file.abstract TRARupload(@NotNull UploadImportRequest uploadImportRequest, @NotNull InputStream inputStream) Create a task which uploads one input file.abstract TRARupload(@NotNull UploadImportRequest uploadImportRequest, @NotNull InputStream inputStream, @NotNull String filename) Create a task which uploads one input file.abstract TRARupload(@NotNull String taskId, TaskResponse.Result.Form taskResponseResultForm, @NotNull File file) Create a task which uploads one input file.abstract TRARupload(@NotNull String taskId, TaskResponse.Result.Form taskResponseResultForm, @NotNull InputStream inputStream) Create a task which uploads one input file.abstract TRARupload(@NotNull String taskId, TaskResponse.Result.Form taskResponseResultForm, @NotNull InputStream inputStream, @NotNull String filename) Create a task which uploads one input file.abstract TRARCreate a task which uploads one input file.abstract TRARupload(TRAR taskResponseResult, @NotNull InputStream inputStream) Create a task which uploads one input file.abstract TRARupload(TRAR taskResponseResult, @NotNull InputStream inputStream, @NotNull String filename) Create a task which uploads one input file.abstract TRARurl(@NotNull UrlImportRequest urlImportRequest) Create a task to import one file by downloading it from an URL.Von Klasse geerbte Methoden com.cloudconvert.resource.AbstractResource
getHttpEntity, getHttpEntity, getHttpUriRequest, getHttpUriRequest, getJson, getSyncUri, getSyncUri, getUri, getUri, requestToMap
-
Felddetails
-
PATH_SEGMENT_IMPORT
- Siehe auch:
-
PATH_SEGMENT_URL
- Siehe auch:
-
PATH_SEGMENT_UPLOAD
- Siehe auch:
-
PATH_SEGMENT_S3
- Siehe auch:
-
PATH_SEGMENTS_AZURE_BLOB
-
PATH_SEGMENT_GOOGLE_CLOUD_STORAGE
- Siehe auch:
-
PATH_SEGMENT_OPENSTACK
- Siehe auch:
-
PATH_SEGMENT_SFTP
- Siehe auch:
-
PATH_SEGMENT_BASE64
- Siehe auch:
-
PATH_SEGMENT_RAW
- Siehe auch:
-
-
Konstruktordetails
-
AbstractImportFilesResource
public AbstractImportFilesResource(SettingsProvider settingsProvider, ObjectMapperProvider objectMapperProvider)
-
-
Methodendetails
-
url
public abstract TRAR url(@NotNull @NotNull UrlImportRequest urlImportRequest) throws IOException, URISyntaxException, CloudConvertClientException, CloudConvertServerException Create a task to import one file by downloading it from an URL.- Parameter:
urlImportRequest-UrlImportRequest- Gibt zurück:
- TRD
- Löst aus:
IOExceptionURISyntaxExceptionCloudConvertClientExceptionCloudConvertServerException
-
getUrlHttpUriRequest
protected org.apache.http.client.methods.HttpUriRequest getUrlHttpUriRequest(@NotNull @NotNull UrlImportRequest urlImportRequest) throws IOException, URISyntaxException - Löst aus:
IOExceptionURISyntaxException
-
upload
public abstract TRAR upload(@NotNull @NotNull UploadImportRequest uploadImportRequest) throws IOException, URISyntaxException, CloudConvertClientException, CloudConvertServerException Create a task which uploads one input file. It allows your users to directly upload input files to CloudConvert, without temporary storing them on your server.Just create upload task, do not upload file immediately
- Parameter:
uploadImportRequest-UploadImportRequest- Gibt zurück:
- TRD
- Löst aus:
IOExceptionURISyntaxExceptionCloudConvertClientExceptionCloudConvertServerException
-
upload
public abstract TRAR upload(@NotNull @NotNull UploadImportRequest uploadImportRequest, @NotNull @NotNull File file) throws IOException, URISyntaxException, CloudConvertClientException, CloudConvertServerException Create a task which uploads one input file. It allows your users to directly upload input files to CloudConvert, without temporary storing them on your server.Upload file immediately
- Parameter:
uploadImportRequest-UploadImportRequestfile-Filefile which will be uploaded- Gibt zurück:
- TRD
- Löst aus:
IOExceptionURISyntaxExceptionCloudConvertClientExceptionCloudConvertServerException
-
upload
public abstract TRAR upload(@NotNull TRAR taskResponseResult, @NotNull @NotNull File file) throws IOException, URISyntaxException, CloudConvertClientException, CloudConvertServerException Create a task which uploads one input file. It allows your users to directly upload input files to CloudConvert, without temporary storing them on your server.Upload file using existing task response data result
- Parameter:
taskResponseResult-AbstractImportFilesResourcefile-Filefile which will be uploaded- Gibt zurück:
- TRD
- Löst aus:
IOExceptionURISyntaxExceptionCloudConvertClientExceptionCloudConvertServerException
-
upload
public abstract TRAR upload(@NotNull @NotNull String taskId, @NotNull TaskResponse.Result.Form taskResponseResultForm, @NotNull @NotNull File file) throws IOException, URISyntaxException, CloudConvertClientException, CloudConvertServerException Create a task which uploads one input file. It allows your users to directly upload input files to CloudConvert, without temporary storing them on your server.Upload file using existing task id and
TaskResponse.Result.Form- Parameter:
taskId- tasktaskResponseResultForm-TaskResponse.Result.Formfile-Filefile which will be uploaded- Gibt zurück:
- Löst aus:
IOExceptionURISyntaxExceptionCloudConvertClientExceptionCloudConvertServerException
-
upload
public abstract TRAR upload(@NotNull @NotNull UploadImportRequest uploadImportRequest, @NotNull @NotNull InputStream inputStream) throws IOException, URISyntaxException, CloudConvertClientException, CloudConvertServerException Create a task which uploads one input file. It allows your users to directly upload input files to CloudConvert, without temporary storing them on your server.Upload file immediately
- Parameter:
uploadImportRequest-UploadImportRequestinputStream-InputStreamof file which will be uploaded- Gibt zurück:
- TRD
- Löst aus:
IOExceptionURISyntaxExceptionCloudConvertClientExceptionCloudConvertServerException
-
upload
public abstract TRAR upload(@NotNull @NotNull UploadImportRequest uploadImportRequest, @NotNull @NotNull InputStream inputStream, @NotNull @NotNull String filename) throws IOException, URISyntaxException, CloudConvertClientException, CloudConvertServerException Create a task which uploads one input file. It allows your users to directly upload input files to CloudConvert, without temporary storing them on your server.Upload file immediately
- Parameter:
uploadImportRequest-UploadImportRequestinputStream-InputStreamof file which will be uploadedfilename- Set the filename, including file extension- Gibt zurück:
- TRD
- Löst aus:
IOExceptionURISyntaxExceptionCloudConvertClientExceptionCloudConvertServerException
-
upload
public abstract TRAR upload(@NotNull TRAR taskResponseResult, @NotNull @NotNull InputStream inputStream) throws IOException, URISyntaxException, CloudConvertClientException, CloudConvertServerException Create a task which uploads one input file. It allows your users to directly upload input files to CloudConvert, without temporary storing them on your server.Upload file using existing task response data result
- Parameter:
taskResponseResult-AbstractImportFilesResourceinputStream-InputStreamof file which will be uploaded- Gibt zurück:
- TRD
- Löst aus:
IOExceptionURISyntaxExceptionCloudConvertClientExceptionCloudConvertServerException
-
upload
public abstract TRAR upload(@NotNull TRAR taskResponseResult, @NotNull @NotNull InputStream inputStream, @NotNull @NotNull String filename) throws IOException, URISyntaxException, CloudConvertClientException, CloudConvertServerException Create a task which uploads one input file. It allows your users to directly upload input files to CloudConvert, without temporary storing them on your server.Upload file using existing task response data result
- Parameter:
taskResponseResult-AbstractImportFilesResourceinputStream-InputStreamof file which will be uploadedfilename- Set the filename, including file extension- Gibt zurück:
- TRD
- Löst aus:
IOExceptionURISyntaxExceptionCloudConvertClientExceptionCloudConvertServerException
-
upload
public abstract TRAR upload(@NotNull @NotNull String taskId, @NotNull TaskResponse.Result.Form taskResponseResultForm, @NotNull @NotNull InputStream inputStream) throws IOException, URISyntaxException, CloudConvertClientException, CloudConvertServerException Create a task which uploads one input file. It allows your users to directly upload input files to CloudConvert, without temporary storing them on your server.Upload file using existing task id and
TaskResponse.Result.Form- Parameter:
taskId- tasktaskResponseResultForm-TaskResponse.Result.ForminputStream-InputStreamof file which will be uploaded- Gibt zurück:
- Löst aus:
IOExceptionURISyntaxExceptionCloudConvertClientExceptionCloudConvertServerException
-
upload
public abstract TRAR upload(@NotNull @NotNull String taskId, @NotNull TaskResponse.Result.Form taskResponseResultForm, @NotNull @NotNull InputStream inputStream, @NotNull @NotNull String filename) throws IOException, URISyntaxException, CloudConvertClientException, CloudConvertServerException Create a task which uploads one input file. It allows your users to directly upload input files to CloudConvert, without temporary storing them on your server.Upload file using existing task id and
TaskResponse.Result.Form- Parameter:
taskId- tasktaskResponseResultForm-TaskResponse.Result.ForminputStream-InputStreamof file which will be uploadedfilename- Set the filename, including file extension- Gibt zurück:
- Löst aus:
IOExceptionURISyntaxExceptionCloudConvertClientExceptionCloudConvertServerException
-
s3
public abstract TRAR s3(@NotNull @NotNull S3ImportRequest s3ImportRequest) throws IOException, URISyntaxException, CloudConvertClientException, CloudConvertServerException Create a task to import files by downloading it from a S3 bucket.- Parameter:
s3ImportRequest-S3ImportRequest- Gibt zurück:
- TRD
- Löst aus:
IOExceptionURISyntaxExceptionCloudConvertClientExceptionCloudConvertServerException
-
getS3HttpUriRequest
protected org.apache.http.client.methods.HttpUriRequest getS3HttpUriRequest(@NotNull @NotNull S3ImportRequest s3ImportRequest) throws IOException, URISyntaxException - Löst aus:
IOExceptionURISyntaxException
-
azureBlob
public abstract TRAR azureBlob(@NotNull @NotNull AzureBlobImportRequest azureBlobImportRequest) throws IOException, URISyntaxException, CloudConvertClientException, CloudConvertServerException Create a task to import files by downloading it from a Azure blob container.- Parameter:
azureBlobImportRequest-AzureBlobImportRequest- Gibt zurück:
- TRD
- Löst aus:
IOExceptionURISyntaxExceptionCloudConvertClientExceptionCloudConvertServerException
-
getAzureBlobHttpUriRequest
protected org.apache.http.client.methods.HttpUriRequest getAzureBlobHttpUriRequest(@NotNull @NotNull AzureBlobImportRequest azureBlobImportRequest) throws IOException, URISyntaxException - Löst aus:
IOExceptionURISyntaxException
-
googleCloudStorage
public abstract TRAR googleCloudStorage(@NotNull @NotNull GoogleCloudStorageImportRequest googleCloudStorageImportRequest) throws IOException, URISyntaxException, CloudConvertClientException, CloudConvertServerException Create a task to import files by downloading it from a Google Cloud Storage bucket.- Parameter:
googleCloudStorageImportRequest-GoogleCloudStorageImportRequest- Gibt zurück:
- TRD
- Löst aus:
IOExceptionURISyntaxExceptionCloudConvertClientExceptionCloudConvertServerException
-
getGoogleCloudHttpUriRequest
protected org.apache.http.client.methods.HttpUriRequest getGoogleCloudHttpUriRequest(@NotNull @NotNull GoogleCloudStorageImportRequest googleCloudStorageImportRequest) throws IOException, URISyntaxException - Löst aus:
IOExceptionURISyntaxException
-
openStack
public abstract TRAR openStack(@NotNull @NotNull OpenStackImportRequest openStackImportRequest) throws IOException, URISyntaxException, CloudConvertClientException, CloudConvertServerException Create a task to import files by downloading it from OpenStack Object Storage (Swift).- Parameter:
openStackImportRequest-OpenStackImportRequest- Gibt zurück:
- TRD
- Löst aus:
IOExceptionURISyntaxExceptionCloudConvertClientExceptionCloudConvertServerException
-
getOpenStackHttpUriRequest
protected org.apache.http.client.methods.HttpUriRequest getOpenStackHttpUriRequest(@NotNull @NotNull OpenStackImportRequest openStackImportRequest) throws IOException, URISyntaxException - Löst aus:
IOExceptionURISyntaxException
-
sftp
public abstract TRAR sftp(@NotNull @NotNull SftpImportRequest sftpImportRequest) throws IOException, URISyntaxException, CloudConvertClientException, CloudConvertServerException Create a task to import files by downloading it from a SFTP server.- Parameter:
sftpImportRequest-SftpImportRequest- Gibt zurück:
- TRD
- Löst aus:
IOExceptionURISyntaxExceptionCloudConvertClientExceptionCloudConvertServerException
-
getSftpHttpUriRequest
protected org.apache.http.client.methods.HttpUriRequest getSftpHttpUriRequest(@NotNull @NotNull SftpImportRequest sftpImportRequest) throws IOException, URISyntaxException - Löst aus:
IOExceptionURISyntaxException
-
base64
public abstract TRAR base64(@NotNull @NotNull Base64ImportRequest base64ImportRequest) throws IOException, URISyntaxException, CloudConvertClientException, CloudConvertServerException Create a task to import a base64 file- Parameter:
base64ImportRequest-- Gibt zurück:
- Löst aus:
IOExceptionURISyntaxExceptionCloudConvertClientExceptionCloudConvertServerException
-
getBase64HttpUriRequest
protected org.apache.http.client.methods.HttpUriRequest getBase64HttpUriRequest(@NotNull @NotNull Base64ImportRequest base64ImportRequest) throws IOException, URISyntaxException - Löst aus:
IOExceptionURISyntaxException
-
raw
public abstract TRAR raw(@NotNull @NotNull RawImportRequest rawImportRequest) throws IOException, URISyntaxException, CloudConvertClientException, CloudConvertServerException Create a task to import raw file- Parameter:
rawImportRequest-- Gibt zurück:
- Löst aus:
IOExceptionURISyntaxExceptionCloudConvertClientExceptionCloudConvertServerException
-
getRawHttpUriRequest
protected org.apache.http.client.methods.HttpUriRequest getRawHttpUriRequest(@NotNull @NotNull RawImportRequest rawImportRequest) throws IOException, URISyntaxException - Löst aus:
IOExceptionURISyntaxException
-
getMultipartHttpEntity
protected org.apache.http.HttpEntity getMultipartHttpEntity(TaskResponse.Result.Form uploadImportResponseResultForm, File file) throws IOException - Löst aus:
IOException
-
getMultipartHttpEntity
protected org.apache.http.HttpEntity getMultipartHttpEntity(TaskResponse.Result.Form uploadImportResponseResultForm, InputStream inputStream) throws IOException - Löst aus:
IOException
-
getMultipartHttpEntity
protected org.apache.http.HttpEntity getMultipartHttpEntity(TaskResponse.Result.Form uploadImportResponseResultForm, @NotNull @NotNull String filename, InputStream inputStream) throws IOException - Löst aus:
IOException
-