Package com.cloudconvert.resource
Class AbstractFilesResource<ISAR extends AbstractResult<java.io.InputStream>>
java.lang.Object
com.cloudconvert.resource.AbstractResource
com.cloudconvert.resource.AbstractFilesResource<ISAR>
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
- Direct Known Subclasses:
AsyncFilesResource,FilesResource
public abstract class AbstractFilesResource<ISAR extends AbstractResult<java.io.InputStream>> extends AbstractResource
-
Field Summary
Fields 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 AbstractFilesResource(SettingsProvider settingsProvider, ObjectMapperProvider objectMapperProvider) -
Method Summary
Modifier and Type Method Description abstract ISARdownload(@NotNull java.lang.String path)Download fileprotected org.apache.http.client.methods.HttpUriRequestgetDownloadHttpUriRequest(@NotNull java.lang.String path)Methods 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, waitMethods inherited from interface java.io.Closeable
close
-
Constructor Details
-
AbstractFilesResource
public AbstractFilesResource(SettingsProvider settingsProvider, ObjectMapperProvider objectMapperProvider)
-
-
Method Details
-
download
public abstract ISAR download(@NotNull @NotNull java.lang.String path) throws java.io.IOException, java.net.URISyntaxException, CloudConvertClientException, CloudConvertServerExceptionDownload file- Parameters:
path- path to file- Returns:
- IS
- Throws:
java.io.IOExceptionjava.net.URISyntaxExceptionCloudConvertClientExceptionCloudConvertServerException
-
getDownloadHttpUriRequest
protected org.apache.http.client.methods.HttpUriRequest getDownloadHttpUriRequest(@NotNull @NotNull java.lang.String path) throws java.net.URISyntaxException- Throws:
java.net.URISyntaxException
-