Package org.mcpjava.server.content
Interface EmbeddedResource.Builder
- All Superinterfaces:
MetaCarrier.Builder<EmbeddedResource.Builder>
- Enclosing interface:
EmbeddedResource
public static interface EmbeddedResource.Builder
extends MetaCarrier.Builder<EmbeddedResource.Builder>
Builder for an embedded resource
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the embedded resource contentputResourceMeta(String key, Object value) Adds a key value pair to the_metaentry of theresource contentssetAnnotations(Annotations annotations) Sets the annotations for the contentsetMimeType(String mimeType) Sets the MIME type of the embedded resourceMethods inherited from interface org.mcpjava.server.MetaCarrier.Builder
putMetadata, setMetadata
-
Method Details
-
setAnnotations
Sets the annotations for the content- Parameters:
annotations- the annotations- Returns:
- this builder
-
setMimeType
Sets the MIME type of the embedded resource- Parameters:
mimeType- the MIME type- Returns:
- this builder
-
putResourceMeta
Adds a key value pair to the_metaentry of theresource contents- Parameters:
key- the meta keyvalue- the value- Returns:
- this builder
-
build
EmbeddedResource build()Builds the embedded resource content- Returns:
- the embedded resource content
-