Class QuarkusJSONRPCTransportMetadata

java.lang.Object
org.a2aproject.sdk.server.apps.quarkus.QuarkusJSONRPCTransportMetadata
All Implemented Interfaces:
TransportMetadata

public class QuarkusJSONRPCTransportMetadata extends Object implements TransportMetadata
Transport metadata provider for the Quarkus JSON-RPC reference implementation.

This class identifies the transport protocol used by the JSON-RPC server implementation. It is automatically discovered by the A2A server framework through CDI to provide protocol-specific metadata to components that need to distinguish between different transport implementations.

CDI Integration

This bean is automatically registered and can be injected where transport protocol information is needed:

@Inject
TransportMetadata transportMetadata;

public void logProtocol() {
    String protocol = transportMetadata.getTransportProtocol();
    // Returns "jsonrpc" for this implementation
}

Use Cases

  • Identifying the active transport protocol in multi-transport deployments
  • Conditional logic based on transport capabilities
  • Logging and metrics collection with transport-specific tags
  • Protocol-specific error handling or feature detection
See Also:
  • Constructor Details

    • QuarkusJSONRPCTransportMetadata

      public QuarkusJSONRPCTransportMetadata()
  • Method Details

    • getTransportProtocol

      public String getTransportProtocol()
      Returns the transport protocol identifier for JSON-RPC.
      Specified by:
      getTransportProtocol in interface TransportMetadata
      Returns:
      the string "jsonrpc" identifying this transport implementation