Class McpResourceSpec

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

public class McpResourceSpec extends Object
Revision-neutral resource descriptor returned from resources/list.

Supersedes the wire-level Resource bean.

  • Constructor Details

  • Method Details

    • getUri

      public String getUri()
      The resource URI.
      Returns:
      The URI, or null if not set.
    • setUri

      public McpResourceSpec setUri(String value)
      Sets the resource URI.
      Parameters:
      value - The new value. Can be null to unset the property.
      Returns:
      This object.
    • getName

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

      public McpResourceSpec setName(String value)
      Sets the resource name.
      Parameters:
      value - The new value. Can be null to unset the property.
      Returns:
      This object.
    • getTitle

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

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

      public Long getSize()
      The resource's size in bytes.
      Returns:
      The size, or null if not set.
    • setSize

      public McpResourceSpec setSize(Long value)
      Sets the resource's size in bytes.
      Parameters:
      value - The new value. Can be null to unset the property.
      Returns:
      This object.