Class McpResourceOutcome

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

public class McpResourceOutcome extends Object
Revision-neutral result of a resources/read invocation.

Supersedes the wire-level ReadResourceResult bean.

  • Constructor Details

  • Method Details

    • getContents

      The resource's payload contents.
      Returns:
      The contents, or null if not set. A null value is distinct from an empty list: it means the wire property is omitted entirely.
    • setContents

      Sets the resource's payload contents.
      Parameters:
      value - The new value. Can be null to unset the property.
      Returns:
      This object.