Package ai.docling.client.serve
Class DoclingServeJackson3Client
java.lang.Object
ai.docling.client.serve.DoclingServeClient
ai.docling.client.serve.DoclingServeJackson3Client
- All Implemented Interfaces:
ai.docling.api.serve.DoclingServeApi
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.client.serve.DoclingServeClient
DoclingServeClient.DoclingServeClientBuilder<C extends DoclingServeClient,B extends DoclingServeClient.DoclingServeClientBuilder<C, B>> Nested classes/interfaces inherited from interface ai.docling.api.serve.DoclingServeApi
ai.docling.api.serve.DoclingServeApi.DoclingApiBuilder<T extends ai.docling.api.serve.DoclingServeApi,B extends ai.docling.api.serve.DoclingServeApi.DoclingApiBuilder<T, B>> -
Field Summary
Fields inherited from class ai.docling.client.serve.DoclingServeClient
DEFAULT_BASE_URL -
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.client.serve.DoclingServeClient
convertSource, execute, getResponse, health, logRequest, logResponse
-
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
-