public class DBRequestHandler
extends java.lang.Object
implements io.vertx.core.Handler<io.vertx.core.eventbus.Message<io.vertx.core.json.JsonObject>>
Adapter class to match incoming request to classes or send a default “Sorry mate” message back
Modifier and Type | Field and Description |
---|---|
protected io.vertx.core.Vertx |
vertx |
Modifier | Constructor and Description |
---|---|
protected |
DBRequestHandler(io.vertx.core.Vertx vertx,
java.lang.String className) |
Modifier and Type | Method and Description |
---|---|
static DBRequestHandler |
get(io.vertx.core.Vertx vertx,
java.lang.String className) |
java.lang.String |
getClassName() |
void |
handle(io.vertx.core.eventbus.Message<io.vertx.core.json.JsonObject> incoming) |
protected DBRequestHandler(@Nonnull io.vertx.core.Vertx vertx, @Nonnull java.lang.String className)
vertx
- className
- public static DBRequestHandler get(@Nonnull io.vertx.core.Vertx vertx, @Nonnull java.lang.String className)
vertx
- className
- a class where we need an instancepublic java.lang.String getClassName()
public void handle(io.vertx.core.eventbus.Message<io.vertx.core.json.JsonObject> incoming)
handle
in interface io.vertx.core.Handler<io.vertx.core.eventbus.Message<io.vertx.core.json.JsonObject>>