Interface RequestHandler
- All Known Implementing Classes:
AuthorizationRequestHandlerDecorator,DefaultRequestHandler,OpenTelemetryRequestHandlerDecorator
public interface RequestHandler
-
Method Summary
Modifier and TypeMethodDescriptiononCancelTask(CancelTaskParams params, ServerCallContext context) voidonDeleteTaskPushNotificationConfig(DeleteTaskPushNotificationConfigParams params, ServerCallContext context) onGetTask(TaskQueryParams params, ServerCallContext context) onGetTaskPushNotificationConfig(GetTaskPushNotificationConfigParams params, ServerCallContext context) onListTaskPushNotificationConfigs(ListTaskPushNotificationConfigsParams params, ServerCallContext context) onListTasks(ListTasksParams params, ServerCallContext context) onMessageSend(MessageSendParams params, ServerCallContext context) onMessageSendStream(MessageSendParams params, ServerCallContext context) onSubscribeToTask(TaskIdParams params, ServerCallContext context) voidvalidateRequestedTask(@Nullable String requestedTaskId)
-
Method Details
-
onGetTask
- Throws:
A2AError
-
onListTasks
- Throws:
A2AError
-
onCancelTask
- Throws:
A2AError
-
onMessageSend
- Throws:
A2AError
-
onMessageSendStream
Flow.Publisher<StreamingEventKind> onMessageSendStream(MessageSendParams params, ServerCallContext context) throws A2AError - Throws:
A2AError
-
onCreateTaskPushNotificationConfig
TaskPushNotificationConfig onCreateTaskPushNotificationConfig(TaskPushNotificationConfig params, ServerCallContext context) throws A2AError - Throws:
A2AError
-
onGetTaskPushNotificationConfig
TaskPushNotificationConfig onGetTaskPushNotificationConfig(GetTaskPushNotificationConfigParams params, ServerCallContext context) throws A2AError - Throws:
A2AError
-
onSubscribeToTask
Flow.Publisher<StreamingEventKind> onSubscribeToTask(TaskIdParams params, ServerCallContext context) throws A2AError - Throws:
A2AError
-
onListTaskPushNotificationConfigs
ListTaskPushNotificationConfigsResult onListTaskPushNotificationConfigs(ListTaskPushNotificationConfigsParams params, ServerCallContext context) throws A2AError - Throws:
A2AError
-
onDeleteTaskPushNotificationConfig
void onDeleteTaskPushNotificationConfig(DeleteTaskPushNotificationConfigParams params, ServerCallContext context) throws A2AError - Throws:
A2AError
-
validateRequestedTask
- Throws:
A2AError
-