Class GetTaskPushNotificationConfigResponse
java.lang.Object
org.a2aproject.sdk.jsonrpc.common.wrappers.A2AResponse<TaskPushNotificationConfig>
org.a2aproject.sdk.jsonrpc.common.wrappers.GetTaskPushNotificationConfigResponse
- All Implemented Interfaces:
A2AMessage
public final class GetTaskPushNotificationConfigResponse
extends A2AResponse<TaskPushNotificationConfig>
JSON-RPC response containing a task's push notification configuration.
This response returns the TaskPushNotificationConfig for the requested task,
showing the current push notification endpoint and authentication settings.
If no configuration exists or an error occurs, the error field will contain a
A2AError.
-
Field Summary
Fields inherited from class org.a2aproject.sdk.jsonrpc.common.wrappers.A2AResponse
error, id, jsonrpc, resultFields inherited from interface org.a2aproject.sdk.jsonrpc.common.wrappers.A2AMessage
JSONRPC_VERSION -
Constructor Summary
ConstructorsConstructorDescriptionGetTaskPushNotificationConfigResponse(Object id, A2AError error) Constructs error response.Constructs successful response.GetTaskPushNotificationConfigResponse(String jsonrpc, Object id, TaskPushNotificationConfig result, A2AError error) Constructs response with full parameters. -
Method Summary
Methods inherited from class org.a2aproject.sdk.jsonrpc.common.wrappers.A2AResponse
getError, getId, getJsonrpc, getResult
-
Constructor Details
-
GetTaskPushNotificationConfigResponse
public GetTaskPushNotificationConfigResponse(String jsonrpc, Object id, TaskPushNotificationConfig result, A2AError error) Constructs response with full parameters.- Parameters:
jsonrpc- the JSON-RPC versionid- the request IDresult- the push notification config resulterror- the error if any
-
GetTaskPushNotificationConfigResponse
Constructs error response.- Parameters:
id- the request IDerror- the error
-
GetTaskPushNotificationConfigResponse
Constructs successful response.- Parameters:
id- the request IDresult- the push notification config result
-