Package io.a2a.server.requesthandlers
Interface RequestHandler
- All Known Implementing Classes:
DefaultRequestHandler
public interface RequestHandler
-
Method Summary
Modifier and TypeMethodDescriptiononCancelTask(TaskIdParams params, ServerCallContext context) voidonDeleteTaskPushNotificationConfig(DeleteTaskPushNotificationConfigParams params, ServerCallContext context) onGetTask(TaskQueryParams params, ServerCallContext context) onGetTaskPushNotificationConfig(GetTaskPushNotificationConfigParams params, ServerCallContext context) onListTaskPushNotificationConfig(ListTaskPushNotificationConfigParams params, ServerCallContext context) onMessageSend(MessageSendParams params, ServerCallContext context) onMessageSendStream(MessageSendParams params, ServerCallContext context) onResubscribeToTask(TaskIdParams params, ServerCallContext context) onSetTaskPushNotificationConfig(TaskPushNotificationConfig params, ServerCallContext context)
-
Method Details
-
onGetTask
- Throws:
JSONRPCError
-
onCancelTask
- Throws:
JSONRPCError
-
onMessageSend
- Throws:
JSONRPCError
-
onMessageSendStream
Flow.Publisher<StreamingEventKind> onMessageSendStream(MessageSendParams params, ServerCallContext context) throws JSONRPCError - Throws:
JSONRPCError
-
onSetTaskPushNotificationConfig
TaskPushNotificationConfig onSetTaskPushNotificationConfig(TaskPushNotificationConfig params, ServerCallContext context) throws JSONRPCError - Throws:
JSONRPCError
-
onGetTaskPushNotificationConfig
TaskPushNotificationConfig onGetTaskPushNotificationConfig(GetTaskPushNotificationConfigParams params, ServerCallContext context) throws JSONRPCError - Throws:
JSONRPCError
-
onResubscribeToTask
Flow.Publisher<StreamingEventKind> onResubscribeToTask(TaskIdParams params, ServerCallContext context) throws JSONRPCError - Throws:
JSONRPCError
-
onListTaskPushNotificationConfig
List<TaskPushNotificationConfig> onListTaskPushNotificationConfig(ListTaskPushNotificationConfigParams params, ServerCallContext context) throws JSONRPCError - Throws:
JSONRPCError
-
onDeleteTaskPushNotificationConfig
void onDeleteTaskPushNotificationConfig(DeleteTaskPushNotificationConfigParams params, ServerCallContext context) throws JSONRPCError - Throws:
JSONRPCError
-