Class McpResourceOutcome
java.lang.Object
org.apache.juneau.rest.server.mcp.McpResourceOutcome
Revision-neutral result of a
resources/read invocation.
Supersedes the wire-level ReadResourceResult bean.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe resource's payload contents.setContents(List<McpResourceContents> value) Sets the resource's payload contents.
-
Constructor Details
-
McpResourceOutcome
public McpResourceOutcome()
-
-
Method Details
-
getContents
The resource's payload contents.- Returns:
- The contents, or
null if not set. Anull 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 benull to unset the property.- Returns:
- This object.
-