Uses of Record Class
io.modelcontextprotocol.spec.McpSchema.Resource
Packages that use McpSchema.Resource
Package
Description
-
Uses of McpSchema.Resource in io.modelcontextprotocol.client
Methods in io.modelcontextprotocol.client with parameters of type McpSchema.ResourceModifier and TypeMethodDescriptionreactor.core.publisher.Mono<McpSchema.ReadResourceResult>McpAsyncClient.readResource(McpSchema.Resource resource) Reads the content of a specific resource identified by the provided Resource object.McpSyncClient.readResource(McpSchema.Resource resource) Send a resources/read request.Method parameters in io.modelcontextprotocol.client with type arguments of type McpSchema.ResourceModifier and TypeMethodDescriptionMcpClient.AsyncSpec.resourcesChangeConsumer(Function<List<McpSchema.Resource>, reactor.core.publisher.Mono<Void>> resourcesChangeConsumer) Adds a consumer to be notified when the available resources change.McpClient.SyncSpec.resourcesChangeConsumer(Consumer<List<McpSchema.Resource>> resourcesChangeConsumer) Adds a consumer to be notified when the available resources change. -
Uses of McpSchema.Resource in io.modelcontextprotocol.server
Methods in io.modelcontextprotocol.server that return McpSchema.ResourceModifier and TypeMethodDescriptionMcpServerFeatures.AsyncResourceRegistration.resource()Deprecated.Returns the value of theresourcerecord component.McpServerFeatures.AsyncResourceSpecification.resource()Returns the value of theresourcerecord component.McpServerFeatures.SyncResourceRegistration.resource()Deprecated.Returns the value of theresourcerecord component.McpServerFeatures.SyncResourceSpecification.resource()Returns the value of theresourcerecord component.Constructors in io.modelcontextprotocol.server with parameters of type McpSchema.ResourceModifierConstructorDescriptionAsyncResourceRegistration(McpSchema.Resource resource, Function<McpSchema.ReadResourceRequest, reactor.core.publisher.Mono<McpSchema.ReadResourceResult>> readHandler) Deprecated.Creates an instance of aAsyncResourceRegistrationrecord class.AsyncResourceSpecification(McpSchema.Resource resource, BiFunction<McpAsyncServerExchange, McpSchema.ReadResourceRequest, reactor.core.publisher.Mono<McpSchema.ReadResourceResult>> readHandler) Creates an instance of aAsyncResourceSpecificationrecord class.SyncResourceRegistration(McpSchema.Resource resource, Function<McpSchema.ReadResourceRequest, McpSchema.ReadResourceResult> readHandler) Deprecated.Creates an instance of aSyncResourceRegistrationrecord class.SyncResourceSpecification(McpSchema.Resource resource, BiFunction<McpSyncServerExchange, McpSchema.ReadResourceRequest, McpSchema.ReadResourceResult> readHandler) Creates an instance of aSyncResourceSpecificationrecord class. -
Uses of McpSchema.Resource in io.modelcontextprotocol.spec
Methods in io.modelcontextprotocol.spec that return types with arguments of type McpSchema.ResourceModifier and TypeMethodDescriptionMcpSchema.ListResourcesResult.resources()Returns the value of theresourcesrecord component.Constructor parameters in io.modelcontextprotocol.spec with type arguments of type McpSchema.ResourceModifierConstructorDescriptionListResourcesResult(List<McpSchema.Resource> resources, String nextCursor) Creates an instance of aListResourcesResultrecord class.