Class DoclingServeClient.DoclingServeClientBuilder<C extends DoclingServeClient,B extends DoclingServeClient.DoclingServeClientBuilder<C,B>>

java.lang.Object
ai.docling.serve.client.DoclingServeClient.DoclingServeClientBuilder<C,B>
Type Parameters:
C - the type of DoclingServeClient being built
B - the type of the builder implementation
All Implemented Interfaces:
ai.docling.serve.api.DoclingServeApi.DoclingApiBuilder<C,B>
Direct Known Subclasses:
DoclingServeJackson2Client.Builder, DoclingServeJackson3Client.Builder
Enclosing class:
DoclingServeClient

public abstract static class DoclingServeClient.DoclingServeClientBuilder<C extends DoclingServeClient,B extends DoclingServeClient.DoclingServeClientBuilder<C,B>> extends Object implements ai.docling.serve.api.DoclingServeApi.DoclingApiBuilder<C,B>
Abstract base class for building instances of DoclingServeClient.

This builder class provides methods for configuring shared properties such as the base URL and the HTTP client. Concrete subclasses may extend this builder to add additional configuration options.

  • Constructor Details

    • DoclingServeClientBuilder

      protected DoclingServeClientBuilder()
      Protected constructor for use by subclasses of DoclingServeClient.DoclingServeClientBuilder.

      Initializes a new instance of the builder with default configuration values. This constructor ensures that the builder cannot be instantiated directly, promoting proper use and extension by subclasses.

    • DoclingServeClientBuilder

      protected DoclingServeClientBuilder(DoclingServeClient doclingClient)
      Initializes a new DoclingServeClient.DoclingServeClientBuilder instance using the configuration from the provided DoclingServeClient.
      Parameters:
      doclingClient - the DoclingServeClient whose configuration (e.g., base URL) will be used to initialize the builder
  • Method Details