Package io.quarkus.devui.runtime.mcp
Class McpResponseWriter
java.lang.Object
io.quarkus.devui.runtime.mcp.McpResponseWriter
- All Implemented Interfaces:
JsonRpcResponseWriter
Write the response for MCP Call. Depending on the original method request, we might need to wrap this into an expected output
-
Constructor Summary
ConstructorsConstructorDescriptionMcpResponseWriter(io.vertx.core.http.HttpServerResponse response, JsonMapper jsonMapper, String requestMethodName) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()decorateObject(Object object, MessageType messageType) io.vertx.core.http.HttpServerResponsebooleanisClosed()booleanisOpen()void
-
Constructor Details
-
McpResponseWriter
public McpResponseWriter(io.vertx.core.http.HttpServerResponse response, JsonMapper jsonMapper, String requestMethodName)
-
-
Method Details
-
write
- Specified by:
writein interfaceJsonRpcResponseWriter
-
close
public void close()- Specified by:
closein interfaceJsonRpcResponseWriter
-
isOpen
public boolean isOpen()- Specified by:
isOpenin interfaceJsonRpcResponseWriter
-
isClosed
public boolean isClosed()- Specified by:
isClosedin interfaceJsonRpcResponseWriter
-
getResponse
public io.vertx.core.http.HttpServerResponse getResponse() -
decorateObject
- Specified by:
decorateObjectin interfaceJsonRpcResponseWriter
-