Package com.cloudconvert.resource.async
Class AsyncGetMetadataResource
java.lang.Object
com.cloudconvert.resource.AbstractResource
com.cloudconvert.resource.AbstractGetMetadataResource<AsyncResult<TaskResponse>>
com.cloudconvert.resource.async.AsyncGetMetadataResource
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class AsyncGetMetadataResource extends AbstractGetMetadataResource<AsyncResult<TaskResponse>>
-
Field Summary
Fields inherited from class com.cloudconvert.resource.AbstractGetMetadataResource
PATH_SEGMENT_METADATAFields 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
Constructors Constructor Description AsyncGetMetadataResource(SettingsProvider settingsProvider, ObjectMapperProvider objectMapperProvider, AsyncRequestExecutor asyncRequestExecutor) -
Method Summary
Modifier and Type Method Description voidclose()AsyncResult<TaskResponse>metadata(@NotNull GetMetadataTaskRequest getMetadataTaskRequest)Create a task to optimize and compress a file.Methods inherited from class com.cloudconvert.resource.AbstractGetMetadataResource
getMetadataHttpUriRequestMethods inherited from class com.cloudconvert.resource.AbstractResource
getHttpEntity, getHttpEntity, getHttpUriRequest, getHttpUriRequest, getJson, getSyncUri, getSyncUri, getUri, getUri, requestToMapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
AsyncGetMetadataResource
public AsyncGetMetadataResource(SettingsProvider settingsProvider, ObjectMapperProvider objectMapperProvider, AsyncRequestExecutor asyncRequestExecutor)
-
-
Method Details
-
metadata
public AsyncResult<TaskResponse> metadata(@NotNull @NotNull GetMetadataTaskRequest getMetadataTaskRequest) throws java.io.IOException, java.net.URISyntaxExceptionDescription copied from class:AbstractGetMetadataResourceCreate a task to optimize and compress a file. Currently supported formats are PDF, PNG and JPG.- Specified by:
metadatain classAbstractGetMetadataResource<AsyncResult<TaskResponse>>- Parameters:
getMetadataTaskRequest-GetMetadataTaskRequest- Returns:
AbstractGetMetadataResource- Throws:
java.io.IOExceptionjava.net.URISyntaxException
-
close
public void close() throws java.io.IOException- Throws:
java.io.IOException
-