Package com.mindee.v2.cli
Class BaseInferenceCommand
- java.lang.Object
-
- com.mindee.v2.cli.BaseCommand
-
- com.mindee.v2.cli.BaseInferenceCommand
-
- Direct Known Subclasses:
ClassificationCommand,CropCommand,ExtractionCommand,OcrCommand,SplitCommand
public abstract class BaseInferenceCommand extends BaseCommand
Abstract base class for V2 inference CLI commands. Handles common enqueue options.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.mindee.v2.cli.BaseCommand
BaseCommand.OutputType
-
-
Constructor Summary
Constructors Constructor Description BaseInferenceCommand()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Integercall()protected abstract CommonResponseexecuteRequest(MindeeClient client, LocalInputSource inputSource)Executes the inference request and returns the product response.protected String[]getWebhookIds()-
Methods inherited from class com.mindee.v2.cli.BaseCommand
getFullOutput, getSummaryOutput, printOutput
-
-
-
-
Method Detail
-
getWebhookIds
protected String[] getWebhookIds()
- Returns:
- The properly formatted webhook IDs.
-
executeRequest
protected abstract CommonResponse executeRequest(MindeeClient client, LocalInputSource inputSource) throws Exception
Executes the inference request and returns the product response.- Parameters:
client- the V2 Mindee clientinputSource- the prepared local input source- Returns:
- the product response
- Throws:
Exception- on IO or API error
-
-