/** * Sends an HTTP OPTIONS request to the server with the specified options, specifying a response handler to receive * the response * @param options the request options * @param responseHandler the response handler * @return a reference to this, so the API can be used fluently */ public io.vertx.rxjava.core.http.HttpClient optionsNow(RequestOptions options, Handler<AsyncResult<io.vertx.rxjava.core.http.HttpClientResponse>> responseHandler) { delegate.optionsNow(options, new Handler<AsyncResult<io.vertx.core.http.HttpClientResponse>>() { public void handle(AsyncResult<io.vertx.core.http.HttpClientResponse> ar) { if (ar.succeeded()) { responseHandler.handle(io.vertx.core.Future.succeededFuture(io.vertx.rxjava.core.http.HttpClientResponse.newInstance(ar.result()))); } else { responseHandler.handle(io.vertx.core.Future.failedFuture(ar.cause())); } } }); return this; }
/** * Sends an HTTP OPTIONS request to the server at the default host and port, specifying a response handler to receive * the response * @param requestURI the relative URI * @param responseHandler the response handler * @return a reference to this, so the API can be used fluently */ public io.vertx.rxjava.core.http.HttpClient optionsNow(String requestURI, Handler<AsyncResult<io.vertx.rxjava.core.http.HttpClientResponse>> responseHandler) { delegate.optionsNow(requestURI, new Handler<AsyncResult<io.vertx.core.http.HttpClientResponse>>() { public void handle(AsyncResult<io.vertx.core.http.HttpClientResponse> ar) { if (ar.succeeded()) { responseHandler.handle(io.vertx.core.Future.succeededFuture(io.vertx.rxjava.core.http.HttpClientResponse.newInstance(ar.result()))); } else { responseHandler.handle(io.vertx.core.Future.failedFuture(ar.cause())); } } }); return this; }
/** * Sends an HTTP OPTIONS request to the server at the specified host and default port, specifying a response handler to receive * the response * @param host the host * @param requestURI the relative URI * @param responseHandler the response handler * @return a reference to this, so the API can be used fluently */ public io.vertx.rxjava.core.http.HttpClient optionsNow(String host, String requestURI, Handler<AsyncResult<io.vertx.rxjava.core.http.HttpClientResponse>> responseHandler) { delegate.optionsNow(host, requestURI, new Handler<AsyncResult<io.vertx.core.http.HttpClientResponse>>() { public void handle(AsyncResult<io.vertx.core.http.HttpClientResponse> ar) { if (ar.succeeded()) { responseHandler.handle(io.vertx.core.Future.succeededFuture(io.vertx.rxjava.core.http.HttpClientResponse.newInstance(ar.result()))); } else { responseHandler.handle(io.vertx.core.Future.failedFuture(ar.cause())); } } }); return this; }
/** * Sends an HTTP OPTIONS request to the server at the specified host and port, specifying a response handler to receive * the response * @param port the port * @param host the host * @param requestURI the relative URI * @param responseHandler the response handler * @return a reference to this, so the API can be used fluently */ public io.vertx.rxjava.core.http.HttpClient optionsNow(int port, String host, String requestURI, Handler<AsyncResult<io.vertx.rxjava.core.http.HttpClientResponse>> responseHandler) { delegate.optionsNow(port, host, requestURI, new Handler<AsyncResult<io.vertx.core.http.HttpClientResponse>>() { public void handle(AsyncResult<io.vertx.core.http.HttpClientResponse> ar) { if (ar.succeeded()) { responseHandler.handle(io.vertx.core.Future.succeededFuture(io.vertx.rxjava.core.http.HttpClientResponse.newInstance(ar.result()))); } else { responseHandler.handle(io.vertx.core.Future.failedFuture(ar.cause())); } } }); return this; }
/** * Sends an HTTP OPTIONS request to the server at the default host and port, specifying a response handler to receive * the response * @param requestURI the relative URI * @param responseHandler the response handler * @return a reference to this, so the API can be used fluently */ @Deprecated() public io.vertx.rxjava.core.http.HttpClient optionsNow(String requestURI, Handler<io.vertx.rxjava.core.http.HttpClientResponse> responseHandler) { delegate.optionsNow(requestURI, new Handler<io.vertx.core.http.HttpClientResponse>() { public void handle(io.vertx.core.http.HttpClientResponse event) { responseHandler.handle(io.vertx.rxjava.core.http.HttpClientResponse.newInstance(event)); } }); return this; }
/** * Sends an HTTP OPTIONS request to the server with the specified options, specifying a response handler to receive * the response * @param options the request options * @param responseHandler the response handler * @return a reference to this, so the API can be used fluently */ @Deprecated() public io.vertx.rxjava.core.http.HttpClient optionsNow(RequestOptions options, Handler<io.vertx.rxjava.core.http.HttpClientResponse> responseHandler) { delegate.optionsNow(options, new Handler<io.vertx.core.http.HttpClientResponse>() { public void handle(io.vertx.core.http.HttpClientResponse event) { responseHandler.handle(io.vertx.rxjava.core.http.HttpClientResponse.newInstance(event)); } }); return this; }
/** * Sends an HTTP OPTIONS request to the server at the specified host and default port, specifying a response handler to receive * the response * @param host the host * @param requestURI the relative URI * @param responseHandler the response handler * @return a reference to this, so the API can be used fluently */ @Deprecated() public io.vertx.rxjava.core.http.HttpClient optionsNow(String host, String requestURI, Handler<io.vertx.rxjava.core.http.HttpClientResponse> responseHandler) { delegate.optionsNow(host, requestURI, new Handler<io.vertx.core.http.HttpClientResponse>() { public void handle(io.vertx.core.http.HttpClientResponse event) { responseHandler.handle(io.vertx.rxjava.core.http.HttpClientResponse.newInstance(event)); } }); return this; }
/** * Sends an HTTP OPTIONS request to the server at the specified host and port, specifying a response handler to receive * the response * @param port the port * @param host the host * @param requestURI the relative URI * @param responseHandler the response handler * @return a reference to this, so the API can be used fluently */ @Deprecated() public io.vertx.rxjava.core.http.HttpClient optionsNow(int port, String host, String requestURI, Handler<io.vertx.rxjava.core.http.HttpClientResponse> responseHandler) { delegate.optionsNow(port, host, requestURI, new Handler<io.vertx.core.http.HttpClientResponse>() { public void handle(io.vertx.core.http.HttpClientResponse event) { responseHandler.handle(io.vertx.rxjava.core.http.HttpClientResponse.newInstance(event)); } }); return this; }
public static io.vertx.core.http.HttpClient optionsNow(io.vertx.core.http.HttpClient j_receiver, java.util.Map<String, Object> options, io.vertx.core.Handler<io.vertx.core.http.HttpClientResponse> responseHandler) { io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.optionsNow(options != null ? new io.vertx.core.http.RequestOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null, responseHandler != null ? event -> responseHandler.handle(io.vertx.core.impl.ConversionHelper.fromObject(event)) : null)); return j_receiver; } public static io.vertx.core.http.HttpClientRequest put(io.vertx.core.http.HttpClient j_receiver, java.util.Map<String, Object> options) {