Package org.mcpjava.server.resources
Interface ResourceContents
- All Superinterfaces:
MetaCarrier
- All Known Subinterfaces:
BlobResourceContents,TextResourceContents
public sealed interface ResourceContents
extends MetaCarrier
permits TextResourceContents, BlobResourceContents
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceBuilder for creating resource contents. -
Method Summary
Methods inherited from interface org.mcpjava.server.MetaCarrier
metadata
-
Method Details
-
uri
String uri()Returns the URI of this resource.- Returns:
- the URI of the resource
-
mimeType
Returns the MIME type of this resource.- Returns:
- the MIME type of the resource, if provided, otherwise an empty
Optional
-