Package com.mindee.http
Class MindeeHttpApiV2
- java.lang.Object
-
- com.mindee.http.MindeeApiCommon
-
- com.mindee.http.MindeeApiV2
-
- com.mindee.http.MindeeHttpApiV2
-
public final class MindeeHttpApiV2 extends MindeeApiV2
HTTP Client class for the V2 API.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MindeeHttpApiV2.MindeeHttpApiV2Builder
-
Constructor Summary
Constructors Constructor Description MindeeHttpApiV2(MindeeSettingsV2 mindeeSettings)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MindeeHttpApiV2.MindeeHttpApiV2Builder
builder()
InferenceResponse
reqGetInference(String jobId)
Retrieves the inference from a 302 redirect.JobResponse
reqGetJob(String jobId)
Attempts to poll the queue.JobResponse
reqPostInferenceEnqueue(LocalInputSource inputSource, InferenceParameters options)
Enqueues a doc with the POST method.-
Methods inherited from class com.mindee.http.MindeeApiCommon
getUserAgent, isInvalidStatusCode, readRawResponse
-
-
-
-
Constructor Detail
-
MindeeHttpApiV2
public MindeeHttpApiV2(MindeeSettingsV2 mindeeSettings)
-
-
Method Detail
-
reqPostInferenceEnqueue
public JobResponse reqPostInferenceEnqueue(LocalInputSource inputSource, InferenceParameters options)
Enqueues a doc with the POST method.- Specified by:
reqPostInferenceEnqueue
in classMindeeApiV2
- Parameters:
inputSource
- Input source to send.options
- Options to send the file along with.- Returns:
- A job response.
-
reqGetJob
public JobResponse reqGetJob(String jobId)
Description copied from class:MindeeApiV2
Attempts to poll the queue.- Specified by:
reqGetJob
in classMindeeApiV2
-
reqGetInference
public InferenceResponse reqGetInference(String jobId)
Description copied from class:MindeeApiV2
Retrieves the inference from a 302 redirect.- Specified by:
reqGetInference
in classMindeeApiV2
-
builder
public static MindeeHttpApiV2.MindeeHttpApiV2Builder builder()
-
-