Class JsonRpcRequestCreator

java.lang.Object
io.quarkus.devui.runtime.jsonrpc.JsonRpcRequestCreator

public class JsonRpcRequestCreator extends Object
  • Constructor Details

    • JsonRpcRequestCreator

      JsonRpcRequestCreator(JsonMapper jsonMapper)
  • Method Details

    • create

      public JsonRpcRequest create(io.vertx.core.json.JsonObject jsonObject)
      This creates a Request as is from Dev UI
      Parameters:
      jsonObject - the JsonObject from the JS
      Returns:
      JsonRpcRequest
    • mcpCreate

      public JsonRpcRequest mcpCreate(io.vertx.core.json.JsonObject jsonObject)
      This creates a Request from an MCP Client. It might contain meta data in the parameters that is not applicable for the Java method
      Parameters:
      jsonObject - the JsonObject from the MCP
      Returns:
      JsonRpcRequest
    • toJson

      public String toJson(JsonRpcRequest jsonRpcRequest)