Class ResourceTemplate

java.lang.Object
org.apache.juneau.bean.mcp.v20250618.ResourceTemplate

@Marshalled public class ResourceTemplate extends Object
MCP resource-template descriptor (resources/templates/list entry).
  • Constructor Details

  • Method Details

    • getUriTemplate

      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 (for method chaining).
    • getName

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

      Sets the short name.
      Parameters:
      value - The new value. Can be null to unset the property.
      Returns:
      This object (for method chaining).
    • getTitle

      public String getTitle()
      Human-readable title.
      Returns:
      The title, or null if not set.
    • setTitle

      Sets the title.
      Parameters:
      value - The new value. Can be null to unset the property.
      Returns:
      This object (for method chaining).
    • getDescription

      Template description.
      Returns:
      The description, or null if not set.
    • setDescription

      Sets the description.
      Parameters:
      value - The new value. Can be null to unset the property.
      Returns:
      This object (for method chaining).
    • getMimeType

      public String getMimeType()
      MIME type hint for matching resources.
      Returns:
      The MIME type, or null if not set.
    • setMimeType

      Sets the MIME type.
      Parameters:
      value - The new value. Can be null to unset the property.
      Returns:
      This object (for method chaining).