Klasse AsyncConvertFilesResource
java.lang.Object
com.cloudconvert.resource.AbstractResource
com.cloudconvert.resource.AbstractConvertFilesResource<AsyncResult<TaskResponse>,AsyncResult<Pageable<OperationResponse>>>
com.cloudconvert.resource.async.AsyncConvertFilesResource
- Alle implementierten Schnittstellen:
Closeable,AutoCloseable
public class AsyncConvertFilesResource
extends AbstractConvertFilesResource<AsyncResult<TaskResponse>,AsyncResult<Pageable<OperationResponse>>>
-
Feldübersicht
Von Klasse geerbte Felder com.cloudconvert.resource.AbstractConvertFilesResource
PATH_SEGMENT_CONVERT, PATH_SEGMENT_FORMATSVon 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
KonstruktorenKonstruktorBeschreibungAsyncConvertFilesResource(SettingsProvider settingsProvider, ObjectMapperProvider objectMapperProvider, AsyncRequestExecutor asyncRequestExecutor) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidclose()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.Von Klasse geerbte Methoden com.cloudconvert.resource.AbstractConvertFilesResource
getConvertFormatsHttpUriRequest, getConvertHttpUriRequestVon Klasse geerbte Methoden com.cloudconvert.resource.AbstractResource
getHttpEntity, getHttpEntity, getHttpUriRequest, getHttpUriRequest, getJson, getSyncUri, getSyncUri, getUri, getUri, requestToMap
-
Konstruktordetails
-
AsyncConvertFilesResource
public AsyncConvertFilesResource(SettingsProvider settingsProvider, ObjectMapperProvider objectMapperProvider, AsyncRequestExecutor asyncRequestExecutor)
-
-
Methodendetails
-
convert
public AsyncResult<TaskResponse> convert(@NotNull @NotNull ConvertFilesTaskRequest convertFilesTaskRequest) throws IOException, URISyntaxException Beschreibung aus Klasse kopiert:AbstractConvertFilesResourceCreate a task to convert one input file from input_format to output_format. Requires the task.write scope.- Angegeben von:
convertin KlasseAbstractConvertFilesResource<AsyncResult<TaskResponse>,AsyncResult<Pageable<OperationResponse>>> - Parameter:
convertFilesTaskRequest-ConvertFilesTaskRequest- Gibt zurück:
AbstractConvertFilesResource- Löst aus:
IOExceptionURISyntaxException
-
convertFormats
public AsyncResult<Pageable<OperationResponse>> convertFormats() throws IOException, URISyntaxExceptionBeschreibung aus Klasse kopiert:AbstractConvertFilesResourceList all supported formats, their engines and possible options.- Angegeben von:
convertFormatsin KlasseAbstractConvertFilesResource<AsyncResult<TaskResponse>,AsyncResult<Pageable<OperationResponse>>> - Gibt zurück:
AbstractConvertFilesResource- Löst aus:
IOExceptionURISyntaxException
-
convertFormats
public AsyncResult<Pageable<OperationResponse>> convertFormats(@NotNull @NotNull Map<Filter, String> filters) throws IOException, URISyntaxExceptionBeschreibung aus Klasse kopiert:AbstractConvertFilesResourceList all supported formats, their engines and possible options.- Angegeben von:
convertFormatsin KlasseAbstractConvertFilesResource<AsyncResult<TaskResponse>,AsyncResult<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:
AbstractConvertFilesResource- Löst aus:
IOExceptionURISyntaxException
-
convertFormats
public AsyncResult<Pageable<OperationResponse>> convertFormats(@NotNull @NotNull Map<Filter, String> filters, @NotNull @NotNull List<Include> includes) throws IOException, URISyntaxExceptionBeschreibung aus Klasse kopiert:AbstractConvertFilesResourceList all supported formats, their engines and possible options.- Angegeben von:
convertFormatsin KlasseAbstractConvertFilesResource<AsyncResult<TaskResponse>,AsyncResult<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:
AbstractConvertFilesResource- Löst aus:
IOExceptionURISyntaxException
-
convertFormats
public AsyncResult<Pageable<OperationResponse>> convertFormats(@NotNull @NotNull Map<Filter, String> filters, @NotNull @NotNull List<Include> includes, @Nullable @Nullable Boolean alternative) throws IOException, URISyntaxExceptionBeschreibung aus Klasse kopiert:AbstractConvertFilesResourceList all supported formats, their engines and possible options.- Angegeben von:
convertFormatsin KlasseAbstractConvertFilesResource<AsyncResult<TaskResponse>,AsyncResult<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:
AbstractConvertFilesResource- Löst aus:
IOExceptionURISyntaxException
-
close
- Löst aus:
IOException
-