Klasse TasksResource
java.lang.Object
com.cloudconvert.resource.AbstractResource
com.cloudconvert.resource.AbstractTasksResource<Result<TaskResponse>,Result<Pageable<TaskResponse>>,Result<Void>,Result<Pageable<OperationResponse>>>
com.cloudconvert.resource.sync.TasksResource
- Alle implementierten Schnittstellen:
Closeable,AutoCloseable
public class TasksResource
extends AbstractTasksResource<Result<TaskResponse>,Result<Pageable<TaskResponse>>,Result<Void>,Result<Pageable<OperationResponse>>>
-
Feldübersicht
Von Klasse geerbte Felder com.cloudconvert.resource.AbstractTasksResource
PATH_SEGMENT_CANCEL, PATH_SEGMENT_OPERATIONS, PATH_SEGMENT_RETRY, PATH_SEGMENT_TASKS, PATH_SEGMENT_WAITVon 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
KonstruktorenKonstruktorBeschreibungTasksResource(SettingsProvider settingsProvider, ObjectMapperProvider objectMapperProvider, RequestExecutor requestExecutor, ConvertFilesResource convertFilesResource, OptimizeFilesResource optimizeFilesResource, CaptureWebsitesResource captureWebsitesResource, MergeFilesResource mergeFilesResource, CreateArchivesResource createArchivesResource, ExecuteCommandsResource executeCommandsResource, CreateThumbnailsResource createThumbnailsResource, GetMetadataResource getMetadataResource, WriteMetadataResource writeMetadataResource, AddWatermarkResource addWatermarkResource) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungarchive(@NotNull CreateArchivesTaskRequest createArchivesTaskRequest) Create a task to create a ZIP, RAR, 7Z, TAR, TAR.GZ or TAR.BZ2 archive.Cancel a task that is in status waiting or processing.capture(@NotNull CaptureWebsitesTaskRequest captureWebsitesTaskRequest) Create a task to convert a website to PDF or to capture a screenshot of a website (png, jpg).voidclose()command(@NotNull ExecuteCommandsTaskRequest executeCommandsTaskRequest) Create a task to execute a command.convert(@NotNull ConvertFilesTaskRequest convertFilesTaskRequest) Create a task to convert one input file from input_format to output_format.List all supported formats, their engines and possible options.convertFormats(@NotNull Map<Filter, String> filters) List all supported formats, their engines and possible options.List all supported formats, their engines and possible options.convertFormats(@NotNull Map<Filter, String> filters, @NotNull List<Include> includes, @Nullable Boolean alternative) List all supported formats, their engines and possible options.Delete a task, including all data.list()List all tasks with their status, payload and result.List all tasks with their status, payload and result.List all tasks with their status, payload and result.list(@NotNull Map<Filter, String> filters, @NotNull List<Include> includes, @Nullable Pagination pagination) List all tasks with their status, payload and result.merge(@NotNull MergeFilesTaskRequest mergeFilesTaskRequest) Create a task to merge at least two files to one PDF.metadata(@NotNull GetMetadataTaskRequest getMetadataTaskRequest) Create a task to extract metadata from one file.List all possible operations, formats, engines and possible options.operations(@NotNull Map<Filter, String> filters) List all possible operations, formats, engines and possible options.List all possible operations, formats, engines and possible options.operations(@NotNull Map<Filter, String> filters, @NotNull List<Include> includes, @Nullable Boolean alternative) List all possible operations, formats, engines and possible options.optimize(@NotNull OptimizeFilesTaskRequest optimizeFilesTaskRequest) Create a task to optimize and compress a file.Create a new task, based on the payload of another task.Show a task.Show a task.thumbnail(@NotNull CreateThumbnailsTaskRequest createThumbnailsTaskRequest) Create a task to create a thumbnail of one file.Wait until the task status is finished or error.watermark(@NotNull AddWatermarkTaskRequest addWatermarkTaskRequest) Create a task to add a watermark to a file.writeMetadata(@NotNull WriteMetadataTaskRequest writeMetadataTaskRequest) Create a task to write file metadata.Von Klasse geerbte Methoden com.cloudconvert.resource.AbstractTasksResource
getCancelHttpUriRequest, getDeleteHttpUriRequest, getListHttpUriRequest, getOperationsHttpUriRequest, getRetryHttpUriRequest, getShowHttpUriRequest, getWaitHttpUriRequestVon Klasse geerbte Methoden com.cloudconvert.resource.AbstractResource
getHttpEntity, getHttpEntity, getHttpUriRequest, getHttpUriRequest, getJson, getSyncUri, getSyncUri, getUri, getUri, requestToMap
-
Konstruktordetails
-
TasksResource
public TasksResource(SettingsProvider settingsProvider, ObjectMapperProvider objectMapperProvider, RequestExecutor requestExecutor, ConvertFilesResource convertFilesResource, OptimizeFilesResource optimizeFilesResource, CaptureWebsitesResource captureWebsitesResource, MergeFilesResource mergeFilesResource, CreateArchivesResource createArchivesResource, ExecuteCommandsResource executeCommandsResource, CreateThumbnailsResource createThumbnailsResource, GetMetadataResource getMetadataResource, WriteMetadataResource writeMetadataResource, AddWatermarkResource addWatermarkResource)
-
-
Methodendetails
-
show
public Result<TaskResponse> show(@NotNull @NotNull String taskId) throws IOException, URISyntaxException, CloudConvertClientException, CloudConvertServerException Beschreibung aus Klasse kopiert:AbstractTasksResourceShow a task. Requires the task.read scope.- Angegeben von:
showin KlasseAbstractTasksResource<Result<TaskResponse>,Result<Pageable<TaskResponse>>, Result<Void>, Result<Pageable<OperationResponse>>> - Parameter:
taskId- task id- Gibt zurück:
AbstractTasksResource- Löst aus:
IOExceptionURISyntaxExceptionCloudConvertClientExceptionCloudConvertServerException
-
show
public Result<TaskResponse> show(@NotNull @NotNull String taskId, @NotNull @NotNull List<Include> includes) throws IOException, URISyntaxException, CloudConvertClientException, CloudConvertServerException Beschreibung aus Klasse kopiert:AbstractTasksResourceShow a task. Requires the task.read scope.- Angegeben von:
showin KlasseAbstractTasksResource<Result<TaskResponse>,Result<Pageable<TaskResponse>>, Result<Void>, Result<Pageable<OperationResponse>>> - Parameter:
taskId- task idincludes- (optional) Include retries, depends_on_tasks, payload and/or job in the result. Multiple include values are separated by , (comma).- Gibt zurück:
AbstractTasksResource- Löst aus:
IOExceptionURISyntaxExceptionCloudConvertClientExceptionCloudConvertServerException
-
wait
public Result<TaskResponse> wait(@NotNull @NotNull String taskId) throws IOException, URISyntaxException, CloudConvertClientException, CloudConvertServerException Beschreibung aus Klasse kopiert:AbstractTasksResourceWait until the task status is finished or error. This makes the request block until the task has been completed. Requires the task.read scope.We do not recommend using this for long running jobs (e.g. video encodings). Your system might automatically time out requests if there is not data transferred for a longer time.
In general, please avoid to block your application until a CloudConvert job completes. There might be cases in which we need to queue your task which results in longer processing times than usual. Using an asynchronous approach with webhooks is beneficial in such cases.
- Angegeben von:
waitin KlasseAbstractTasksResource<Result<TaskResponse>,Result<Pageable<TaskResponse>>, Result<Void>, Result<Pageable<OperationResponse>>> - Parameter:
taskId- task id- Gibt zurück:
AbstractTasksResource- Löst aus:
IOExceptionURISyntaxExceptionCloudConvertClientExceptionCloudConvertServerException
-
list
public Result<Pageable<TaskResponse>> list() throws IOException, URISyntaxException, CloudConvertClientException, CloudConvertServerExceptionBeschreibung aus Klasse kopiert:AbstractTasksResourceList all tasks with their status, payload and result. Requires the task.read scope.- Angegeben von:
listin KlasseAbstractTasksResource<Result<TaskResponse>,Result<Pageable<TaskResponse>>, Result<Void>, Result<Pageable<OperationResponse>>> - Gibt zurück:
AbstractTasksResource- Löst aus:
IOExceptionURISyntaxExceptionCloudConvertClientExceptionCloudConvertServerException
-
list
public Result<Pageable<TaskResponse>> list(@NotNull @NotNull Map<Filter, String> filters) throws IOException, URISyntaxException, CloudConvertClientException, CloudConvertServerExceptionBeschreibung aus Klasse kopiert:AbstractTasksResourceList all tasks with their status, payload and result. Requires the task.read scope.- Angegeben von:
listin KlasseAbstractTasksResource<Result<TaskResponse>,Result<Pageable<TaskResponse>>, Result<Void>, Result<Pageable<OperationResponse>>> - Parameter:
filters- (optional) Filters: - job_id - The result will be filtered to include only tasks for a specific Job ID. - status - The result will be filtered to include only tasks with a specific status (waiting, processing, finished or error). - operation - Filter result to only include tasks of with a matching operation (for example convert or import/s3).- Gibt zurück:
AbstractTasksResource- Löst aus:
IOExceptionURISyntaxExceptionCloudConvertClientExceptionCloudConvertServerException
-
list
public Result<Pageable<TaskResponse>> list(@NotNull @NotNull Map<Filter, String> filters, @NotNull @NotNull List<Include> includes) throws IOException, URISyntaxException, CloudConvertClientException, CloudConvertServerExceptionBeschreibung aus Klasse kopiert:AbstractTasksResourceList all tasks with their status, payload and result. Requires the task.read scope.- Angegeben von:
listin KlasseAbstractTasksResource<Result<TaskResponse>,Result<Pageable<TaskResponse>>, Result<Void>, Result<Pageable<OperationResponse>>> - Parameter:
filters- (optional) Filters: - job_id - The result will be filtered to include only tasks for a specific Job ID. - status - The result will be filtered to include only tasks with a specific status (waiting, processing, finished or error). - operation - Filter result to only include tasks of with a matching operation (for example convert or import/s3).includes- (optional) Include retries and/or depends_on_tasks in the result.- Gibt zurück:
AbstractTasksResource- Löst aus:
IOExceptionURISyntaxExceptionCloudConvertClientExceptionCloudConvertServerException
-
list
public Result<Pageable<TaskResponse>> list(@NotNull @NotNull Map<Filter, String> filters, @NotNull @NotNull List<Include> includes, @Nullable @Nullable Pagination pagination) throws IOException, URISyntaxException, CloudConvertClientException, CloudConvertServerExceptionBeschreibung aus Klasse kopiert:AbstractTasksResourceList all tasks with their status, payload and result. Requires the task.read scope.- Angegeben von:
listin KlasseAbstractTasksResource<Result<TaskResponse>,Result<Pageable<TaskResponse>>, Result<Void>, Result<Pageable<OperationResponse>>> - Parameter:
filters- (optional) Filters: - job_id - The result will be filtered to include only tasks for a specific Job ID. - status - The result will be filtered to include only tasks with a specific status (waiting, processing, finished or error). - operation - Filter result to only include tasks of with a matching operation (for example convert or import/s3).includes- (optional) Include retries and/or depends_on_tasks in the result.pagination- (optional) Pagination: - per_page - Number of tasks per page, defaults to 100. - page - The result page to show.- Gibt zurück:
AbstractTasksResource- Löst aus:
IOExceptionURISyntaxExceptionCloudConvertClientExceptionCloudConvertServerException
-
cancel
public Result<TaskResponse> cancel(@NotNull @NotNull String taskId) throws IOException, URISyntaxException, CloudConvertClientException, CloudConvertServerException Beschreibung aus Klasse kopiert:AbstractTasksResourceCancel a task that is in status waiting or processing. Requires the task.write scope.- Angegeben von:
cancelin KlasseAbstractTasksResource<Result<TaskResponse>,Result<Pageable<TaskResponse>>, Result<Void>, Result<Pageable<OperationResponse>>> - Parameter:
taskId- task id- Gibt zurück:
AbstractTasksResource- Löst aus:
IOExceptionURISyntaxExceptionCloudConvertClientExceptionCloudConvertServerException
-
retry
public Result<TaskResponse> retry(@NotNull @NotNull String taskId) throws IOException, URISyntaxException, CloudConvertClientException, CloudConvertServerException Beschreibung aus Klasse kopiert:AbstractTasksResourceCreate a new task, based on the payload of another task. Requires the task.write scope.- Angegeben von:
retryin KlasseAbstractTasksResource<Result<TaskResponse>,Result<Pageable<TaskResponse>>, Result<Void>, Result<Pageable<OperationResponse>>> - Parameter:
taskId- task id- Gibt zurück:
AbstractTasksResource- Löst aus:
IOExceptionURISyntaxExceptionCloudConvertClientExceptionCloudConvertServerException
-
delete
public Result<Void> delete(@NotNull @NotNull String taskId) throws IOException, URISyntaxException, CloudConvertClientException, CloudConvertServerException Beschreibung aus Klasse kopiert:AbstractTasksResourceDelete a task, including all data. Requires the task.write scope. Tasks are deleted automatically 24 hours after they have ended.- Angegeben von:
deletein KlasseAbstractTasksResource<Result<TaskResponse>,Result<Pageable<TaskResponse>>, Result<Void>, Result<Pageable<OperationResponse>>> - Parameter:
taskId- task id- Gibt zurück:
AbstractTasksResource- Löst aus:
IOExceptionURISyntaxExceptionCloudConvertClientExceptionCloudConvertServerException
-
operations
public Result<Pageable<OperationResponse>> operations() throws IOException, URISyntaxException, CloudConvertClientException, CloudConvertServerExceptionBeschreibung aus Klasse kopiert:AbstractTasksResourceList all possible operations, formats, engines and possible options.- Angegeben von:
operationsin KlasseAbstractTasksResource<Result<TaskResponse>,Result<Pageable<TaskResponse>>, Result<Void>, Result<Pageable<OperationResponse>>> - Gibt zurück:
AbstractTasksResource- Löst aus:
IOExceptionURISyntaxExceptionCloudConvertClientExceptionCloudConvertServerException
-
operations
public Result<Pageable<OperationResponse>> operations(@NotNull @NotNull Map<Filter, String> filters) throws IOException, URISyntaxException, CloudConvertClientException, CloudConvertServerExceptionBeschreibung aus Klasse kopiert:AbstractTasksResourceList all possible operations, formats, engines and possible options.- Angegeben von:
operationsin KlasseAbstractTasksResource<Result<TaskResponse>,Result<Pageable<TaskResponse>>, Result<Void>, Result<Pageable<OperationResponse>>> - Parameter:
filters- (optional) Filters: - operation - The result will be filtered to include only possible operations with a matching operation name (e.g. convert or optimize). - input_format - The result will be filtered to include only possible conversions with a matching input format. - output_format - The result will be filtered to include only possible conversions with a matching output format. - engine - Filter result to only include conversions with a matching engine name. - engine_version - Filter result to only include conversions with a matching engine version.- Gibt zurück:
AbstractTasksResource- Löst aus:
IOExceptionURISyntaxExceptionCloudConvertClientExceptionCloudConvertServerException
-
operations
public Result<Pageable<OperationResponse>> operations(@NotNull @NotNull Map<Filter, String> filters, @NotNull @NotNull List<Include> includes) throws IOException, URISyntaxException, CloudConvertClientException, CloudConvertServerExceptionBeschreibung aus Klasse kopiert:AbstractTasksResourceList all possible operations, formats, engines and possible options.- Angegeben von:
operationsin KlasseAbstractTasksResource<Result<TaskResponse>,Result<Pageable<TaskResponse>>, Result<Void>, Result<Pageable<OperationResponse>>> - Parameter:
filters- (optional) Filters: - operation - The result will be filtered to include only possible operations with a matching operation name (e.g. convert or optimize). - input_format - The result will be filtered to include only possible conversions with a matching input format. - output_format - The result will be filtered to include only possible conversions with a matching output format. - engine - Filter result to only include conversions with a matching engine name. - engine_version - Filter result to only include conversions with a matching engine version.includes- (optional) Include options and/or engine_versions in the result.- Gibt zurück:
AbstractTasksResource- Löst aus:
IOExceptionURISyntaxExceptionCloudConvertClientExceptionCloudConvertServerException
-
operations
public Result<Pageable<OperationResponse>> operations(@NotNull @NotNull Map<Filter, String> filters, @NotNull @NotNull List<Include> includes, @Nullable @Nullable Boolean alternative) throws IOException, URISyntaxException, CloudConvertClientException, CloudConvertServerExceptionBeschreibung aus Klasse kopiert:AbstractTasksResourceList all possible operations, formats, engines and possible options.- Angegeben von:
operationsin KlasseAbstractTasksResource<Result<TaskResponse>,Result<Pageable<TaskResponse>>, Result<Void>, Result<Pageable<OperationResponse>>> - Parameter:
filters- (optional) Filters: - operation - The result will be filtered to include only possible operations with a matching operation name (e.g. convert or optimize). - input_format - The result will be filtered to include only possible conversions with a matching input format. - output_format - The result will be filtered to include only possible conversions with a matching output format. - engine - Filter result to only include conversions with a matching engine name. - engine_version - Filter result to only include conversions with a matching engine version.includes- (optional) Include options and/or engine_versions in the result.alternative- (optional) For some formats multiple alternative engines are available. If set to true, the result includes these alternative conversion types. Default to false.- Gibt zurück:
AbstractTasksResource- Löst aus:
IOExceptionURISyntaxExceptionCloudConvertClientExceptionCloudConvertServerException
-
convert
public Result<TaskResponse> convert(@NotNull @NotNull ConvertFilesTaskRequest convertFilesTaskRequest) throws IOException, URISyntaxException, CloudConvertClientException, CloudConvertServerException Beschreibung aus Klasse kopiert:AbstractTasksResourceCreate a task to convert one input file from input_format to output_format. Requires the task.write scope.- Angegeben von:
convertin KlasseAbstractTasksResource<Result<TaskResponse>,Result<Pageable<TaskResponse>>, Result<Void>, Result<Pageable<OperationResponse>>> - Parameter:
convertFilesTaskRequest-ConvertFilesTaskRequest- Gibt zurück:
AbstractTasksResource- Löst aus:
IOExceptionURISyntaxExceptionCloudConvertClientExceptionCloudConvertServerException
-
convertFormats
public Result<Pageable<OperationResponse>> convertFormats() throws IOException, URISyntaxException, CloudConvertClientException, CloudConvertServerExceptionBeschreibung aus Klasse kopiert:AbstractTasksResourceList all supported formats, their engines and possible options.- Angegeben von:
convertFormatsin KlasseAbstractTasksResource<Result<TaskResponse>,Result<Pageable<TaskResponse>>, Result<Void>, Result<Pageable<OperationResponse>>> - Gibt zurück:
AbstractTasksResource- Löst aus:
IOExceptionURISyntaxExceptionCloudConvertClientExceptionCloudConvertServerException
-
convertFormats
public Result<Pageable<OperationResponse>> convertFormats(@NotNull @NotNull Map<Filter, String> filters) throws IOException, URISyntaxException, CloudConvertClientException, CloudConvertServerExceptionBeschreibung aus Klasse kopiert:AbstractTasksResourceList all supported formats, their engines and possible options.- Angegeben von:
convertFormatsin KlasseAbstractTasksResource<Result<TaskResponse>,Result<Pageable<TaskResponse>>, Result<Void>, Result<Pageable<OperationResponse>>> - Parameter:
filters- (optional) Filters: - input_format - The result will be filtered to include only possible conversions with a matching input format. - output_format - The result will be filtered to include only possible conversions with a matching output format. - engine - Filter result to only include conversions with a matching engine name. - engine_version - Filter result to only include conversions with a matching engine version.- Gibt zurück:
AbstractTasksResource- Löst aus:
IOExceptionURISyntaxExceptionCloudConvertClientExceptionCloudConvertServerException
-
convertFormats
public Result<Pageable<OperationResponse>> convertFormats(@NotNull @NotNull Map<Filter, String> filters, @NotNull @NotNull List<Include> includes) throws IOException, URISyntaxException, CloudConvertClientException, CloudConvertServerExceptionBeschreibung aus Klasse kopiert:AbstractTasksResourceList all supported formats, their engines and possible options.- Angegeben von:
convertFormatsin KlasseAbstractTasksResource<Result<TaskResponse>,Result<Pageable<TaskResponse>>, Result<Void>, Result<Pageable<OperationResponse>>> - Parameter:
filters- (optional) Filters: - input_format - The result will be filtered to include only possible conversions with a matching input format. - output_format - The result will be filtered to include only possible conversions with a matching output format. - engine - Filter result to only include conversions with a matching engine name. - engine_version - Filter result to only include conversions with a matching engine version.includes- (optional) Include options and/or engine_versions in the result.- Gibt zurück:
AbstractTasksResource- Löst aus:
IOExceptionURISyntaxExceptionCloudConvertClientExceptionCloudConvertServerException
-
convertFormats
public Result<Pageable<OperationResponse>> convertFormats(@NotNull @NotNull Map<Filter, String> filters, @NotNull @NotNull List<Include> includes, @Nullable @Nullable Boolean alternative) throws IOException, URISyntaxException, CloudConvertClientException, CloudConvertServerExceptionBeschreibung aus Klasse kopiert:AbstractTasksResourceList all supported formats, their engines and possible options.- Angegeben von:
convertFormatsin KlasseAbstractTasksResource<Result<TaskResponse>,Result<Pageable<TaskResponse>>, Result<Void>, Result<Pageable<OperationResponse>>> - Parameter:
filters- (optional) Filters: - input_format - The result will be filtered to include only possible conversions with a matching input format. - output_format - The result will be filtered to include only possible conversions with a matching output format. - engine - Filter result to only include conversions with a matching engine name. - engine_version - Filter result to only include conversions with a matching engine version.includes- (optional) Include options and/or engine_versions in the result.alternative- (optional) For some formats multiple alternative engines are available. If set to true, the result includes these alternative conversion types. Default to false.- Gibt zurück:
AbstractTasksResource- Löst aus:
IOExceptionURISyntaxExceptionCloudConvertClientExceptionCloudConvertServerException
-
optimize
public Result<TaskResponse> optimize(@NotNull @NotNull OptimizeFilesTaskRequest optimizeFilesTaskRequest) throws IOException, URISyntaxException, CloudConvertClientException, CloudConvertServerException Beschreibung aus Klasse kopiert:AbstractTasksResourceCreate a task to optimize and compress a file. Currently supported formats are PDF, PNG and JPG.- Angegeben von:
optimizein KlasseAbstractTasksResource<Result<TaskResponse>,Result<Pageable<TaskResponse>>, Result<Void>, Result<Pageable<OperationResponse>>> - Parameter:
optimizeFilesTaskRequest-OptimizeFilesTaskRequest- Gibt zurück:
AbstractTasksResource- Löst aus:
IOExceptionURISyntaxExceptionCloudConvertClientExceptionCloudConvertServerException
-
capture
public Result<TaskResponse> capture(@NotNull @NotNull CaptureWebsitesTaskRequest captureWebsitesTaskRequest) throws IOException, URISyntaxException, CloudConvertClientException, CloudConvertServerException Beschreibung aus Klasse kopiert:AbstractTasksResourceCreate a task to convert a website to PDF or to capture a screenshot of a website (png, jpg).- Angegeben von:
capturein KlasseAbstractTasksResource<Result<TaskResponse>,Result<Pageable<TaskResponse>>, Result<Void>, Result<Pageable<OperationResponse>>> - Parameter:
captureWebsitesTaskRequest-CaptureWebsitesTaskRequest- Gibt zurück:
AbstractTasksResource- Löst aus:
IOExceptionURISyntaxExceptionCloudConvertClientExceptionCloudConvertServerException
-
merge
public Result<TaskResponse> merge(@NotNull @NotNull MergeFilesTaskRequest mergeFilesTaskRequest) throws IOException, URISyntaxException, CloudConvertClientException, CloudConvertServerException Beschreibung aus Klasse kopiert:AbstractTasksResourceCreate a task to merge at least two files to one PDF. If input files are not PDFs yet, they are automatically converted to PDF.- Angegeben von:
mergein KlasseAbstractTasksResource<Result<TaskResponse>,Result<Pageable<TaskResponse>>, Result<Void>, Result<Pageable<OperationResponse>>> - Parameter:
mergeFilesTaskRequest-MergeFilesTaskRequest- Gibt zurück:
AbstractTasksResource- Löst aus:
IOExceptionURISyntaxExceptionCloudConvertClientExceptionCloudConvertServerException
-
archive
public Result<TaskResponse> archive(@NotNull @NotNull CreateArchivesTaskRequest createArchivesTaskRequest) throws IOException, URISyntaxException, CloudConvertClientException, CloudConvertServerException Beschreibung aus Klasse kopiert:AbstractTasksResourceCreate a task to create a ZIP, RAR, 7Z, TAR, TAR.GZ or TAR.BZ2 archive.- Angegeben von:
archivein KlasseAbstractTasksResource<Result<TaskResponse>,Result<Pageable<TaskResponse>>, Result<Void>, Result<Pageable<OperationResponse>>> - Parameter:
createArchivesTaskRequest-CreateArchivesTaskRequest- Gibt zurück:
AbstractTasksResource- Löst aus:
IOExceptionURISyntaxExceptionCloudConvertClientExceptionCloudConvertServerException
-
command
public Result<TaskResponse> command(@NotNull @NotNull ExecuteCommandsTaskRequest executeCommandsTaskRequest) throws IOException, URISyntaxException, CloudConvertClientException, CloudConvertServerException Beschreibung aus Klasse kopiert:AbstractTasksResourceCreate a task to execute a command. Currently, ffmpeg, imagemagick and graphicsmagick commands re supported. You can access the files from the input task in the /input/{taskName}/ (For example: /input/import-1/) directory. All files that are created in the /output/ directory are available for following tasks (e.g. export tasks).- Angegeben von:
commandin KlasseAbstractTasksResource<Result<TaskResponse>,Result<Pageable<TaskResponse>>, Result<Void>, Result<Pageable<OperationResponse>>> - Parameter:
executeCommandsTaskRequest-ExecuteCommandsTaskRequest- Gibt zurück:
AbstractTasksResource- Löst aus:
IOExceptionURISyntaxExceptionCloudConvertClientExceptionCloudConvertServerException
-
thumbnail
public Result<TaskResponse> thumbnail(@NotNull @NotNull CreateThumbnailsTaskRequest createThumbnailsTaskRequest) throws IOException, URISyntaxException, CloudConvertClientException, CloudConvertServerException Beschreibung aus Klasse kopiert:AbstractTasksResourceCreate a task to create a thumbnail of one file. Requires the task.write scope.- Angegeben von:
thumbnailin KlasseAbstractTasksResource<Result<TaskResponse>,Result<Pageable<TaskResponse>>, Result<Void>, Result<Pageable<OperationResponse>>> - Parameter:
createThumbnailsTaskRequest-CreateThumbnailsTaskRequest- Gibt zurück:
AbstractTasksResource- Löst aus:
IOExceptionURISyntaxExceptionCloudConvertClientExceptionCloudConvertServerException
-
metadata
public Result<TaskResponse> metadata(@NotNull @NotNull GetMetadataTaskRequest getMetadataTaskRequest) throws IOException, URISyntaxException, CloudConvertClientException, CloudConvertServerException Beschreibung aus Klasse kopiert:AbstractTasksResourceCreate a task to extract metadata from one file. Requires the task.write scope.- Angegeben von:
metadatain KlasseAbstractTasksResource<Result<TaskResponse>,Result<Pageable<TaskResponse>>, Result<Void>, Result<Pageable<OperationResponse>>> - Parameter:
getMetadataTaskRequest-GetMetadataTaskRequest- Gibt zurück:
AbstractTasksResource- Löst aus:
IOExceptionURISyntaxExceptionCloudConvertClientExceptionCloudConvertServerException
-
writeMetadata
public Result<TaskResponse> writeMetadata(@NotNull @NotNull WriteMetadataTaskRequest writeMetadataTaskRequest) throws IOException, URISyntaxException, CloudConvertClientException, CloudConvertServerException Beschreibung aus Klasse kopiert:AbstractTasksResourceCreate a task to write file metadata.- Angegeben von:
writeMetadatain KlasseAbstractTasksResource<Result<TaskResponse>,Result<Pageable<TaskResponse>>, Result<Void>, Result<Pageable<OperationResponse>>> - Parameter:
writeMetadataTaskRequest-WriteMetadataTaskRequest- Gibt zurück:
AbstractTasksResource- Löst aus:
IOExceptionURISyntaxExceptionCloudConvertClientExceptionCloudConvertServerException
-
watermark
public Result<TaskResponse> watermark(@NotNull @NotNull AddWatermarkTaskRequest addWatermarkTaskRequest) throws IOException, URISyntaxException, CloudConvertClientException, CloudConvertServerException Beschreibung aus Klasse kopiert:AbstractTasksResourceCreate a task to add a watermark to a file. Requires the task.write scope.- Angegeben von:
watermarkin KlasseAbstractTasksResource<Result<TaskResponse>,Result<Pageable<TaskResponse>>, Result<Void>, Result<Pageable<OperationResponse>>> - Parameter:
addWatermarkTaskRequest-AddWatermarkTaskRequest- Gibt zurück:
AbstractTasksResource- Löst aus:
IOExceptionURISyntaxExceptionCloudConvertClientExceptionCloudConvertServerException
-
close
- Angegeben von:
closein SchnittstelleAutoCloseable- Angegeben von:
closein SchnittstelleCloseable- Setzt außer Kraft:
closein KlasseAbstractTasksResource<Result<TaskResponse>,Result<Pageable<TaskResponse>>, Result<Void>, Result<Pageable<OperationResponse>>> - Löst aus:
IOException
-