Package org.mcpjava.server.resources
Interface BlobResourceContents
- All Superinterfaces:
MetaCarrier,ResourceContents
The content of a resource which contains binary data.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceBuilder for creating binary resource contents. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]blob()The binary data of the resource.static BlobResourceContents.BuilderCreates a builder for aBlobResourceContentsstatic BlobResourceContentsCreates a newBlobResourceContentswith a URI and data.Methods inherited from interface org.mcpjava.server.MetaCarrier
metadataMethods inherited from interface org.mcpjava.server.resources.ResourceContents
mimeType, uri
-
Method Details
-
blob
byte[] blob()The binary data of the resource.- Returns:
- the data
-
of
Creates a newBlobResourceContentswith a URI and data.- Parameters:
uri- the resource URIdata- the binary content- Returns:
- the new blob resource
-
builder
Creates a builder for aBlobResourceContents- Parameters:
uri- the resource URIdata- the binary content- Returns:
- the new blob resource builder
-