Class JdkA2AHttpClientProvider

java.lang.Object
org.a2aproject.sdk.client.http.JdkA2AHttpClientProvider
All Implemented Interfaces:
A2AHttpClientProvider

public final class JdkA2AHttpClientProvider extends Object implements A2AHttpClientProvider
Service provider for JdkA2AHttpClient.

This provider has the lowest priority (0) and serves as the fallback implementation when no other providers are available. The JDK HTTP client is always available as it uses only standard Java libraries.

  • Constructor Details

    • JdkA2AHttpClientProvider

      public JdkA2AHttpClientProvider()
  • Method Details

    • create

      public A2AHttpClient create()
      Description copied from interface: A2AHttpClientProvider
      Creates a new instance of an A2AHttpClient.
      Specified by:
      create in interface A2AHttpClientProvider
      Returns:
      a new A2AHttpClient instance
    • priority

      public int priority()
      Description copied from interface: A2AHttpClientProvider
      Returns the priority of this provider. Higher priority providers are preferred over lower priority ones.

      Default priorities:

      • JdkA2AHttpClient: 0 (fallback)
      • VertxA2AHttpClient: 100 (preferred when available)
      Specified by:
      priority in interface A2AHttpClientProvider
      Returns:
      the priority value (higher is better)
    • name

      public String name()
      Description copied from interface: A2AHttpClientProvider
      Returns the name of this provider for logging and debugging purposes.
      Specified by:
      name in interface A2AHttpClientProvider
      Returns:
      the provider name