public class HandlerFactory
extends java.lang.Object
Attention This class gets generated at build time and changes based on the class files needed by included schemas
Modifier and Type | Method and Description |
---|---|
static java.util.Optional<DBRequestHandler> |
getDBRequestHandler(io.vertx.core.Vertx vertx,
java.lang.String methodName,
java.lang.String packageName,
io.vertx.core.json.JsonObject config,
io.vertx.core.json.JsonObject handlerResults)
Retrieves a handler for an incoming (http) request Typically the handler interacts with the eventbus and returns results
|
static java.util.Optional<AsyncDominoJNX<io.vertx.core.json.JsonObject>> |
getDbRequestImpl(io.vertx.core.Vertx vertx,
io.vertx.core.json.JsonObject body,
java.lang.String className)
Instantiates a AsyncDominoJNX for executing a DBRequest
|
static io.vertx.ext.web.handler.impl.BodyHandlerImpl |
getHandlerForIncomingRequest(io.vertx.core.Vertx vertx,
KeepApiInfo method,
boolean useDefaultIfMissing,
java.lang.String packageName,
io.vertx.core.json.JsonObject config,
io.vertx.core.json.JsonObject missing)
Retrieves a HTTP handler for incoming OpenAPI spec routes
|
static java.lang.Class<?> |
getInstance(java.lang.String className,
boolean useDefaultIfMissing,
io.vertx.core.json.JsonObject config)
Gets a class or the default class if missing
|
public static java.util.Optional<DBRequestHandler> getDBRequestHandler(@Nonnull io.vertx.core.Vertx vertx, @Nonnull java.lang.String methodName, @Nonnull java.lang.String packageName, @Nonnull io.vertx.core.json.JsonObject config, @Nonnull io.vertx.core.json.JsonObject handlerResults)
Retrieves a handler for an incoming (http) request Typically the handler interacts with the eventbus and returns results
vertx
- The event loopmethodName
- packageName
- config
-
"package" : "com.hcl.domino.keep.handlers",
"defaultClass" :
"com.hcl.domino.keep.handlers.DefaultJsonHandler"
handlerResults
- public static java.util.Optional<AsyncDominoJNX<io.vertx.core.json.JsonObject>> getDbRequestImpl(io.vertx.core.Vertx vertx, io.vertx.core.json.JsonObject body, java.lang.String className)
Instantiates a AsyncDominoJNX for executing a DBRequest
vertx
- Vertx event runtimebody
- a request body to contain all incoming parametersclassName
- class to instantiatepublic static io.vertx.ext.web.handler.impl.BodyHandlerImpl getHandlerForIncomingRequest(@Nonnull io.vertx.core.Vertx vertx, @Nonnull KeepApiInfo method, boolean useDefaultIfMissing, java.lang.String packageName, io.vertx.core.json.JsonObject config, io.vertx.core.json.JsonObject missing)
Retrieves a HTTP handler for incoming OpenAPI spec routes
vertx
- method
- useDefaultIfMissing
- packageName
- config
- missing
- public static java.lang.Class<?> getInstance(@Nonnull java.lang.String className, boolean useDefaultIfMissing, @Nonnull io.vertx.core.json.JsonObject config)
Gets a class or the default class if missing
className
- name of classuseDefaultIfMissing
- can the default be usedconfig
- configuration setting