/** * Create an HTTP DELETE request to send to the server at the specified host and default port. * @param host the host * @param requestURI the relative URI * @return an HTTP client request object */ public io.vertx.rxjava.core.http.HttpClientRequest delete(String host, String requestURI) { io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance(delegate.delete(host, requestURI)); return ret; }
/** * Create an HTTP DELETE request to send to the server with the specified options. * @param options the request options * @return an HTTP client request object */ public io.vertx.rxjava.core.http.HttpClientRequest delete(RequestOptions options) { io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance(delegate.delete(options)); return ret; }
/** * Create an HTTP DELETE request to send to the server at the specified host and port. * @param port the port * @param host the host * @param requestURI the relative URI * @return an HTTP client request object */ public io.vertx.rxjava.core.http.HttpClientRequest delete(int port, String host, String requestURI) { io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance(delegate.delete(port, host, requestURI)); return ret; }
/** * Create an HTTP DELETE request to send to the server at the default host and port. * @param requestURI the relative URI * @return an HTTP client request object */ public io.vertx.rxjava.core.http.HttpClientRequest delete(String requestURI) { io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance(delegate.delete(requestURI)); return ret; }
/** * Create an HTTP DELETE request to send to the server at the specified host and default port. * @param host the host * @param requestURI the relative URI * @return an HTTP client request object */ public io.vertx.rxjava.core.http.HttpClientRequest delete(String host, String requestURI) { io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance(delegate.delete(host, requestURI)); return ret; }
/** * Create an HTTP DELETE request to send to the server with the specified options. * @param options the request options * @return an HTTP client request object */ public io.vertx.rxjava.core.http.HttpClientRequest delete(RequestOptions options) { io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance(delegate.delete(options)); return ret; }
/** * Create an HTTP DELETE request to send to the server at the specified host and port. * @param port the port * @param host the host * @param requestURI the relative URI * @return an HTTP client request object */ public io.vertx.rxjava.core.http.HttpClientRequest delete(int port, String host, String requestURI) { io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance(delegate.delete(port, host, requestURI)); return ret; }
/** * Create an HTTP DELETE request to send to the server at the default host and port. * @param requestURI the relative URI * @return an HTTP client request object */ public io.vertx.rxjava.core.http.HttpClientRequest delete(String requestURI) { io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance(delegate.delete(requestURI)); return ret; }
/** * Create an HTTP DELETE request to send 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 an HTTP client request object */ @Deprecated() public io.vertx.rxjava.core.http.HttpClientRequest delete(RequestOptions options, Handler<io.vertx.rxjava.core.http.HttpClientResponse> responseHandler) { io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance(delegate.delete(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 ret; }
/** * Create an HTTP DELETE request to send 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 an HTTP client request object */ @Deprecated() public io.vertx.rxjava.core.http.HttpClientRequest delete(String requestURI, Handler<io.vertx.rxjava.core.http.HttpClientResponse> responseHandler) { io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance(delegate.delete(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 ret; }
/** * Create an HTTP DELETE request to send 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 an HTTP client request object */ @Deprecated() public io.vertx.rxjava.core.http.HttpClientRequest delete(String host, String requestURI, Handler<io.vertx.rxjava.core.http.HttpClientResponse> responseHandler) { io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance(delegate.delete(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 ret; }
/** * Create an HTTP DELETE request to send 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 an HTTP client request object */ @Deprecated() public io.vertx.rxjava.core.http.HttpClientRequest delete(int port, String host, String requestURI, Handler<io.vertx.rxjava.core.http.HttpClientResponse> responseHandler) { io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance(delegate.delete(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 ret; }
/** * Create an HTTP DELETE request to send 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 an HTTP client request object */ public io.vertx.rxjava.core.http.HttpClientRequest delete(RequestOptions options, Handler<AsyncResult<io.vertx.rxjava.core.http.HttpClientResponse>> responseHandler) { io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance(delegate.delete(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 ret; }
/** * Create an HTTP DELETE request to send 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 an HTTP client request object */ public io.vertx.rxjava.core.http.HttpClientRequest delete(String host, String requestURI, Handler<AsyncResult<io.vertx.rxjava.core.http.HttpClientResponse>> responseHandler) { io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance(delegate.delete(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 ret; }
/** * Create an HTTP DELETE request to send 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 an HTTP client request object */ public io.vertx.rxjava.core.http.HttpClientRequest delete(String requestURI, Handler<AsyncResult<io.vertx.rxjava.core.http.HttpClientResponse>> responseHandler) { io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance(delegate.delete(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 ret; }
private HttpClientRequest delete(String path) { HttpClientRequest request = vertx.createHttpClient().delete(getOptions(path)); addHeaders(request); return request; }
public static io.vertx.core.http.HttpClientRequest delete(io.vertx.core.http.HttpClient j_receiver, java.util.Map<String, Object> options, io.vertx.core.Handler<io.vertx.core.http.HttpClientResponse> responseHandler) { return io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.delete(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)); } public static io.vertx.core.http.HttpClient websocket(io.vertx.core.http.HttpClient j_receiver, java.util.Map<String, Object> options, io.vertx.core.Handler<io.vertx.core.http.WebSocket> wsConnect) {
@Override public void delete(final String uri, final Handler<Integer> doneHandler) { HttpClientRequest request = client.delete(uri, response -> { response.exceptionHandler(exception -> { log.error("Exception on response to DELETE from " + uri + ": " + exception.getMessage()); doneHandler.handle(StatusCode.INTERNAL_SERVER_ERROR.getStatusCode()); }); response.endHandler(event -> doneHandler.handle(response.statusCode())); }); request.exceptionHandler(exception -> { log.error("Deleting " + uri + " failed: " + exception.getMessage()); doneHandler.handle(StatusCode.INTERNAL_SERVER_ERROR.getStatusCode()); }); request.setTimeout(TIMEOUT); request.end(); }
public static io.vertx.core.http.HttpClientRequest delete(io.vertx.core.http.HttpClient j_receiver, java.util.Map<String, Object> options) { return io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.delete(options != null ? new io.vertx.core.http.RequestOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null)); } public static io.vertx.core.http.HttpClientRequest delete(io.vertx.core.http.HttpClient j_receiver, java.util.Map<String, Object> options, io.vertx.core.Handler<io.vertx.core.http.HttpClientResponse> responseHandler) {
@Test public void testDeleteJob(TestContext context) throws Exception { Vertx vertx = Vertx.vertx(); HttpClient client = vertx.createHttpClient(); Async async = context.async(); client.delete(PORT, HOST, "/job/66", rsp -> { context.assertEquals(204, rsp.statusCode()); client.close(); async.complete(); }).end(); }