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.

See Also:
  • Constructor Details

    • GetTaskPushNotificationConfigResponse

      public GetTaskPushNotificationConfigResponse(String jsonrpc, Object id, TaskPushNotificationConfig result, A2AError error)
      Constructs response with full parameters.
      Parameters:
      jsonrpc - the JSON-RPC version
      id - the request ID
      result - the push notification config result
      error - the error if any
    • GetTaskPushNotificationConfigResponse

      public GetTaskPushNotificationConfigResponse(Object id, A2AError error)
      Constructs error response.
      Parameters:
      id - the request ID
      error - the error
    • GetTaskPushNotificationConfigResponse

      public GetTaskPushNotificationConfigResponse(Object id, TaskPushNotificationConfig result)
      Constructs successful response.
      Parameters:
      id - the request ID
      result - the push notification config result