Record Class McpMrtrCapabilityContext
java.lang.Object
java.lang.Record
org.apache.juneau.rest.server.mcp.v20260728.McpMrtrCapabilityContext
- Record Components:
elicitationSupported- Whether the original request's_meta.clientCapabilitiesincluded a non-null elicitationcapability.
Bean always stashed into the
BeanStore passed to a
tools/call/prompts/get/resources/read handler (both first-round and resume calls),
exposing whether the original request's client advertised MRTR/elicitation support.
Lets a handler pre-check and degrade (return a normal result or a domain error) instead of throwing
McpInputRequiredSignal into a dispatcher that would just reject it with
MISSING_REQUIRED_CLIENT_CAPABILITY — satisfying the spec's §4 "client's capability is
EXPOSED to handlers" requirement.
-
Constructor Summary
ConstructorsConstructorDescriptionMcpMrtrCapabilityContext(boolean elicitationSupported) Creates an instance of aMcpMrtrCapabilityContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theelicitationSupportedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
McpMrtrCapabilityContext
Creates an instance of aMcpMrtrCapabilityContextrecord class.- Parameters:
elicitationSupported- the value for theelicitationSupportedrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with '=='. -
elicitationSupported
Returns the value of theelicitationSupportedrecord component.- Returns:
- the value of the
elicitationSupportedrecord component
-