Package io.quarkus.devui.runtime.jsonrpc
Class JsonRpcCodec
- java.lang.Object
-
- io.quarkus.devui.runtime.jsonrpc.JsonRpcCodec
-
public final class JsonRpcCodec extends Object
-
-
Constructor Summary
Constructors Constructor Description JsonRpcCodec(JsonMapper jsonMapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JsonRpcRequest
readRequest(String json)
void
writeErrorResponse(io.vertx.core.http.ServerWebSocket socket, int id, String jsonRpcMethodName, Throwable exception)
void
writeMethodNotFoundResponse(io.vertx.core.http.ServerWebSocket socket, int id, String jsonRpcMethodName)
void
writeResponse(io.vertx.core.http.ServerWebSocket socket, int id, Object object, MessageType messageType)
-
-
-
Constructor Detail
-
JsonRpcCodec
public JsonRpcCodec(JsonMapper jsonMapper)
-
-
Method Detail
-
readRequest
public JsonRpcRequest readRequest(String json)
-
writeResponse
public void writeResponse(io.vertx.core.http.ServerWebSocket socket, int id, Object object, MessageType messageType)
-
writeMethodNotFoundResponse
public void writeMethodNotFoundResponse(io.vertx.core.http.ServerWebSocket socket, int id, String jsonRpcMethodName)
-
-