Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- A2ACardResolver - Class in org.a2aproject.sdk.client.http
-
Utility for fetching agent cards from A2A agents.
- A2ACardResolver.Builder - Class in org.a2aproject.sdk.client.http
-
Builder for creating A2ACardResolver instances with a fluent API.
- A2AHttpClient - Interface in org.a2aproject.sdk.client.http
-
HTTP client interface for making HTTP requests to A2A agents.
- A2AHttpClient.Builder<T extends A2AHttpClient.Builder<T>> - Interface in org.a2aproject.sdk.client.http
-
Base builder interface for HTTP requests.
- A2AHttpClient.DeleteBuilder - Interface in org.a2aproject.sdk.client.http
-
Builder for HTTP DELETE requests.
- A2AHttpClient.GetBuilder - Interface in org.a2aproject.sdk.client.http
-
Builder for HTTP GET requests.
- A2AHttpClient.PostBuilder - Interface in org.a2aproject.sdk.client.http
-
Builder for HTTP POST requests.
- A2AHttpClientFactory - Class in org.a2aproject.sdk.client.http
-
Factory for creating
A2AHttpClientinstances using the ServiceLoader mechanism. - A2AHttpClientProvider - Interface in org.a2aproject.sdk.client.http
-
Service provider interface for creating
A2AHttpClientinstances. - A2AHttpHeaders - Interface in org.a2aproject.sdk.client.http
-
Read-only abstraction over HTTP response headers.
- A2AHttpResponse - Interface in org.a2aproject.sdk.client.http
-
HTTP response wrapper containing status code and response body.
- ACCEPT - Static variable in interface org.a2aproject.sdk.client.http.A2AHttpClient
-
HTTP Accept header name.
- addHeader(String, String) - Method in interface org.a2aproject.sdk.client.http.A2AHttpClient.Builder
-
Adds a single HTTP header to the request.
- addHeaders(Map<String, String>) - Method in interface org.a2aproject.sdk.client.http.A2AHttpClient.Builder
-
Adds multiple HTTP headers to the request.
- agentCardPath(String) - Method in class org.a2aproject.sdk.client.http.A2ACardResolver.Builder
-
Sets a custom agent card path relative to the base URL.
- allValues(String) - Method in interface org.a2aproject.sdk.client.http.A2AHttpHeaders
-
Returns all values for the given header name.
- APPLICATION_JSON - Static variable in interface org.a2aproject.sdk.client.http.A2AHttpClient
-
JSON content type value.
- authHeader(String, String) - Method in class org.a2aproject.sdk.client.http.A2ACardResolver.Builder
-
Adds a single authentication header.
- authHeaders(Map<String, String>) - Method in class org.a2aproject.sdk.client.http.A2ACardResolver.Builder
-
Sets the authentication headers to use when fetching the agent card.
B
- baseUrl(String) - Method in class org.a2aproject.sdk.client.http.A2ACardResolver.Builder
-
Sets the base URL for the agent.
- body() - Method in interface org.a2aproject.sdk.client.http.A2AHttpResponse
-
Returns the response body content as a string.
- body(String) - Method in interface org.a2aproject.sdk.client.http.A2AHttpClient.PostBuilder
-
Sets the request body content.
- build() - Method in class org.a2aproject.sdk.client.http.A2ACardResolver.Builder
-
Builds the A2ACardResolver instance.
- builder() - Static method in class org.a2aproject.sdk.client.http.A2ACardResolver
-
Creates a new builder for constructing an A2ACardResolver.
C
- CONTENT_TYPE - Static variable in interface org.a2aproject.sdk.client.http.A2AHttpClient
-
HTTP Content-Type header name.
- create() - Static method in class org.a2aproject.sdk.client.http.A2AHttpClientFactory
-
Creates a new A2AHttpClient instance using the highest priority provider available.
- create() - Method in interface org.a2aproject.sdk.client.http.A2AHttpClientProvider
-
Creates a new instance of an A2AHttpClient.
- create() - Method in class org.a2aproject.sdk.client.http.JdkA2AHttpClientProvider
- create(String) - Static method in class org.a2aproject.sdk.client.http.A2AHttpClientFactory
-
Creates a new A2AHttpClient instance using a specific provider by name.
- createDelete() - Method in interface org.a2aproject.sdk.client.http.A2AHttpClient
-
Creates a builder for DELETE requests.
- createDelete() - Method in class org.a2aproject.sdk.client.http.JdkA2AHttpClient
- createGet() - Method in interface org.a2aproject.sdk.client.http.A2AHttpClient
-
Creates a builder for GET requests.
- createGet() - Method in class org.a2aproject.sdk.client.http.JdkA2AHttpClient
- createPost() - Method in interface org.a2aproject.sdk.client.http.A2AHttpClient
-
Creates a builder for POST requests.
- createPost() - Method in class org.a2aproject.sdk.client.http.JdkA2AHttpClient
D
- data() - Method in record class org.a2aproject.sdk.client.http.ServerSentEvent
-
Returns the value of the
datarecord component. - DEFAULT_EVENT_TYPE - Static variable in record class org.a2aproject.sdk.client.http.ServerSentEvent
-
Default event type per the SSE specification when no
event:field is present. - delete() - Method in interface org.a2aproject.sdk.client.http.A2AHttpClient.DeleteBuilder
-
Executes a synchronous DELETE request.
E
- EMPTY - Static variable in interface org.a2aproject.sdk.client.http.A2AHttpHeaders
-
Empty headers instance returned by default when headers are not available.
- equals(Object) - Method in record class org.a2aproject.sdk.client.http.ServerSentEvent
-
Indicates whether some other object is "equal to" this one.
- EVENT_STREAM - Static variable in interface org.a2aproject.sdk.client.http.A2AHttpClient
-
SSE event stream content type.
- eventType() - Method in record class org.a2aproject.sdk.client.http.ServerSentEvent
-
Returns the value of the
eventTyperecord component.
F
- firstValue(String) - Method in interface org.a2aproject.sdk.client.http.A2AHttpHeaders
-
Returns the first value for the given header name, or
nullif not present. - flush() - Method in class org.a2aproject.sdk.client.http.ServerSentEventParser
-
Dispatches any buffered data not yet followed by an empty line.
G
- get() - Method in interface org.a2aproject.sdk.client.http.A2AHttpClient.GetBuilder
-
Executes a synchronous GET request.
- getAgentCard() - Method in class org.a2aproject.sdk.client.http.A2ACardResolver
-
Fetches the agent card for this resolver's configured agent.
- getAsyncSSE(Consumer<ServerSentEvent>, Consumer<Throwable>, Runnable) - Method in interface org.a2aproject.sdk.client.http.A2AHttpClient.GetBuilder
-
Executes an asynchronous GET request expecting Server-Sent Events (SSE).
- getLastEventId() - Method in class org.a2aproject.sdk.client.http.ServerSentEventParser
-
Returns the last event ID received, or
nullif none. - getRetry() - Method in class org.a2aproject.sdk.client.http.ServerSentEventParser
-
Returns the reconnection interval in milliseconds from the last
retry:field, ornullif none.
H
- hashCode() - Method in record class org.a2aproject.sdk.client.http.ServerSentEvent
-
Returns a hash code value for this object.
- headers() - Method in interface org.a2aproject.sdk.client.http.A2AHttpResponse
-
Returns the HTTP response headers.
- httpClient(A2AHttpClient) - Method in class org.a2aproject.sdk.client.http.A2ACardResolver.Builder
-
Sets the HTTP client to use for fetching agent cards.
I
- id() - Method in record class org.a2aproject.sdk.client.http.ServerSentEvent
-
Returns the value of the
idrecord component.
J
- JdkA2AHttpClient - Class in org.a2aproject.sdk.client.http
-
Default HTTP client implementation using JDK 11+
HttpClient. - JdkA2AHttpClient() - Constructor for class org.a2aproject.sdk.client.http.JdkA2AHttpClient
-
Creates a new JDK-based HTTP client.
- JdkA2AHttpClient(HttpClient) - Constructor for class org.a2aproject.sdk.client.http.JdkA2AHttpClient
-
Creates a new JDK-based HTTP client using a caller-provided JDK
HttpClient. - JdkA2AHttpClientProvider - Class in org.a2aproject.sdk.client.http
-
Service provider for
JdkA2AHttpClient. - JdkA2AHttpClientProvider() - Constructor for class org.a2aproject.sdk.client.http.JdkA2AHttpClientProvider
N
- name() - Method in interface org.a2aproject.sdk.client.http.A2AHttpClientProvider
-
Returns the name of this provider for logging and debugging purposes.
- name() - Method in class org.a2aproject.sdk.client.http.JdkA2AHttpClientProvider
O
- of(Map<String, List<String>>) - Static method in interface org.a2aproject.sdk.client.http.A2AHttpHeaders
-
Creates an
A2AHttpHeadersinstance from a map of header name to value lists. - org.a2aproject.sdk.client.http - package org.a2aproject.sdk.client.http
-
HTTP client utilities for A2A protocol communication.
P
- post() - Method in interface org.a2aproject.sdk.client.http.A2AHttpClient.PostBuilder
-
Executes a synchronous POST request.
- postAsyncSSE(Consumer<ServerSentEvent>, Consumer<Throwable>, Runnable) - Method in interface org.a2aproject.sdk.client.http.A2AHttpClient.PostBuilder
-
Executes an asynchronous POST request expecting Server-Sent Events (SSE).
- priority() - Method in interface org.a2aproject.sdk.client.http.A2AHttpClientProvider
-
Returns the priority of this provider.
- priority() - Method in class org.a2aproject.sdk.client.http.JdkA2AHttpClientProvider
- processLine(String) - Method in class org.a2aproject.sdk.client.http.ServerSentEventParser
-
Processes a single line from the SSE stream.
R
- retry() - Method in record class org.a2aproject.sdk.client.http.ServerSentEvent
-
Returns the value of the
retryrecord component.
S
- ServerSentEvent - Record Class in org.a2aproject.sdk.client.http
-
Represents a parsed Server-Sent Event (SSE).
- ServerSentEvent(String) - Constructor for record class org.a2aproject.sdk.client.http.ServerSentEvent
- ServerSentEvent(String, String, String, Long) - Constructor for record class org.a2aproject.sdk.client.http.ServerSentEvent
-
Creates an instance of a
ServerSentEventrecord class. - ServerSentEventParser - Class in org.a2aproject.sdk.client.http
-
Streaming parser for Server-Sent Events (SSE).
- ServerSentEventParser(Consumer<ServerSentEvent>) - Constructor for class org.a2aproject.sdk.client.http.ServerSentEventParser
- ServerSentEventParser(Consumer<ServerSentEvent>, Consumer<Throwable>) - Constructor for class org.a2aproject.sdk.client.http.ServerSentEventParser
- status() - Method in interface org.a2aproject.sdk.client.http.A2AHttpResponse
-
Returns the HTTP status code.
- success() - Method in interface org.a2aproject.sdk.client.http.A2AHttpResponse
-
Indicates whether the request was successful.
T
- tenant(String) - Method in class org.a2aproject.sdk.client.http.A2ACardResolver.Builder
-
Sets the tenant path to use when fetching the agent card.
- toMap() - Method in interface org.a2aproject.sdk.client.http.A2AHttpHeaders
-
Returns an unmodifiable map of all headers.
- toString() - Method in record class org.a2aproject.sdk.client.http.ServerSentEvent
-
Returns a string representation of this record class.
U
- url(String) - Method in interface org.a2aproject.sdk.client.http.A2AHttpClient.Builder
-
Sets the target URL for the request.
All Classes and Interfaces|All Packages|Constant Field Values