Package net.bluemind.core.rest.base
Class RestRootHandler
java.lang.Object
net.bluemind.core.rest.base.RestRootHandler
- All Implemented Interfaces:
IRestBusHandler
,IRestCallHandler
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
static final class
-
Constructor Summary
ConstructorDescriptionRestRootHandler
(io.vertx.core.Vertx vertx) RestRootHandler
(io.vertx.core.Vertx vertx, boolean directExec) -
Method Summary
Modifier and TypeMethodDescriptionvoid
call
(RestRequest request, AsyncHandler<RestResponse> responseHandler) executor()
<T> io.vertx.core.Future
<io.vertx.core.eventbus.MessageConsumer<T>> register
(RestRequest request, 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) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.bluemind.core.rest.base.IRestCallHandler
name
-
Constructor Details
-
RestRootHandler
public RestRootHandler(io.vertx.core.Vertx vertx) -
RestRootHandler
public RestRootHandler(io.vertx.core.Vertx vertx, boolean directExec)
-
-
Method Details
-
executor
-
call
- Specified by:
call
in interfaceIRestCallHandler
-
register
public <T> io.vertx.core.Future<io.vertx.core.eventbus.MessageConsumer<T>> register(RestRequest request, Supplier<io.vertx.core.Handler<io.vertx.core.eventbus.Message<T>>> handlerSupplier, io.vertx.core.Handler<ServerFault> reject) - Specified by:
register
in interfaceIRestBusHandler
-
sendEvent
- Specified by:
sendEvent
in interfaceIRestBusHandler
-
sendEvent
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) - Specified by:
sendEvent
in interfaceIRestBusHandler
-