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
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final class -
Constructor Summary
ConstructorsConstructorDescriptionRestRootHandler(io.vertx.core.Vertx vertx) RestRootHandler(io.vertx.core.Vertx vertx, boolean directExec) -
Method Summary
Modifier and TypeMethodDescriptionvoidcall(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) voidsendEvent(RestRequest request, io.vertx.core.json.JsonObject evt) voidsendEvent(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, waitMethods 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:
callin 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:
registerin interfaceIRestBusHandler
-
sendEvent
- Specified by:
sendEventin 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:
sendEventin interfaceIRestBusHandler
-