Package org.mcpjava.server.resources
Interface ResourceContents.Builder<THIS extends ResourceContents.Builder<THIS>>
- Type Parameters:
THIS- the builder type
- All Superinterfaces:
MetaCarrier.Builder<THIS>
- All Known Subinterfaces:
BlobResourceContents.Builder,TextResourceContents.Builder
- Enclosing interface:
ResourceContents
public static interface ResourceContents.Builder<THIS extends ResourceContents.Builder<THIS>>
extends MetaCarrier.Builder<THIS>
Builder for creating resource contents. This interface shouldn't be used directly, one of its subclasses should be used instead.
-
Method Summary
Modifier and TypeMethodDescriptionsetMimeType(String mimeType) Sets the MIME type of the resourceMethods inherited from interface org.mcpjava.server.MetaCarrier.Builder
putMetadata, setMetadata
-
Method Details
-
setMimeType
Sets the MIME type of the resource- Parameters:
mimeType- the MIME type- Returns:
- this builder
-