public class RestRootHandler extends java.lang.Object implements IRestCallHandler, IRestBusHandler
Modifier and Type | Class and Description |
---|---|
static class |
RestRootHandler.TreePathLeaf |
static class |
RestRootHandler.TreePathNode |
Constructor and Description |
---|
RestRootHandler(io.vertx.core.Vertx vertx) |
RestRootHandler(io.vertx.core.Vertx vertx,
boolean directExec) |
Modifier and Type | Method and Description |
---|---|
void |
call(RestRequest request,
AsyncHandler<RestResponse> responseHandler) |
java.util.concurrent.ExecutorService |
executor() |
<T> io.vertx.core.Future<io.vertx.core.eventbus.MessageConsumer<T>> |
register(RestRequest request,
java.util.function.Supplier<io.vertx.core.Handler<io.vertx.core.eventbus.Message<T>>> handlerSupplier,
io.vertx.core.Handler<ServerFault> reject) |
void |
sendEvent(RestRequest request,
io.vertx.core.json.JsonObject evt) |
void |
sendEvent(RestRequest request,
io.vertx.core.json.JsonObject evt,
io.vertx.core.Handler<io.vertx.core.eventbus.Message<io.vertx.core.json.JsonObject>> handler) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
name
public RestRootHandler(io.vertx.core.Vertx vertx)
public RestRootHandler(io.vertx.core.Vertx vertx, boolean directExec)
public java.util.concurrent.ExecutorService executor()
public void call(RestRequest request, AsyncHandler<RestResponse> responseHandler)
call
in interface IRestCallHandler
public <T> io.vertx.core.Future<io.vertx.core.eventbus.MessageConsumer<T>> register(RestRequest request, java.util.function.Supplier<io.vertx.core.Handler<io.vertx.core.eventbus.Message<T>>> handlerSupplier, io.vertx.core.Handler<ServerFault> reject)
register
in interface IRestBusHandler
public void sendEvent(RestRequest request, io.vertx.core.json.JsonObject evt)
sendEvent
in interface IRestBusHandler
public void sendEvent(RestRequest request, io.vertx.core.json.JsonObject evt, io.vertx.core.Handler<io.vertx.core.eventbus.Message<io.vertx.core.json.JsonObject>> handler)
sendEvent
in interface IRestBusHandler
Copyright © 2021. All Rights Reserved.