Class RegistryClientRequestAdapterFactory

java.lang.Object
io.apicurio.registry.client.common.RegistryClientRequestAdapterFactory

public class RegistryClientRequestAdapterFactory extends Object
Factory class containing shared logic for creating Registry clients (v2 and v3). This class provides all the common functionality for authentication, SSL/TLS configuration, and retry logic. Supports both Vert.x and JDK HTTP adapters.

HTTP adapter implementations are loaded via reflection from separate modules (adapter-vertx and adapter-jdk). This isolation ensures that consumers only need the adapter they actually use on the classpath, which is critical for GraalVM native image builds where unused adapter classes would otherwise cause build failures.

See Also:
  • Field Details

    • VERTX_INSTANCE

      public static final String VERTX_INSTANCE
      Internal property key for storing a Vertx instance. This is not typically set via string properties but rather programmatically when creating the configuration. When provided, this Vertx instance will be used for HTTP client connections instead of creating a new instance.

      Recommended: Provide your own managed Vertx instance to ensure proper lifecycle management and resource cleanup.

      See Also:
  • Constructor Details

    • RegistryClientRequestAdapterFactory

      public RegistryClientRequestAdapterFactory()
  • Method Details

    • createRequestAdapter

      public static com.microsoft.kiota.RequestAdapter createRequestAdapter(RegistryClientOptions options, Version version)
      Creates a RequestAdapter configured with authentication, SSL/TLS, and retry settings from the provided options.
      Parameters:
      options - the configuration options
      version - the API version (V2 or V3)
      Returns:
      a fully configured RequestAdapter
      Throws:
      IllegalArgumentException - if options are invalid
      IllegalStateException - if required adapter is not available