vertx/src/main/java/eu/internetofus/common/vertx/ComponentClient.java
/**
   * Check if the head is defined.
   *
   * @param url to do the head request.
   *
   * @return the future with the response object.
   */
Check if the head is defined.
@param url to do the head request.

@return the future with the response object.
Check if the head is defined . @param url to do the head request . @return the future with the response object .
protected Future<Boolean> headWithAbsolute(final String url) {
    final Promise<Boolean> promise = Promise.promise();
    final var actionId = this.createActionId(HttpMethod.HEAD, url);
    Logger.trace("{} with {} STARTED", actionId);
    try {
      this.client.requestAbs(HttpMethod.HEAD, url).send().onSuccess(response -> {
        final var code = response.statusCode();
        final var success = Status.Family.familyOf(code) == Status.Family.SUCCESSFUL;
        promise.complete(success);
      }).onFailure(this.createRequestFailureHandler(promise, actionId));
    } catch (final Throwable throwable) {
      promise.tryFail(throwable);
    }
    return promise.future();
  }
protected Future < Boolean > headWithAbsolute ( final String url ) { final Promise < Boolean > promise = Promise . promise ( ) ; final var actionId = this . createActionId ( HttpMethod . HEAD , url ) ; Logger . trace ( "{} with {} STARTED" , actionId ) ; try { this . client . requestAbs ( HttpMethod . HEAD , url ) . send ( ) . onSuccess ( response -> { final var code = response . statusCode ( ) ; final var success = Status . Family . familyOf ( code ) == Status . Family . SUCCESSFUL ; promise . complete ( success ) ; } ) . onFailure ( this . createRequestFailureHandler ( promise , actionId ) ) ; } catch ( final Throwable throwable ) { promise . tryFail ( throwable ) ; } return promise . future ( ) ; }
Check if the head is defined.
Check if the head is defined .