Package com.mindee.http
Class MindeeApiV2
- java.lang.Object
-
- com.mindee.http.MindeeApiCommon
-
- com.mindee.http.MindeeApiV2
-
- Direct Known Subclasses:
MindeeHttpApiV2
public abstract class MindeeApiV2 extends MindeeApiCommon
Defines required methods for an API.
-
-
Constructor Summary
Constructors Constructor Description MindeeApiV2()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract InferenceResponse
reqGetInference(String jobId)
Retrieves the inference from a 302 redirect.abstract JobResponse
reqGetJob(String jobId)
Attempts to poll the queue.abstract JobResponse
reqPostInferenceEnqueue(LocalInputSource inputSource, InferenceParameters options)
Send a file to the prediction queue.-
Methods inherited from class com.mindee.http.MindeeApiCommon
getUserAgent, isInvalidStatusCode, readRawResponse
-
-
-
-
Method Detail
-
reqPostInferenceEnqueue
public abstract JobResponse reqPostInferenceEnqueue(LocalInputSource inputSource, InferenceParameters options) throws IOException
Send a file to the prediction queue.- Throws:
IOException
-
reqGetJob
public abstract JobResponse reqGetJob(String jobId)
Attempts to poll the queue.
-
reqGetInference
public abstract InferenceResponse reqGetInference(String jobId)
Retrieves the inference from a 302 redirect.
-
-