Package org.a2aproject.sdk.transport.jsonrpc.handler
@NullMarked
package org.a2aproject.sdk.transport.jsonrpc.handler
JSON-RPC transport handler implementations for the A2A protocol.
This package contains the core JSON-RPC handler that processes JSON-RPC 2.0 requests over HTTP and translates them to A2A protocol operations. It supports both blocking and streaming responses with proper JSON-RPC error handling.
JSON-RPC 2.0 Protocol
This implementation follows the JSON-RPC 2.0 specification, supporting:
- Request/response pairs with unique request IDs
- Error responses with code, message, and optional data
- Streaming via Server-Sent Events for applicable methods
Supported Methods
sendMessage- Send message (blocking)sendStreamingMessage- Send message (streaming)subscribeToTask- Subscribe to task updates (streaming)getTask- Get task by IDlistTasks- List tasks with filteringcancelTask- Cancel task executiongetTaskPushNotificationConfig- Get push notification configsetTaskPushNotificationConfig- Create push notification configlistTaskPushNotificationConfigs- List push notification configsdeleteTaskPushNotificationConfig- Delete push notification config
- See Also:
-
ClassesClassDescriptionJSON-RPC 2.0 transport handler for processing A2A protocol requests over HTTP.