java.lang.Object
ai.docling.serve.client.operations.HttpOperations
ai.docling.serve.client.DoclingServeClient
ai.docling.serve.client.DoclingServeJackson3Client
- All Implemented Interfaces:
ai.docling.serve.api.DoclingServeApi,ai.docling.serve.api.DoclingServeChunkApi,ai.docling.serve.api.DoclingServeClearApi,ai.docling.serve.api.DoclingServeConvertApi,ai.docling.serve.api.DoclingServeHealthApi,ai.docling.serve.api.DoclingServeTaskApi
A client implementation that leverages Jackson 3 for JSON serialization and deserialization.
This class extends DoclingServeClient and provides a concrete implementation for reading
and writing JSON data using a JsonMapper instance.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA builder class for configuring and constructing instances ofDoclingServeJackson3Client.Nested classes/interfaces inherited from class ai.docling.serve.client.DoclingServeClient
DoclingServeClient.DoclingServeClientBuilder<C extends DoclingServeClient,B extends DoclingServeClient.DoclingServeClientBuilder<C, B>> Nested classes/interfaces inherited from interface ai.docling.serve.api.DoclingServeApi
ai.docling.serve.api.DoclingServeApi.DoclingApiBuilder<T extends ai.docling.serve.api.DoclingServeApi,B extends ai.docling.serve.api.DoclingServeApi.DoclingApiBuilder<T, B>> -
Field Summary
Fields inherited from class ai.docling.serve.client.DoclingServeClient
DEFAULT_BASE_URLFields inherited from class ai.docling.serve.client.operations.HttpOperations
API_KEY_HEADER_NAME, CONTENT_TYPE_HEADER, CONTENT_TYPE_JSON, CONTENT_TYPE_ZIP -
Method Summary
Modifier and TypeMethodDescriptionprotected <T> TReads and deserializes the given JSON string into an instance of the specified type.protected <T> StringwriteValueAsString(T value) Serializes the given object into its JSON string representation.Methods inherited from class ai.docling.serve.client.DoclingServeClient
chunkSourceWithHierarchicalChunker, chunkSourceWithHierarchicalChunkerAsync, chunkSourceWithHybridChunker, chunkSourceWithHybridChunkerAsync, chunkTaskResult, clearConverters, clearResults, convertSource, convertSourceAsync, convertTaskResult, createRequestBuilder, execute, executeGet, executeGetWithStreamResponse, executePost, executePostWithStreamResponse, getResponse, health, logRequest, logResponse, pollTaskStatus, prettyPrintJsonMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ai.docling.serve.api.DoclingServeChunkApi
chunkFiles, chunkFilesAsync, chunkFilesWithHierarchicalChunker, chunkFilesWithHierarchicalChunker, chunkFilesWithHierarchicalChunkerAsync, chunkFilesWithHierarchicalChunkerAsync, chunkFilesWithHybridChunker, chunkFilesWithHybridChunker, chunkFilesWithHybridChunkerAsync, chunkFilesWithHybridChunkerAsyncMethods inherited from interface ai.docling.serve.api.DoclingServeConvertApi
convertFiles, convertFiles, convertFilesAsync, convertFilesAsync
-
Method Details
-
toBuilder
-
readValue
Description copied from class:DoclingServeClientReads and deserializes the given JSON string into an instance of the specified type.- Specified by:
readValuein classDoclingServeClient- Type Parameters:
T- the type of the object to be deserialized- Parameters:
json- the JSON string to deserialize; must not benullvalueType- theClassof the target type; must not benull- Returns:
- an instance of
Tdeserialized from the provided JSON
-
writeValueAsString
Description copied from class:DoclingServeClientSerializes the given object into its JSON string representation.- Specified by:
writeValueAsStringin classDoclingServeClient- Type Parameters:
T- the type of the object to serialize- Parameters:
value- the object to serialize; must not benull- Returns:
- the JSON string representation of the given object
-