Class CallbackSpec

java.lang.Object
ai.docling.serve.api.convert.request.CallbackSpec

public class CallbackSpec extends Object
Represents a webhook callback specification for batch conversion progress notifications. When configured, the server sends POST requests to the specified URL with progress updates as documents are processed.
  • Method Details

    • builder

      public static @NonNull CallbackSpec.Builder builder()
    • toBuilder

      public @NonNull CallbackSpec.Builder toBuilder()
    • getUrl

      @NonNull public @NonNull URI getUrl()
      The webhook URL that receives POST progress updates.
      Returns:
      the webhook URL
    • getHeaders

      public Map<String,Object> getHeaders()
      Additional headers sent with callback requests.
      Returns:
      the additional headers
    • getCaCert

      public @Nullable String getCaCert()
      Custom CA certificate (PEM) for endpoint verification.
      Returns:
      the CA certificate in PEM format
    • toString

      public @NonNull String toString()
      Overrides:
      toString in class Object