Package com.cloudconvert.resource
Class AbstractExecuteCommandsResource<TRAR extends AbstractResult<TaskResponse>>
java.lang.Object
com.cloudconvert.resource.AbstractResource
com.cloudconvert.resource.AbstractExecuteCommandsResource<TRAR>
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
- Direct Known Subclasses:
AsyncExecuteCommandsResource,ExecuteCommandsResource
public abstract class AbstractExecuteCommandsResource<TRAR extends AbstractResult<TaskResponse>> extends AbstractResource
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPATH_SEGMENT_COMMANDFields 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 AbstractExecuteCommandsResource(SettingsProvider settingsProvider, ObjectMapperProvider objectMapperProvider) -
Method Summary
Modifier and Type Method Description abstract TRARcommand(@NotNull ExecuteCommandsTaskRequest executeCommandsTaskRequest)Create a task to execute a command.protected org.apache.http.client.methods.HttpUriRequestgetCommandHttpUriRequest(@NotNull ExecuteCommandsTaskRequest executeCommandsTaskRequest)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
-
Field Details
-
PATH_SEGMENT_COMMAND
public static final java.lang.String PATH_SEGMENT_COMMAND- See Also:
- Constant Field Values
-
-
Constructor Details
-
AbstractExecuteCommandsResource
public AbstractExecuteCommandsResource(SettingsProvider settingsProvider, ObjectMapperProvider objectMapperProvider)
-
-
Method Details
-
command
public abstract TRAR command(@NotNull @NotNull ExecuteCommandsTaskRequest executeCommandsTaskRequest) throws java.io.IOException, java.net.URISyntaxException, CloudConvertClientException, CloudConvertServerExceptionCreate 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).- Parameters:
executeCommandsTaskRequest-ExecuteCommandsTaskRequest- Returns:
AbstractExecuteCommandsResource- Throws:
java.io.IOExceptionjava.net.URISyntaxExceptionCloudConvertClientExceptionCloudConvertServerException
-
getCommandHttpUriRequest
protected org.apache.http.client.methods.HttpUriRequest getCommandHttpUriRequest(@NotNull @NotNull ExecuteCommandsTaskRequest executeCommandsTaskRequest) throws java.io.IOException, java.net.URISyntaxException- Throws:
java.io.IOExceptionjava.net.URISyntaxException
-