Class RegistryClientRequestAdapterFactory
java.lang.Object
io.apicurio.registry.client.common.RegistryClientRequestAdapterFactory
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final StringInternal property key for storing a Vertx instance. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.microsoft.kiota.RequestAdaptercreateRequestAdapter(RegistryClientOptions options, Version version) Creates a RequestAdapter configured with authentication, SSL/TLS, and retry settings from the provided options.
-
Field Details
-
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 optionsversion- the API version (V2 or V3)- Returns:
- a fully configured RequestAdapter
- Throws:
IllegalArgumentException- if options are invalidIllegalStateException- if required adapter is not available
-