vertx/src/main/java/eu/internetofus/common/vertx/AbstractServicesVerticle.java
/**
   * Create a web session client.
   *
   * @param vertx  event bus to use.
   * @param config configuration of the platform.
   *
   * @return the client with the session information.
   */
Create a web session client.
@param vertx  event bus to use.
@param config configuration of the platform.

@return the client with the session information.
Create a web session client . @param vertx event bus to use . @param config configuration of the platform . @return the client with the session information .
public static WebClientSession createWebClientSession(final Vertx vertx, final JsonObject config) {
    final var webClientConf = config.getJsonObject(WEB_CLIENT_CONF_KEY, new JsonObject());
    final var options = new WebClientOptions(webClientConf);
    final var client = WebClientSession.create(WebClient.create(vertx, options));
    final var apiKey = webClientConf.getString(WENET_COMPONENT_APIKEY_CONF_KEY, "UDEFINED");
    client.addHeader(WENET_COMPONENT_APIKEY_HEADER, apiKey);
    return client;
  }
public static WebClientSession createWebClientSession ( final Vertx vertx , final JsonObject config ) { final var webClientConf = config . getJsonObject ( WEB_CLIENT_CONF_KEY , new JsonObject ( ) ) ; final var options = new WebClientOptions ( webClientConf ) ; final var client = WebClientSession . create ( WebClient . create ( vertx , options ) ) ; final var apiKey = webClientConf . getString ( WENET_COMPONENT_APIKEY_CONF_KEY , "UDEFINED" ) ; client . addHeader ( WENET_COMPONENT_APIKEY_HEADER , apiKey ) ; return client ; }
Create a web session client.
Create a web session client .