Package io.a2a.spec
Class JSONRPCResponse<T>
java.lang.Object
io.a2a.spec.JSONRPCResponse<T>
- All Implemented Interfaces:
JSONRPCMessage
- Direct Known Subclasses:
CancelTaskResponse,DeleteTaskPushNotificationConfigResponse,GetAuthenticatedExtendedCardResponse,GetTaskPushNotificationConfigResponse,GetTaskResponse,JSONRPCErrorResponse,ListTaskPushNotificationConfigResponse,SendMessageResponse,SendStreamingMessageResponse,SetTaskPushNotificationConfigResponse
public abstract sealed class JSONRPCResponse<T>
extends Object
implements JSONRPCMessage
permits SendStreamingMessageResponse, GetTaskResponse, CancelTaskResponse, SetTaskPushNotificationConfigResponse, GetTaskPushNotificationConfigResponse, SendMessageResponse, DeleteTaskPushNotificationConfigResponse, ListTaskPushNotificationConfigResponse, JSONRPCErrorResponse, GetAuthenticatedExtendedCardResponse
Represents a JSONRPC response.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JSONRPCErrorprotected Objectprotected Stringprotected TFields inherited from interface io.a2a.spec.JSONRPCMessage
JSONRPC_VERSION -
Constructor Summary
ConstructorsConstructorDescriptionJSONRPCResponse(String jsonrpc, Object id, T result, JSONRPCError error, Class<T> resultType) -
Method Summary
-
Field Details
-
jsonrpc
-
id
-
result
-
error
-
-
Constructor Details
-
JSONRPCResponse
public JSONRPCResponse() -
JSONRPCResponse
-
-
Method Details
-
getJsonrpc
- Specified by:
getJsonrpcin interfaceJSONRPCMessage
-
getId
- Specified by:
getIdin interfaceJSONRPCMessage
-
getResult
-
getError
-