Enum Class HttpAdapterType

java.lang.Object
java.lang.Enum<HttpAdapterType>
io.apicurio.registry.client.common.HttpAdapterType
All Implemented Interfaces:
Serializable, Comparable<HttpAdapterType>, Constable

public enum HttpAdapterType extends Enum<HttpAdapterType>
Defines the HTTP adapter type to use for registry client communication. This allows users to choose between different HTTP client implementations based on their requirements and environment constraints.
  • Enum Constant Details

    • VERTX

      public static final HttpAdapterType VERTX
      Use Vert.x WebClient for HTTP communication. This is the full-featured option with built-in OAuth2 support via vertx-auth-oauth2. Recommended for high-throughput applications and when Vert.x is already in use. Requires: kiota-http-vertx, vertx-auth-oauth2
    • JDK

      public static final HttpAdapterType JDK
      Use JDK 11+ HttpClient for HTTP communication. This is a lightweight option with minimal dependencies. Better for simple applications or environments with classpath constraints (e.g., GraalVM native images, certain classloader scenarios). Requires: kiota-http-jdk
    • AUTO

      public static final HttpAdapterType AUTO
      Auto-detect the available adapter at runtime. Prefers Vert.x if available (for backward compatibility), falls back to JDK adapter. This is the default behavior.
  • Method Details

    • values

      public static HttpAdapterType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static HttpAdapterType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null