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 ID
  • listTasks - List tasks with filtering
  • cancelTask - Cancel task execution
  • getTaskPushNotificationConfig - Get push notification config
  • setTaskPushNotificationConfig - Create push notification config
  • listTaskPushNotificationConfigs - List push notification configs
  • deleteTaskPushNotificationConfig - Delete push notification config
See Also:
  • Classes
    Class
    Description
    JSON-RPC 2.0 transport handler for processing A2A protocol requests over HTTP.