Package server

Class AbstractRestAPI

java.lang.Object
server.AbstractRestAPI
Direct Known Subclasses:
UserService

public abstract class AbstractRestAPI extends Object
  • Constructor Details

    • AbstractRestAPI

      public AbstractRestAPI(io.vertx.core.Vertx vertx, int port, String localhost)
  • Method Details

    • getPort

      public int getPort()
    • getHost

      public String 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)