Package org.mcpjava.server.resources
Interface TextResourceContents
- All Superinterfaces:
MetaCarrier,ResourceContents
The content of a resource which contains text data.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceBuilder for creating text resource contents. -
Method Summary
Modifier and TypeMethodDescriptionstatic TextResourceContents.BuilderCreates a builder for aTextResourceContentsstatic TextResourceContentsCreates a newTextResourceContentswith a URI and text.text()The text data in the resource.Methods inherited from interface org.mcpjava.server.MetaCarrier
metadataMethods inherited from interface org.mcpjava.server.resources.ResourceContents
mimeType, uri
-
Method Details
-
text
String text()The text data in the resource.- Returns:
- the data
-
of
Creates a newTextResourceContentswith a URI and text.- Parameters:
uri- the resource URItext- the text content- Returns:
- the new text resource
-
builder
Creates a builder for aTextResourceContents- Parameters:
uri- the resource URItext- the text content- Returns:
- the new text resource builder
-