Uses of Class
org.a2aproject.sdk.server.ServerCallContext
Packages that use ServerCallContext
Package
Description
-
Uses of ServerCallContext in org.a2aproject.sdk.server.agentexecution
Methods in org.a2aproject.sdk.server.agentexecution that return ServerCallContextModifier and TypeMethodDescription@Nullable ServerCallContextRequestContext.getCallContext()Returns the server call context.Methods in org.a2aproject.sdk.server.agentexecution with parameters of type ServerCallContextModifier and TypeMethodDescriptionRequestContext.Builder.setServerCallContext(@Nullable ServerCallContext serverCallContext) -
Uses of ServerCallContext in org.a2aproject.sdk.server.auth
Methods in org.a2aproject.sdk.server.auth with parameters of type ServerCallContextModifier and TypeMethodDescriptionbooleanTaskAuthorizationProvider.checkCreate(ServerCallContext context, TaskOperation operation) Check whether the current user is allowed to create a new task.booleanTaskAuthorizationProvider.checkRead(ServerCallContext context, String taskId, TaskOperation operation) Check whether the current user is allowed to read the given task.static booleanTaskAuthorizationProvider.checkReadAccess(@Nullable TaskAuthorizationProvider provider, @Nullable ServerCallContext context, String taskId, TaskOperation operation) Fail-closed read-access check that handles absent provider and missing call context.booleanTaskAuthorizationProvider.checkWrite(ServerCallContext context, String taskId, TaskOperation operation) Check whether the current user is allowed to write to the given task.voidTaskAuthorizationProvider.recordOwnership(ServerCallContext context, String taskId, TaskOperation operation) Record that the current user owns the given task. -
Uses of ServerCallContext in org.a2aproject.sdk.server.extensions
Methods in org.a2aproject.sdk.server.extensions with parameters of type ServerCallContextModifier and TypeMethodDescriptionstatic voidA2AExtensions.validateRequiredExtensions(org.a2aproject.sdk.spec.AgentCard agentCard, ServerCallContext context) Validates that all required extensions declared in the AgentCard are requested by the client. -
Uses of ServerCallContext in org.a2aproject.sdk.server.requesthandlers
Methods in org.a2aproject.sdk.server.requesthandlers with parameters of type ServerCallContextModifier and TypeMethodDescriptionvoidAuthorizationRequestHandlerDecorator.authorizeTaskAccess(@Nullable String requestedTaskId, ServerCallContext context, TaskOperation operation) voidDefaultRequestHandler.authorizeTaskAccess(@Nullable String requestedTaskId, ServerCallContext context, TaskOperation operation) The authorization is done by the AuthorizationRequestHandlerDecoratorvoidRequestHandler.authorizeTaskAccess(@Nullable String requestedTaskId, ServerCallContext context, TaskOperation operation) org.a2aproject.sdk.spec.TaskAuthorizationRequestHandlerDecorator.onCancelTask(org.a2aproject.sdk.spec.CancelTaskParams params, ServerCallContext context) org.a2aproject.sdk.spec.TaskDefaultRequestHandler.onCancelTask(org.a2aproject.sdk.spec.CancelTaskParams params, ServerCallContext context) org.a2aproject.sdk.spec.TaskRequestHandler.onCancelTask(org.a2aproject.sdk.spec.CancelTaskParams params, ServerCallContext context) org.a2aproject.sdk.spec.TaskPushNotificationConfigAuthorizationRequestHandlerDecorator.onCreateTaskPushNotificationConfig(org.a2aproject.sdk.spec.TaskPushNotificationConfig params, ServerCallContext context) org.a2aproject.sdk.spec.TaskPushNotificationConfigDefaultRequestHandler.onCreateTaskPushNotificationConfig(org.a2aproject.sdk.spec.TaskPushNotificationConfig params, ServerCallContext context) org.a2aproject.sdk.spec.TaskPushNotificationConfigRequestHandler.onCreateTaskPushNotificationConfig(org.a2aproject.sdk.spec.TaskPushNotificationConfig params, ServerCallContext context) voidAuthorizationRequestHandlerDecorator.onDeleteTaskPushNotificationConfig(org.a2aproject.sdk.spec.DeleteTaskPushNotificationConfigParams params, ServerCallContext context) voidDefaultRequestHandler.onDeleteTaskPushNotificationConfig(org.a2aproject.sdk.spec.DeleteTaskPushNotificationConfigParams params, ServerCallContext context) voidRequestHandler.onDeleteTaskPushNotificationConfig(org.a2aproject.sdk.spec.DeleteTaskPushNotificationConfigParams params, ServerCallContext context) org.a2aproject.sdk.spec.TaskAuthorizationRequestHandlerDecorator.onGetTask(org.a2aproject.sdk.spec.TaskQueryParams params, ServerCallContext context) org.a2aproject.sdk.spec.TaskDefaultRequestHandler.onGetTask(org.a2aproject.sdk.spec.TaskQueryParams params, ServerCallContext context) org.a2aproject.sdk.spec.TaskRequestHandler.onGetTask(org.a2aproject.sdk.spec.TaskQueryParams params, ServerCallContext context) org.a2aproject.sdk.spec.TaskPushNotificationConfigAuthorizationRequestHandlerDecorator.onGetTaskPushNotificationConfig(org.a2aproject.sdk.spec.GetTaskPushNotificationConfigParams params, ServerCallContext context) org.a2aproject.sdk.spec.TaskPushNotificationConfigDefaultRequestHandler.onGetTaskPushNotificationConfig(org.a2aproject.sdk.spec.GetTaskPushNotificationConfigParams params, ServerCallContext context) org.a2aproject.sdk.spec.TaskPushNotificationConfigRequestHandler.onGetTaskPushNotificationConfig(org.a2aproject.sdk.spec.GetTaskPushNotificationConfigParams params, ServerCallContext context) org.a2aproject.sdk.spec.ListTaskPushNotificationConfigsResultAuthorizationRequestHandlerDecorator.onListTaskPushNotificationConfigs(org.a2aproject.sdk.spec.ListTaskPushNotificationConfigsParams params, ServerCallContext context) org.a2aproject.sdk.spec.ListTaskPushNotificationConfigsResultDefaultRequestHandler.onListTaskPushNotificationConfigs(org.a2aproject.sdk.spec.ListTaskPushNotificationConfigsParams params, ServerCallContext context) org.a2aproject.sdk.spec.ListTaskPushNotificationConfigsResultRequestHandler.onListTaskPushNotificationConfigs(org.a2aproject.sdk.spec.ListTaskPushNotificationConfigsParams params, ServerCallContext context) org.a2aproject.sdk.jsonrpc.common.wrappers.ListTasksResultAuthorizationRequestHandlerDecorator.onListTasks(org.a2aproject.sdk.spec.ListTasksParams params, ServerCallContext context) org.a2aproject.sdk.jsonrpc.common.wrappers.ListTasksResultDefaultRequestHandler.onListTasks(org.a2aproject.sdk.spec.ListTasksParams params, ServerCallContext context) org.a2aproject.sdk.jsonrpc.common.wrappers.ListTasksResultRequestHandler.onListTasks(org.a2aproject.sdk.spec.ListTasksParams params, ServerCallContext context) org.a2aproject.sdk.spec.EventKindAuthorizationRequestHandlerDecorator.onMessageSend(org.a2aproject.sdk.spec.MessageSendParams params, ServerCallContext context) org.a2aproject.sdk.spec.EventKindDefaultRequestHandler.onMessageSend(org.a2aproject.sdk.spec.MessageSendParams params, ServerCallContext context) org.a2aproject.sdk.spec.EventKindRequestHandler.onMessageSend(org.a2aproject.sdk.spec.MessageSendParams params, ServerCallContext context) Flow.Publisher<org.a2aproject.sdk.spec.StreamingEventKind>AuthorizationRequestHandlerDecorator.onMessageSendStream(org.a2aproject.sdk.spec.MessageSendParams params, ServerCallContext context) Flow.Publisher<org.a2aproject.sdk.spec.StreamingEventKind>DefaultRequestHandler.onMessageSendStream(org.a2aproject.sdk.spec.MessageSendParams params, ServerCallContext context) Flow.Publisher<org.a2aproject.sdk.spec.StreamingEventKind>RequestHandler.onMessageSendStream(org.a2aproject.sdk.spec.MessageSendParams params, ServerCallContext context) Flow.Publisher<org.a2aproject.sdk.spec.StreamingEventKind>AuthorizationRequestHandlerDecorator.onSubscribeToTask(org.a2aproject.sdk.spec.TaskIdParams params, ServerCallContext context) Flow.Publisher<org.a2aproject.sdk.spec.StreamingEventKind>DefaultRequestHandler.onSubscribeToTask(org.a2aproject.sdk.spec.TaskIdParams params, ServerCallContext context) Flow.Publisher<org.a2aproject.sdk.spec.StreamingEventKind>RequestHandler.onSubscribeToTask(org.a2aproject.sdk.spec.TaskIdParams params, ServerCallContext context) -
Uses of ServerCallContext in org.a2aproject.sdk.server.tasks
Methods in org.a2aproject.sdk.server.tasks with parameters of type ServerCallContextModifier and TypeMethodDescriptiondefault booleanTaskStore.isReadAuthorized(@Nullable TaskAuthorizationProvider provider, @Nullable ServerCallContext context, String taskId) Checks whether a task is authorized for reading during list operations.org.a2aproject.sdk.jsonrpc.common.wrappers.ListTasksResultInMemoryTaskStore.list(org.a2aproject.sdk.spec.ListTasksParams params, @Nullable ServerCallContext context) org.a2aproject.sdk.jsonrpc.common.wrappers.ListTasksResultTaskStore.list(org.a2aproject.sdk.spec.ListTasksParams params, @Nullable ServerCallContext context) List tasks with optional filtering and pagination. -
Uses of ServerCallContext in org.a2aproject.sdk.server.version
Methods in org.a2aproject.sdk.server.version with parameters of type ServerCallContextModifier and TypeMethodDescriptionstatic voidA2AVersionValidator.validateProtocolVersion(org.a2aproject.sdk.spec.AgentCard agentCard, ServerCallContext context) Validates that the client's requested protocol version is compatible with the agent's supported versions across all interfaces.