Enum Class HttpAdapterType
- All Implemented Interfaces:
Serializable,Comparable<HttpAdapterType>,Constable
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic HttpAdapterTypeReturns the enum constant of this class with the specified name.static HttpAdapterType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
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
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
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
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 nameNullPointerException- if the argument is null
-