Class McpResourceTemplateSpec

java.lang.Object
org.apache.juneau.rest.server.mcp.McpResourceTemplateSpec

public class McpResourceTemplateSpec extends Object
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 Details

  • 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 be null to unset the property.
      Returns:
      This object.
    • getName

      public String getName()
      The template name.
      Returns:
      The name, or null if not set.
    • setName

      Sets the template name.
      Parameters:
      value - The new value. Can be null to unset the property.
      Returns:
      This object.
    • getTitle

      public String 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 be null 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 be null to unset the property.
      Returns:
      This object.
    • getMimeType

      public String 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 be null to unset the property.
      Returns:
      This object.