Class AndroidA2AHttpClientProvider
java.lang.Object
org.a2aproject.sdk.client.http.android.AndroidA2AHttpClientProvider
- All Implemented Interfaces:
A2AHttpClientProvider
Service provider for
AndroidA2AHttpClient.-
Constructor Details
-
AndroidA2AHttpClientProvider
public AndroidA2AHttpClientProvider()
-
-
Method Details
-
create
Description copied from interface:A2AHttpClientProviderCreates a new instance of an A2AHttpClient.- Specified by:
createin interfaceA2AHttpClientProvider- Returns:
- a new A2AHttpClient instance
-
priority
public int priority()Description copied from interface:A2AHttpClientProviderReturns the priority of this provider. Higher priority providers are tried first; the first one whoseA2AHttpClientProvider.create()succeeds is used.Built-in priorities (for reference when choosing a custom value):
- CdiA2AHttpClient: 200 (CDI-provided bean, when a container and bean are active)
- AndroidA2AHttpClient: 110 (Android runtime only)
- VertxA2AHttpClient: 100 (when
vertx-web-clientis on the classpath) - JdkA2AHttpClient: 0 (always available, last resort)
- Specified by:
priorityin interfaceA2AHttpClientProvider- Returns:
- the priority value (higher is better)
-
name
Description copied from interface:A2AHttpClientProviderReturns the name of this provider for logging and debugging purposes.- Specified by:
namein interfaceA2AHttpClientProvider- Returns:
- the provider name
-