Package org.a2aproject.sdk.server
Interface TransportMetadata
- All Known Implementing Classes:
QuarkusGrpcTransportMetadata,QuarkusGrpcTransportMetadata_v0_3,QuarkusJSONRPCTransportMetadata,QuarkusJSONRPCTransportMetadata_v0_3,QuarkusRestTransportMetadata
public interface TransportMetadata
Interface for transport endpoint implementations to provide metadata about their transport.
This is used by the validation system to discover available transports on the classpath.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the transport protocol this endpoint supports.default booleanChecks if this transport endpoint is currently available/functional.
-
Method Details
-
getTransportProtocol
String getTransportProtocol()Returns the transport protocol this endpoint supports.- Returns:
- the transport protocol
-
isAvailable
default boolean isAvailable()Checks if this transport endpoint is currently available/functional. This can be used for runtime availability checks beyond just classpath presence.- Returns:
- true if the transport is available, false otherwise
-