Package server
Class AbstractRestAPI
java.lang.Object
server.AbstractRestAPI
- Direct Known Subclasses:
UserService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CompletableFuture<io.vertx.core.json.JsonObject>askService(io.vertx.core.json.JsonObject requestBody, io.vertx.core.http.HttpMethod method, String requestURI) protected CompletableFuture<io.vertx.core.json.JsonObject>askServiceWithFuture(io.vertx.core.json.JsonObject requestBody, io.vertx.core.http.HttpMethod method, String requestURI, CompletableFuture<io.vertx.core.json.JsonObject> future) protected CompletableFuture<io.vertx.core.json.JsonObject>askServiceWithFutureNoBody(io.vertx.core.http.HttpMethod method, String requestURI, CompletableFuture<io.vertx.core.json.JsonObject> future) getHost()intgetPort()
-
Constructor Details
-
AbstractRestAPI
-
-
Method Details
-
getPort
public int getPort() -
getHost
-
askService
protected CompletableFuture<io.vertx.core.json.JsonObject> askService(io.vertx.core.json.JsonObject requestBody, io.vertx.core.http.HttpMethod method, String requestURI) -
askServiceWithFuture
protected CompletableFuture<io.vertx.core.json.JsonObject> askServiceWithFuture(io.vertx.core.json.JsonObject requestBody, io.vertx.core.http.HttpMethod method, String requestURI, CompletableFuture<io.vertx.core.json.JsonObject> future) -
askServiceWithFutureNoBody
protected CompletableFuture<io.vertx.core.json.JsonObject> askServiceWithFutureNoBody(io.vertx.core.http.HttpMethod method, String requestURI, CompletableFuture<io.vertx.core.json.JsonObject> future)
-