Package io.a2a.server.requesthandlers
Class DefaultRequestHandler
java.lang.Object
io.a2a.server.requesthandlers.DefaultRequestHandler
- All Implemented Interfaces:
RequestHandler
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultRequestHandler(AgentExecutor agentExecutor, TaskStore taskStore, QueueManager queueManager, PushNotificationConfigStore pushConfigStore, PushNotificationSender pushSender, Executor executor) -
Method Summary
Modifier and TypeMethodDescriptiononCancelTask(TaskIdParams params) voidonGetTask(TaskQueryParams params) onMessageSend(MessageSendParams params) onMessageSendStream(MessageSendParams params) onResubscribeToTask(TaskIdParams params)
-
Constructor Details
-
DefaultRequestHandler
@Inject public DefaultRequestHandler(AgentExecutor agentExecutor, TaskStore taskStore, QueueManager queueManager, PushNotificationConfigStore pushConfigStore, PushNotificationSender pushSender, Executor executor)
-
-
Method Details
-
onGetTask
- Specified by:
onGetTaskin interfaceRequestHandler- Throws:
JSONRPCError
-
onCancelTask
- Specified by:
onCancelTaskin interfaceRequestHandler- Throws:
JSONRPCError
-
onMessageSend
- Specified by:
onMessageSendin interfaceRequestHandler- Throws:
JSONRPCError
-
onMessageSendStream
public Flow.Publisher<StreamingEventKind> onMessageSendStream(MessageSendParams params) throws JSONRPCError - Specified by:
onMessageSendStreamin interfaceRequestHandler- Throws:
JSONRPCError
-
onSetTaskPushNotificationConfig
public TaskPushNotificationConfig onSetTaskPushNotificationConfig(TaskPushNotificationConfig params) throws JSONRPCError - Specified by:
onSetTaskPushNotificationConfigin interfaceRequestHandler- Throws:
JSONRPCError
-
onGetTaskPushNotificationConfig
public TaskPushNotificationConfig onGetTaskPushNotificationConfig(GetTaskPushNotificationConfigParams params) throws JSONRPCError - Specified by:
onGetTaskPushNotificationConfigin interfaceRequestHandler- Throws:
JSONRPCError
-
onResubscribeToTask
public Flow.Publisher<StreamingEventKind> onResubscribeToTask(TaskIdParams params) throws JSONRPCError - Specified by:
onResubscribeToTaskin interfaceRequestHandler- Throws:
JSONRPCError
-
onListTaskPushNotificationConfig
public List<TaskPushNotificationConfig> onListTaskPushNotificationConfig(ListTaskPushNotificationConfigParams params) throws JSONRPCError - Specified by:
onListTaskPushNotificationConfigin interfaceRequestHandler- Throws:
JSONRPCError
-
onDeleteTaskPushNotificationConfig
- Specified by:
onDeleteTaskPushNotificationConfigin interfaceRequestHandler
-