Class CreateTaskPushNotificationConfigResponse
java.lang.Object
org.a2aproject.sdk.jsonrpc.common.wrappers.A2AResponse<TaskPushNotificationConfig>
org.a2aproject.sdk.jsonrpc.common.wrappers.CreateTaskPushNotificationConfigResponse
- All Implemented Interfaces:
A2AMessage
public final class CreateTaskPushNotificationConfigResponse
extends A2AResponse<TaskPushNotificationConfig>
JSON-RPC response confirming push notification configuration for a task.
This response confirms that the push notification configuration has been successfully
registered for the task. The result contains the full TaskPushNotificationConfig
as stored by the agent.
If push notifications are not supported or an error occurs, the error field will contain
a A2AError (e.g., PushNotificationNotSupportedError).
-
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
ConstructorsConstructorDescriptionConstructs error response.Constructs success response.CreateTaskPushNotificationConfigResponse(String jsonrpc, Object id, TaskPushNotificationConfig result, A2AError error) Constructs response with all parameters. -
Method Summary
Methods inherited from class org.a2aproject.sdk.jsonrpc.common.wrappers.A2AResponse
getError, getId, getJsonrpc, getResult
-
Constructor Details
-
CreateTaskPushNotificationConfigResponse
public CreateTaskPushNotificationConfigResponse(String jsonrpc, Object id, TaskPushNotificationConfig result, A2AError error) Constructs response with all parameters.- Parameters:
jsonrpc- the JSON-RPC versionid- the request IDresult- the push notification configurationerror- the error (if any)
-
CreateTaskPushNotificationConfigResponse
Constructs error response.- Parameters:
id- the request IDerror- the error
-
CreateTaskPushNotificationConfigResponse
Constructs success response.- Parameters:
id- the request IDresult- the push notification configuration
-