Class DoclingServeJackson3Client.Builder
- All Implemented Interfaces:
ai.docling.api.serve.DoclingServeApi.DoclingApiBuilder<DoclingServeJackson3Client,DoclingServeJackson3Client.Builder>
- Enclosing class:
- DoclingServeJackson3Client
DoclingServeJackson3Client.
This builder extends DoclingServeClient.DoclingServeClientBuilder, allowing customization of common client
parameters such as base URL and HTTP client, while also providing additional functionality
specific to JSON mapping via a JsonMapper.Builder.
Instances of this builder can be initialized either as a new builder or based on an
existing DoclingServeJackson3Client.
This class is not publicly instantiable; use DoclingServeJackson3Client.builder()
or DoclingServeJackson3Client.toBuilder() to obtain a builder instance.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds and returns a newDoclingServeJackson3Clientinstance with the configured properties.jsonParser(tools.jackson.databind.json.JsonMapper.Builder jsonMapperBuilder) Sets the JSON mapper builder to be used for creating the JSON mapper.Methods inherited from class ai.docling.client.serve.DoclingServeClient.DoclingServeClientBuilder
baseUrl, baseUrl, httpClientBuilder, logRequests, logResponsesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ai.docling.api.serve.DoclingServeApi.DoclingApiBuilder
logRequests, logResponses
-
Method Details
-
jsonParser
public DoclingServeJackson3Client.Builder jsonParser(tools.jackson.databind.json.JsonMapper.Builder jsonMapperBuilder) Sets the JSON mapper builder to be used for creating the JSON mapper.This allows customization of JSON serialization and deserialization behavior, such as configuring features, modules, or property naming strategies.
- Parameters:
jsonMapperBuilder- theJsonMapper.Builderto use- Returns:
- this
DoclingServeJackson3Client.Builderinstance for method chaining
-
build
Builds and returns a newDoclingServeJackson3Clientinstance with the configured properties.This method validates all required parameters and constructs the client.
- Returns:
- a new
DoclingServeJackson3Clientinstance - Throws:
IllegalArgumentException- if any required parameter is null
-