Class ImplementationSerializable

java.lang.Object
com.mulesoft.connectors.mcp.internal.server.connection.ImplementationSerializable
All Implemented Interfaces:
Serializable

public final class ImplementationSerializable extends Object implements Serializable
See Also:
  • Constructor Details

    • ImplementationSerializable

      public ImplementationSerializable()
      Default no-argument constructor for serialization.
    • ImplementationSerializable

      public ImplementationSerializable(String name, String version)
      Constructor to create an instance with initial values.
  • Method Details

    • name

      public String name()
    • version

      public String version()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • fromOriginal

      public static ImplementationSerializable fromOriginal(io.modelcontextprotocol.spec.McpSchema.Implementation implementation)
      Creates an ImplementationSerializable from an Implementation
      Parameters:
      implementation - the Implementation to convert from
      Returns:
      a new ImplementationSerializable instance
    • toOriginal

      public io.modelcontextprotocol.spec.McpSchema.Implementation toOriginal()
      Converts this ImplementationSerializable to an Implementation
      Returns:
      a new Implementation instance