Class CreateTaskPushNotificationConfigResponse
java.lang.Object
org.a2aproject.sdk.jsonrpc.common.wrappers.A2AResponse<org.a2aproject.sdk.spec.TaskPushNotificationConfig>
org.a2aproject.sdk.jsonrpc.common.wrappers.CreateTaskPushNotificationConfigResponse
- All Implemented Interfaces:
A2AMessage
public final class CreateTaskPushNotificationConfigResponse
extends A2AResponse<org.a2aproject.sdk.spec.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).
- See Also:
-
for the corresponding requestfor the configuration structurefor the error when unsupported- A2A Protocol Specification
-
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
ConstructorsConstructorDescriptionCreateTaskPushNotificationConfigResponse(Object id, org.a2aproject.sdk.spec.A2AError error) Constructs error response.CreateTaskPushNotificationConfigResponse(Object id, org.a2aproject.sdk.spec.TaskPushNotificationConfig result) Constructs success response.CreateTaskPushNotificationConfigResponse(String jsonrpc, Object id, org.a2aproject.sdk.spec.TaskPushNotificationConfig result, org.a2aproject.sdk.spec.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, org.a2aproject.sdk.spec.TaskPushNotificationConfig result, org.a2aproject.sdk.spec.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
public CreateTaskPushNotificationConfigResponse(Object id, org.a2aproject.sdk.spec.TaskPushNotificationConfig result) Constructs success response.- Parameters:
id- the request IDresult- the push notification configuration
-