Class McpResourceSpec
java.lang.Object
org.apache.juneau.rest.server.mcp.McpResourceSpec
Revision-neutral resource descriptor returned from
resources/list.
Supersedes the wire-level Resource bean.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe human-readable resource description.The resource's media type.getName()The resource name.getSize()The resource's size in bytes.getTitle()The human-readable resource title.getUri()The resource URI.setDescription(String value) Sets the resource description.setMimeType(String value) Sets the resource's media type.Sets the resource name.Sets the resource's size in bytes.Sets the resource title.Sets the resource URI.
-
Constructor Details
-
McpResourceSpec
public McpResourceSpec()
-
-
Method Details
-
getUri
The resource URI.- Returns:
- The URI, or
null if not set.
-
setUri
Sets the resource URI.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object.
-
getName
The resource name.- Returns:
- The name, or
null if not set.
-
setName
Sets the resource name.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object.
-
getTitle
The human-readable resource title.- Returns:
- The title, or
null if not set.
-
setTitle
Sets the resource title.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object.
-
getDescription
The human-readable resource description.- Returns:
- The description, or
null if not set.
-
setDescription
Sets the resource description.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object.
-
getMimeType
The resource's media type.- Returns:
- The media type, or
null if not set.
-
setMimeType
Sets the resource's media type.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object.
-
getSize
The resource's size in bytes.- Returns:
- The size, or
null if not set.
-
setSize
Sets the resource's size in bytes.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object.
-