Package com.cloudconvert.resource
Class AbstractResource
java.lang.Object
com.cloudconvert.resource.AbstractResource
- All Implemented Interfaces:
Closeable,AutoCloseable
- Direct Known Subclasses:
AbstractAddWatermarkResource,AbstractCaptureWebsitesResource,AbstractConvertFilesResource,AbstractCreateArchivesResource,AbstractCreateThumbnailsResource,AbstractExecuteCommandsResource,AbstractExportFilesResource,AbstractFilesResource,AbstractGetMetadataResource,AbstractImportFilesResource,AbstractJobsResource,AbstractMergeFilesResource,AbstractOptimizeFilesResource,AbstractSignedUrlResource,AbstractTasksResource,AbstractUsersResource,AbstractWebhooksResource,AbstractWriteMetadataResource
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final com.fasterxml.jackson.core.type.TypeReference<InputStream>static final com.fasterxml.jackson.core.type.TypeReference<Pageable<JobResponse>>static final com.fasterxml.jackson.core.type.TypeReference<JobResponse>static final com.fasterxml.jackson.core.type.TypeReference<Pageable<OperationResponse>>static final com.fasterxml.jackson.core.type.TypeReference<Pageable<TaskResponse>>static final com.fasterxml.jackson.core.type.TypeReference<TaskResponse>static final com.fasterxml.jackson.core.type.TypeReference<UserResponse>static final Stringstatic final Stringstatic final com.fasterxml.jackson.core.type.TypeReference<Void>static final com.fasterxml.jackson.core.type.TypeReference<Pageable<WebhookResponse>>static final com.fasterxml.jackson.core.type.TypeReference<WebhookResponse> -
Constructor Summary
ConstructorsConstructorDescriptionAbstractResource(SettingsProvider settingsProvider, ObjectMapperProvider objectMapperProvider) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.http.HttpEntitygetHttpEntity(Request request) protected org.apache.http.HttpEntitygetHttpEntity(Map<String, Object> map) protected org.apache.http.client.methods.HttpUriRequestgetHttpUriRequest(Class<? extends org.apache.http.client.methods.HttpRequestBase> httpRequestBaseClass, URI uri) protected org.apache.http.client.methods.HttpUriRequestgetHttpUriRequest(Class<? extends org.apache.http.client.methods.HttpRequestBase> httpRequestBaseClass, URI uri, @Nullable org.apache.http.HttpEntity httpEntity) protected Stringprotected URIgetSyncUri(List<String> pathSegments) protected URIgetSyncUri(List<String> pathSegments, List<org.apache.http.NameValuePair> nameValuePairs) protected URIprotected URIrequestToMap(Request request)
-
Field Details
-
HEADER_AUTHORIZATION
- See Also:
-
HEADER_USER_AGENT
- See Also:
-
V2
- See Also:
-
BEARER
- See Also:
-
VALUE_USER_AGENT
- See Also:
-
VOID_TYPE_REFERENCE
-
INPUT_STREAM_TYPE_REFERENCE
public static final com.fasterxml.jackson.core.type.TypeReference<InputStream> INPUT_STREAM_TYPE_REFERENCE -
MAP_STRING_TO_OBJECT_TYPE_REFERENCE
-
TASK_RESPONSE_TYPE_REFERENCE
public static final com.fasterxml.jackson.core.type.TypeReference<TaskResponse> TASK_RESPONSE_TYPE_REFERENCE -
JOB_RESPONSE_TYPE_REFERENCE
public static final com.fasterxml.jackson.core.type.TypeReference<JobResponse> JOB_RESPONSE_TYPE_REFERENCE -
USER_RESPONSE_TYPE_REFERENCE
public static final com.fasterxml.jackson.core.type.TypeReference<UserResponse> USER_RESPONSE_TYPE_REFERENCE -
WEBHOOKS_RESPONSE_TYPE_REFERENCE
public static final com.fasterxml.jackson.core.type.TypeReference<WebhookResponse> WEBHOOKS_RESPONSE_TYPE_REFERENCE -
OPERATION_RESPONSE_PAGEABLE_TYPE_REFERENCE
public static final com.fasterxml.jackson.core.type.TypeReference<Pageable<OperationResponse>> OPERATION_RESPONSE_PAGEABLE_TYPE_REFERENCE -
TASK_RESPONSE_PAGEABLE_TYPE_REFERENCE
public static final com.fasterxml.jackson.core.type.TypeReference<Pageable<TaskResponse>> TASK_RESPONSE_PAGEABLE_TYPE_REFERENCE -
JOB_RESPONSE_PAGEABLE_TYPE_REFERENCE
public static final com.fasterxml.jackson.core.type.TypeReference<Pageable<JobResponse>> JOB_RESPONSE_PAGEABLE_TYPE_REFERENCE -
WEBHOOKS_RESPONSE_PAGEABLE_TYPE_REFERENCE
public static final com.fasterxml.jackson.core.type.TypeReference<Pageable<WebhookResponse>> WEBHOOKS_RESPONSE_PAGEABLE_TYPE_REFERENCE
-
-
Constructor Details
-
AbstractResource
public AbstractResource(SettingsProvider settingsProvider, ObjectMapperProvider objectMapperProvider)
-
-
Method Details
-
requestToMap
-
getUri
- Throws:
URISyntaxException
-
getUri
protected URI getUri(List<String> pathSegments, List<org.apache.http.NameValuePair> nameValuePairs) throws URISyntaxException - Throws:
URISyntaxException
-
getSyncUri
- Throws:
URISyntaxException
-
getSyncUri
protected URI getSyncUri(List<String> pathSegments, List<org.apache.http.NameValuePair> nameValuePairs) throws URISyntaxException - Throws:
URISyntaxException
-
getHttpEntity
protected org.apache.http.HttpEntity getHttpEntity(Request request) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
getHttpEntity
protected org.apache.http.HttpEntity getHttpEntity(Map<String, Object> map) throws com.fasterxml.jackson.core.JsonProcessingException- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
getJson
protected String getJson(Map<String, Object> map) throws com.fasterxml.jackson.core.JsonProcessingException- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
getHttpUriRequest
-
getHttpUriRequest
-