Class McpResourceTemplateSpec
java.lang.Object
org.apache.juneau.rest.server.mcp.McpResourceTemplateSpec
Revision-neutral resource-template descriptor returned from
resources/templates/list.
This is a static descriptor: it carries no read callback, template matcher, cache hint, or dated-revision
wire import. It is paired with a read callback and optional per-variable completers by
McpResourceTemplateHandler.descriptor(), or registered on its own as a listing-only template via
McpServerConfig.addResourceTemplate(McpResourceTemplateSpec...).
Supersedes the wire-level ResourceTemplate bean.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe human-readable template description.The media type of resources matching this template.getName()The template name.getTitle()The human-readable template title.The URI template (RFC 6570) describing matching resource URIs.setDescription(String value) Sets the template description.setMimeType(String value) Sets the media type of resources matching this template.Sets the template name.Sets the template title.setUriTemplate(String value) Sets the URI template.
-
Constructor Details
-
McpResourceTemplateSpec
public McpResourceTemplateSpec()
-
-
Method Details
-
getUriTemplate
The URI template (RFC 6570) describing matching resource URIs.- Returns:
- The URI template, or
null if not set.
-
setUriTemplate
Sets the URI template.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object.
-
getName
The template name.- Returns:
- The name, or
null if not set.
-
setName
Sets the template name.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object.
-
getTitle
The human-readable template title.- Returns:
- The title, or
null if not set.
-
setTitle
Sets the template title.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object.
-
getDescription
The human-readable template description.- Returns:
- The description, or
null if not set.
-
setDescription
Sets the template description.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object.
-
getMimeType
The media type of resources matching this template.- Returns:
- The media type, or
null if not set.
-
setMimeType
Sets the media type of resources matching this template.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object.
-