Package io.quarkus.devui.runtime.comms
Class JsonRpcRouter
java.lang.Object
io.quarkus.devui.runtime.comms.JsonRpcRouter
Route JsonRPC message to the correct method
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) org.jboss.logging.Logger(package private) McpDevUIJsonRpcService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSocket(io.vertx.core.http.ServerWebSocket socket) Optional<io.quarkus.assistant.runtime.dev.Assistant> voidinitializeCodec(JsonMapper jsonMapper) booleanisEnabled(JsonRpcRequest jsonRpcRequest) (package private) voidonStart(io.quarkus.runtime.StartupEvent ev) voidpopulateJsonRpcEndpoints(Map<String, JsonRpcMethod> runtimeMethods, Map<String, JsonRpcMethod> runtimeSubscriptions, Map<String, JsonRpcMethod> deploymentMethods, Map<String, JsonRpcMethod> deploymentSubscriptions, Map<String, JsonRpcMethod> recordedMethods, Map<String, JsonRpcMethod> recordedSubscriptions) This gets populated at build time so the the routes knows all json-rpc endpoints.voidroute(JsonRpcRequest jsonRpcRequest, JsonRpcResponseWriter jrrw)
-
Field Details
-
mcpDevUIJsonRpcService
-
logger
@Inject org.jboss.logging.Logger logger
-
-
Constructor Details
-
JsonRpcRouter
public JsonRpcRouter()
-
-
Method Details
-
defaultAssistant
-
populateJsonRpcEndpoints
public void populateJsonRpcEndpoints(Map<String, JsonRpcMethod> runtimeMethods, Map<String, JsonRpcMethod> runtimeSubscriptions, Map<String, JsonRpcMethod> deploymentMethods, Map<String, JsonRpcMethod> deploymentSubscriptions, Map<String, JsonRpcMethod> recordedMethods, Map<String, JsonRpcMethod> recordedSubscriptions) This gets populated at build time so the the routes knows all json-rpc endpoints.- Parameters:
runtimeMethods-runtimeSubscriptions-deploymentMethods-deploymentSubscriptions-recordedMethods-recordedSubscriptions-
-
initializeCodec
-
addSocket
public void addSocket(io.vertx.core.http.ServerWebSocket socket) -
getJsonRpcCodec
-
getRuntimeMethodsMap
-
getRuntimeSubscriptionMap
-
getDeploymentMethodsMap
-
getDeploymentSubscriptionsMap
-
getRecordedMethodsMap
-
getRecordedSubscriptionsMap
-
onStart
void onStart(@Observes io.quarkus.runtime.StartupEvent ev) -
route
-
isEnabled
-
getJsonMapper
-