Class JdkAdapterFactory

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

public final class JdkAdapterFactory extends Object
Factory class for creating JDK HTTP-based RequestAdapter instances.

This class is isolated from the main RegistryClientRequestAdapterFactory to ensure that JDK HTTP adapter classes (kiota-http-jdk) are only loaded when the JDK adapter is explicitly selected. This prevents NoClassDefFoundError when using the Vert.x adapter without kiota-http-jdk on the classpath, and enables GraalVM native image builds.

  • Method Details

    • createAdapter

      public static com.microsoft.kiota.RequestAdapter createAdapter(RegistryClientOptions options)
      Creates a JDK HTTP-based RequestAdapter configured with authentication, SSL/TLS, and other settings from the provided options.
      Parameters:
      options - the configuration options
      Returns:
      a fully configured JDK RequestAdapter