Class SyncMcpResourceProvider
java.lang.Object
org.springframework.ai.mcp.annotation.provider.resource.SyncMcpResourceProvider
- Author:
- Christian Tzolov, Alexandros Pappas, Vadzim Shurmialiou, Craig Walls
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Method[]doGetClassMethods(Object bean) Returns the methods of the given bean class.List<io.modelcontextprotocol.server.McpServerFeatures.SyncResourceSpecification> List<io.modelcontextprotocol.server.McpServerFeatures.SyncResourceTemplateSpecification>
-
Constructor Details
-
SyncMcpResourceProvider
-
-
Method Details
-
getResourceSpecifications
public List<io.modelcontextprotocol.server.McpServerFeatures.SyncResourceSpecification> getResourceSpecifications() -
getResourceTemplateSpecifications
public List<io.modelcontextprotocol.server.McpServerFeatures.SyncResourceTemplateSpecification> getResourceTemplateSpecifications() -
doGetClassMethods
Returns the methods of the given bean class.- Parameters:
bean- the bean instance- Returns:
- the methods of the bean class
-