Package io.quarkiverse.mcp.server.test
Record Class McpAssured.InitResult
java.lang.Object
java.lang.Record
io.quarkiverse.mcp.server.test.McpAssured.InitResult
- Enclosing class:
- McpAssured
public static record McpAssured.InitResult(String protocolVersion, String serverName, String serverTitle, String serverVersion, List<McpAssured.ServerCapability> capabilities, String instructions, io.quarkiverse.mcp.server.Implementation implementation, io.vertx.core.json.JsonObject meta)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionInitResult(String protocolVersion, String serverName, String serverTitle, String serverVersion, List<McpAssured.ServerCapability> capabilities, String instructions, io.quarkiverse.mcp.server.Implementation implementation, io.vertx.core.json.JsonObject meta) Creates an instance of aInitResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecapabilitiesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.io.quarkiverse.mcp.server.ImplementationReturns the value of theimplementationrecord component.Returns the value of theinstructionsrecord component.io.vertx.core.json.JsonObjectmeta()Returns the value of themetarecord component.Returns the value of theprotocolVersionrecord component.Returns the value of theserverNamerecord component.Returns the value of theserverTitlerecord component.Returns the value of theserverVersionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
InitResult
public InitResult(String protocolVersion, String serverName, String serverTitle, String serverVersion, List<McpAssured.ServerCapability> capabilities, String instructions, io.quarkiverse.mcp.server.Implementation implementation, io.vertx.core.json.JsonObject meta) Creates an instance of aInitResultrecord class.- Parameters:
protocolVersion- the value for theprotocolVersionrecord componentserverName- the value for theserverNamerecord componentserverTitle- the value for theserverTitlerecord componentserverVersion- the value for theserverVersionrecord componentcapabilities- the value for thecapabilitiesrecord componentinstructions- the value for theinstructionsrecord componentimplementation- the value for theimplementationrecord componentmeta- the value for themetarecord 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
public final int 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 withObjects::equals(Object,Object). -
protocolVersion
Returns the value of theprotocolVersionrecord component.- Returns:
- the value of the
protocolVersionrecord component
-
serverName
Returns the value of theserverNamerecord component.- Returns:
- the value of the
serverNamerecord component
-
serverTitle
Returns the value of theserverTitlerecord component.- Returns:
- the value of the
serverTitlerecord component
-
serverVersion
Returns the value of theserverVersionrecord component.- Returns:
- the value of the
serverVersionrecord component
-
capabilities
Returns the value of thecapabilitiesrecord component.- Returns:
- the value of the
capabilitiesrecord component
-
instructions
Returns the value of theinstructionsrecord component.- Returns:
- the value of the
instructionsrecord component
-
implementation
public io.quarkiverse.mcp.server.Implementation implementation()Returns the value of theimplementationrecord component.- Returns:
- the value of the
implementationrecord component
-
meta
public io.vertx.core.json.JsonObject meta()Returns the value of themetarecord component.- Returns:
- the value of the
metarecord component
-