Interface RequestHandler

All Known Implementing Classes:
AuthorizationRequestHandlerDecorator, DefaultRequestHandler

public interface RequestHandler
  • Method Details

    • onGetTask

      org.a2aproject.sdk.spec.Task onGetTask(org.a2aproject.sdk.spec.TaskQueryParams params, ServerCallContext context) throws org.a2aproject.sdk.spec.A2AError
      Throws:
      org.a2aproject.sdk.spec.A2AError
    • onListTasks

      org.a2aproject.sdk.jsonrpc.common.wrappers.ListTasksResult onListTasks(org.a2aproject.sdk.spec.ListTasksParams params, ServerCallContext context) throws org.a2aproject.sdk.spec.A2AError
      Throws:
      org.a2aproject.sdk.spec.A2AError
    • onCancelTask

      org.a2aproject.sdk.spec.Task onCancelTask(org.a2aproject.sdk.spec.CancelTaskParams params, ServerCallContext context) throws org.a2aproject.sdk.spec.A2AError
      Throws:
      org.a2aproject.sdk.spec.A2AError
    • onMessageSend

      org.a2aproject.sdk.spec.EventKind onMessageSend(org.a2aproject.sdk.spec.MessageSendParams params, ServerCallContext context) throws org.a2aproject.sdk.spec.A2AError
      Throws:
      org.a2aproject.sdk.spec.A2AError
    • onMessageSendStream

      Flow.Publisher<org.a2aproject.sdk.spec.StreamingEventKind> onMessageSendStream(org.a2aproject.sdk.spec.MessageSendParams params, ServerCallContext context) throws org.a2aproject.sdk.spec.A2AError
      Throws:
      org.a2aproject.sdk.spec.A2AError
    • onCreateTaskPushNotificationConfig

      org.a2aproject.sdk.spec.TaskPushNotificationConfig onCreateTaskPushNotificationConfig(org.a2aproject.sdk.spec.TaskPushNotificationConfig params, ServerCallContext context) throws org.a2aproject.sdk.spec.A2AError
      Throws:
      org.a2aproject.sdk.spec.A2AError
    • onGetTaskPushNotificationConfig

      org.a2aproject.sdk.spec.TaskPushNotificationConfig onGetTaskPushNotificationConfig(org.a2aproject.sdk.spec.GetTaskPushNotificationConfigParams params, ServerCallContext context) throws org.a2aproject.sdk.spec.A2AError
      Throws:
      org.a2aproject.sdk.spec.A2AError
    • onSubscribeToTask

      Flow.Publisher<org.a2aproject.sdk.spec.StreamingEventKind> onSubscribeToTask(org.a2aproject.sdk.spec.TaskIdParams params, ServerCallContext context) throws org.a2aproject.sdk.spec.A2AError
      Throws:
      org.a2aproject.sdk.spec.A2AError
    • onListTaskPushNotificationConfigs

      org.a2aproject.sdk.spec.ListTaskPushNotificationConfigsResult onListTaskPushNotificationConfigs(org.a2aproject.sdk.spec.ListTaskPushNotificationConfigsParams params, ServerCallContext context) throws org.a2aproject.sdk.spec.A2AError
      Throws:
      org.a2aproject.sdk.spec.A2AError
    • onDeleteTaskPushNotificationConfig

      void onDeleteTaskPushNotificationConfig(org.a2aproject.sdk.spec.DeleteTaskPushNotificationConfigParams params, ServerCallContext context) throws org.a2aproject.sdk.spec.A2AError
      Throws:
      org.a2aproject.sdk.spec.A2AError
    • authorizeTaskAccess

      void authorizeTaskAccess(@Nullable String requestedTaskId, ServerCallContext context, TaskOperation operation) throws org.a2aproject.sdk.spec.A2AError
      Throws:
      org.a2aproject.sdk.spec.A2AError