vertx/src/main/java/eu/internetofus/common/vertx/ComponentClient.java
/**
   * Create a consumer for a {@link Status#NO_CONTENT} HTTP response.
   *
   * @param actionId identifier of the action.
   *
   * @return the consumer for the no content.
   */
Create a consumer for a  Status#NO_CONTENT HTTP response.
@param actionId identifier of the action.

@return the consumer for the no content.
Create a consumer for a Status#NO_CONTENT HTTP response . @param actionId identifier of the action . @return the consumer for the no content .
protected BiConsumer<Handler<AsyncResult<Void>>, HttpResponse<Buffer>> noContentConsumer(
      @NotNull final String actionId) {
    return (handler, response) -> {
      if (response.statusCode() != Status.NO_CONTENT.getStatusCode()) {
        Logger.trace("[{}] FAILED response contains {}", () -> actionId, () -> response.bodyAsString());
        handler.handle(Future.failedFuture("The response has content"));
      } else {
        Logger.trace("[{}] SUCCESS without content", actionId);
        handler.handle(Future.succeededFuture());
      }
    };
  }
protected BiConsumer < Handler < AsyncResult < Void > > , HttpResponse < Buffer > > noContentConsumer ( @ NotNull final String actionId ) { return ( handler , response ) -> { if ( response . statusCode ( ) != Status . NO_CONTENT . getStatusCode ( ) ) { Logger . trace ( "[{}] FAILED response contains {}" , ( ) -> actionId , ( ) -> response . bodyAsString ( ) ) ; handler . handle ( Future . failedFuture ( "The response has content" ) ) ; } else { Logger . trace ( "[{}] SUCCESS without content" , actionId ) ; handler . handle ( Future . succeededFuture ( ) ) ; } } ; }
Create a consumer for a {@link Status#NO_CONTENT} HTTP response.
Create a consumer for a { @link Status#NO_CONTENT } HTTP response .