
io.vertx.rxjava.core.http.HttpClient Maven / Gradle / Ivy
/*
* Copyright 2014 Red Hat, Inc.
*
* Red Hat licenses this file to you under the Apache License, version 2.0
* (the "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*/
package io.vertx.rxjava.core.http;
import rx.Observable;
import rx.Single;
import io.vertx.rx.java.RxHelper;
import io.vertx.rx.java.WriteStreamSubscriber;
import io.vertx.rx.java.SingleOnSubscribeAdapter;
import java.util.Map;
import java.util.Set;
import java.util.List;
import java.util.Iterator;
import java.util.function.Function;
import java.util.stream.Collectors;
import io.vertx.core.Handler;
import io.vertx.core.AsyncResult;
import io.vertx.core.json.JsonObject;
import io.vertx.core.json.JsonArray;
import io.vertx.lang.rx.RxGen;
import io.vertx.lang.rx.TypeArg;
import io.vertx.lang.rx.MappingIterator;
/**
* An asynchronous HTTP client.
*
* It allows you to make requests to HTTP servers, and a single client can make requests to any server.
*
* It also allows you to open WebSockets to servers.
*
* The client can also pool HTTP connections.
*
* For pooling to occur, keep-alive must be true on the {@link io.vertx.core.http.HttpClientOptions} (default is true).
* In this case connections will be pooled and re-used if there are pending HTTP requests waiting to get a connection,
* otherwise they will be closed.
*
* This gives the benefits of keep alive when the client is loaded but means we don't keep connections hanging around
* unnecessarily when there would be no benefits anyway.
*
* The client also supports pipe-lining of requests. Pipe-lining means another request is sent on the same connection
* before the response from the preceding one has returned. Pipe-lining is not appropriate for all requests.
*
* To enable pipe-lining, it must be enabled on the {@link io.vertx.core.http.HttpClientOptions} (default is false).
*
* When pipe-lining is enabled the connection will be automatically closed when all in-flight responses have returned
* and there are no outstanding pending requests to write.
*
* The client is designed to be reused between requests.
*
*
* NOTE: This class has been automatically generated from the {@link io.vertx.core.http.HttpClient original} non RX-ified interface using Vert.x codegen.
*/
@RxGen(io.vertx.core.http.HttpClient.class)
public class HttpClient implements io.vertx.rxjava.core.metrics.Measured {
@Override
public String toString() {
return delegate.toString();
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
HttpClient that = (HttpClient) o;
return delegate.equals(that.delegate);
}
@Override
public int hashCode() {
return delegate.hashCode();
}
public static final TypeArg __TYPE_ARG = new TypeArg<>( obj -> new HttpClient((io.vertx.core.http.HttpClient) obj),
HttpClient::getDelegate
);
private final io.vertx.core.http.HttpClient delegate;
public HttpClient(io.vertx.core.http.HttpClient delegate) {
this.delegate = delegate;
}
public HttpClient(Object delegate) {
this.delegate = (io.vertx.core.http.HttpClient)delegate;
}
public io.vertx.core.http.HttpClient getDelegate() {
return delegate;
}
private static final TypeArg TYPE_ARG_0 = new TypeArg(o1 -> io.vertx.rxjava.core.http.WebSocket.newInstance((io.vertx.core.http.WebSocket)o1), o1 -> o1.getDelegate());
private static final TypeArg TYPE_ARG_1 = new TypeArg(o1 -> io.vertx.rxjava.core.http.WebSocket.newInstance((io.vertx.core.http.WebSocket)o1), o1 -> o1.getDelegate());
private static final TypeArg TYPE_ARG_2 = new TypeArg(o1 -> io.vertx.rxjava.core.http.WebSocket.newInstance((io.vertx.core.http.WebSocket)o1), o1 -> o1.getDelegate());
private static final TypeArg TYPE_ARG_3 = new TypeArg(o1 -> io.vertx.rxjava.core.http.WebSocket.newInstance((io.vertx.core.http.WebSocket)o1), o1 -> o1.getDelegate());
private static final TypeArg TYPE_ARG_4 = new TypeArg(o1 -> io.vertx.rxjava.core.http.WebSocket.newInstance((io.vertx.core.http.WebSocket)o1), o1 -> o1.getDelegate());
private static final TypeArg TYPE_ARG_5 = new TypeArg(o1 -> io.vertx.rxjava.core.http.WebSocket.newInstance((io.vertx.core.http.WebSocket)o1), o1 -> o1.getDelegate());
private static final TypeArg TYPE_ARG_6 = new TypeArg(o1 -> io.vertx.rxjava.core.http.WebSocket.newInstance((io.vertx.core.http.WebSocket)o1), o1 -> o1.getDelegate());
private static final TypeArg TYPE_ARG_7 = new TypeArg(o1 -> io.vertx.rxjava.core.http.WebSocket.newInstance((io.vertx.core.http.WebSocket)o1), o1 -> o1.getDelegate());
private static final TypeArg TYPE_ARG_8 = new TypeArg(o1 -> io.vertx.rxjava.core.http.WebSocket.newInstance((io.vertx.core.http.WebSocket)o1), o1 -> o1.getDelegate());
private static final TypeArg TYPE_ARG_9 = new TypeArg(o1 -> io.vertx.rxjava.core.http.WebSocket.newInstance((io.vertx.core.http.WebSocket)o1), o1 -> o1.getDelegate());
private static final TypeArg TYPE_ARG_10 = new TypeArg(o1 -> io.vertx.rxjava.core.http.WebSocket.newInstance((io.vertx.core.http.WebSocket)o1), o1 -> o1.getDelegate());
private static final TypeArg TYPE_ARG_11 = new TypeArg(o1 -> io.vertx.rxjava.core.http.WebSocket.newInstance((io.vertx.core.http.WebSocket)o1), o1 -> o1.getDelegate());
private static final TypeArg TYPE_ARG_12 = new TypeArg(o1 -> io.vertx.rxjava.core.http.WebSocket.newInstance((io.vertx.core.http.WebSocket)o1), o1 -> o1.getDelegate());
private static final TypeArg TYPE_ARG_13 = new TypeArg(o1 -> io.vertx.rxjava.core.http.WebSocket.newInstance((io.vertx.core.http.WebSocket)o1), o1 -> o1.getDelegate());
private static final TypeArg TYPE_ARG_14 = new TypeArg(o1 -> io.vertx.rxjava.core.http.WebSocket.newInstance((io.vertx.core.http.WebSocket)o1), o1 -> o1.getDelegate());
private static final TypeArg TYPE_ARG_15 = new TypeArg(o1 -> io.vertx.rxjava.core.http.WebSocket.newInstance((io.vertx.core.http.WebSocket)o1), o1 -> o1.getDelegate());
private static final TypeArg TYPE_ARG_16 = new TypeArg(o1 -> io.vertx.rxjava.core.http.WebSocket.newInstance((io.vertx.core.http.WebSocket)o1), o1 -> o1.getDelegate());
/**
* Whether the metrics are enabled for this measured object
* @return true
if metrics are enabled
*/
public boolean isMetricsEnabled() {
boolean ret = delegate.isMetricsEnabled();
return ret;
}
/**
* Like {@link io.vertx.rxjava.core.http.HttpClient#request} using the serverAddress
parameter to connect to the
* server instead of the absoluteURI
parameter.
*
* The request host header will still be created from the options
parameter.
*
* Use to connect to a unix domain socket server.
* @param method
* @param serverAddress
* @param options
* @return
*/
public io.vertx.rxjava.core.http.HttpClientRequest request(io.vertx.core.http.HttpMethod method, io.vertx.rxjava.core.net.SocketAddress serverAddress, io.vertx.core.http.RequestOptions options) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.request(method, serverAddress.getDelegate(), options));
return ret;
}
/**
* Create an HTTP request to send to the server with the specified options.
* @param method the HTTP method
* @param options the request options
* @return an HTTP client request object
*/
public io.vertx.rxjava.core.http.HttpClientRequest request(io.vertx.core.http.HttpMethod method, io.vertx.core.http.RequestOptions options) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.request(method, options));
return ret;
}
/**
* Create an HTTP request to send to the server at the specified host and port.
* @param method the HTTP method
* @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 request(io.vertx.core.http.HttpMethod method, int port, String host, String requestURI) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.request(method, port, host, requestURI));
return ret;
}
/**
* Like {@link io.vertx.rxjava.core.http.HttpClient#request} using the serverAddress
parameter to connect to the
* server instead of the absoluteURI
parameter.
*
* The request host header will still be created from the host
and port
parameters.
*
* Use to connect to a unix domain socket server.
* @param method
* @param serverAddress
* @param port
* @param host
* @param requestURI
* @return
*/
public io.vertx.rxjava.core.http.HttpClientRequest request(io.vertx.core.http.HttpMethod method, io.vertx.rxjava.core.net.SocketAddress serverAddress, int port, String host, String requestURI) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.request(method, serverAddress.getDelegate(), port, host, requestURI));
return ret;
}
/**
* Create an HTTP request to send to the server at the specified host and default port.
* @param method the HTTP method
* @param host the host
* @param requestURI the relative URI
* @return an HTTP client request object
*/
public io.vertx.rxjava.core.http.HttpClientRequest request(io.vertx.core.http.HttpMethod method, String host, String requestURI) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.request(method, host, requestURI));
return ret;
}
/**
* Create an HTTP request to send to the server with the specified options, specifying a response handler to receive
* @param method the HTTP method
* @param options the request options
* @param responseHandler
* @return an HTTP client request object
*/
@Deprecated()
public io.vertx.rxjava.core.http.HttpClientRequest request(io.vertx.core.http.HttpMethod method, io.vertx.core.http.RequestOptions options, Handler responseHandler) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.request(method, options, new Handler() {
public void handle(io.vertx.core.http.HttpClientResponse event) {
responseHandler.handle(io.vertx.rxjava.core.http.HttpClientResponse.newInstance((io.vertx.core.http.HttpClientResponse)event));
}
}));
return ret;
}
/**
* Like {@link io.vertx.rxjava.core.http.HttpClient#request} using the serverAddress
parameter to connect to the
* server instead of the absoluteURI
parameter.
*
* The request host header will still be created from the options
parameter.
*
* Use to connect to a unix domain socket server.
* @param method
* @param serverAddress
* @param options
* @param responseHandler
* @return
*/
public io.vertx.rxjava.core.http.HttpClientRequest request(io.vertx.core.http.HttpMethod method, io.vertx.rxjava.core.net.SocketAddress serverAddress, io.vertx.core.http.RequestOptions options, Handler responseHandler) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.request(method, serverAddress.getDelegate(), options, new Handler() {
public void handle(io.vertx.core.http.HttpClientResponse event) {
responseHandler.handle(io.vertx.rxjava.core.http.HttpClientResponse.newInstance((io.vertx.core.http.HttpClientResponse)event));
}
}));
return ret;
}
/**
* Create an HTTP request to send to the server at the specified host and port, specifying a response handler to receive
* the response
* @param method the HTTP method
* @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 request(io.vertx.core.http.HttpMethod method, int port, String host, String requestURI, Handler responseHandler) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.request(method, port, host, requestURI, new Handler() {
public void handle(io.vertx.core.http.HttpClientResponse event) {
responseHandler.handle(io.vertx.rxjava.core.http.HttpClientResponse.newInstance((io.vertx.core.http.HttpClientResponse)event));
}
}));
return ret;
}
/**
* Like {@link io.vertx.rxjava.core.http.HttpClient#request} using the serverAddress
parameter to connect to the
* server instead of the absoluteURI
parameter.
*
* The request host header will still be created from the host
and port
parameters.
*
* Use to connect to a unix domain socket server.
* @param method
* @param serverAddress
* @param port
* @param host
* @param requestURI
* @param responseHandler
* @return
*/
public io.vertx.rxjava.core.http.HttpClientRequest request(io.vertx.core.http.HttpMethod method, io.vertx.rxjava.core.net.SocketAddress serverAddress, int port, String host, String requestURI, Handler responseHandler) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.request(method, serverAddress.getDelegate(), port, host, requestURI, new Handler() {
public void handle(io.vertx.core.http.HttpClientResponse event) {
responseHandler.handle(io.vertx.rxjava.core.http.HttpClientResponse.newInstance((io.vertx.core.http.HttpClientResponse)event));
}
}));
return ret;
}
/**
* Create an HTTP request to send to the server at the specified host and default port, specifying a response handler to receive
* the response
* @param method the HTTP method
* @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 request(io.vertx.core.http.HttpMethod method, String host, String requestURI, Handler responseHandler) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.request(method, host, requestURI, new Handler() {
public void handle(io.vertx.core.http.HttpClientResponse event) {
responseHandler.handle(io.vertx.rxjava.core.http.HttpClientResponse.newInstance((io.vertx.core.http.HttpClientResponse)event));
}
}));
return ret;
}
/**
* Create an HTTP request to send to the server at the default host and port.
* @param method the HTTP method
* @param requestURI the relative URI
* @return an HTTP client request object
*/
public io.vertx.rxjava.core.http.HttpClientRequest request(io.vertx.core.http.HttpMethod method, String requestURI) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.request(method, requestURI));
return ret;
}
/**
* Create an HTTP request to send to the server at the default host and port, specifying a response handler to receive
* the response
* @param method the HTTP method
* @param requestURI the relative URI
* @param responseHandler the response handler
* @return an HTTP client request object
*/
@Deprecated()
public io.vertx.rxjava.core.http.HttpClientRequest request(io.vertx.core.http.HttpMethod method, String requestURI, Handler responseHandler) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.request(method, requestURI, new Handler() {
public void handle(io.vertx.core.http.HttpClientResponse event) {
responseHandler.handle(io.vertx.rxjava.core.http.HttpClientResponse.newInstance((io.vertx.core.http.HttpClientResponse)event));
}
}));
return ret;
}
/**
* Create an HTTP request to send to the server using an absolute URI
* @param method the HTTP method
* @param absoluteURI the absolute URI
* @return an HTTP client request object
*/
public io.vertx.rxjava.core.http.HttpClientRequest requestAbs(io.vertx.core.http.HttpMethod method, String absoluteURI) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.requestAbs(method, absoluteURI));
return ret;
}
/**
* Like {@link io.vertx.rxjava.core.http.HttpClient#requestAbs} using the serverAddress
parameter to connect to the
* server instead of the absoluteURI
parameter.
*
* The request host header will still be created from the absoluteURI
parameter.
*
* Use to connect to a unix domain socket server.
* @param method
* @param serverAddress
* @param absoluteURI
* @return
*/
public io.vertx.rxjava.core.http.HttpClientRequest requestAbs(io.vertx.core.http.HttpMethod method, io.vertx.rxjava.core.net.SocketAddress serverAddress, String absoluteURI) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.requestAbs(method, serverAddress.getDelegate(), absoluteURI));
return ret;
}
/**
* Create an HTTP request to send to the server using an absolute URI, specifying a response handler to receive
* the response
* @param method the HTTP method
* @param absoluteURI the absolute URI
* @param responseHandler the response handler
* @return an HTTP client request object
*/
@Deprecated()
public io.vertx.rxjava.core.http.HttpClientRequest requestAbs(io.vertx.core.http.HttpMethod method, String absoluteURI, Handler responseHandler) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.requestAbs(method, absoluteURI, new Handler() {
public void handle(io.vertx.core.http.HttpClientResponse event) {
responseHandler.handle(io.vertx.rxjava.core.http.HttpClientResponse.newInstance((io.vertx.core.http.HttpClientResponse)event));
}
}));
return ret;
}
/**
* Like {@link io.vertx.rxjava.core.http.HttpClient#requestAbs} using the serverAddress
parameter to connect to the
* server instead of the absoluteURI
parameter.
*
* The request host header will still be created from the absoluteURI
parameter.
*
* Use to connect to a unix domain socket server.
* @param method
* @param serverAddress
* @param absoluteURI
* @param responseHandler
* @return
*/
public io.vertx.rxjava.core.http.HttpClientRequest requestAbs(io.vertx.core.http.HttpMethod method, io.vertx.rxjava.core.net.SocketAddress serverAddress, String absoluteURI, Handler responseHandler) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.requestAbs(method, serverAddress.getDelegate(), absoluteURI, new Handler() {
public void handle(io.vertx.core.http.HttpClientResponse event) {
responseHandler.handle(io.vertx.rxjava.core.http.HttpClientResponse.newInstance((io.vertx.core.http.HttpClientResponse)event));
}
}));
return ret;
}
/**
* Create an HTTP GET 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 get(io.vertx.core.http.RequestOptions options) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.get(options));
return ret;
}
/**
* Create an HTTP GET 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 get(int port, String host, String requestURI) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.get(port, host, requestURI));
return ret;
}
/**
* Create an HTTP GET 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 get(String host, String requestURI) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.get(host, requestURI));
return ret;
}
/**
* Create an HTTP GET 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 get(io.vertx.core.http.RequestOptions options, Handler responseHandler) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.get(options, new Handler() {
public void handle(io.vertx.core.http.HttpClientResponse event) {
responseHandler.handle(io.vertx.rxjava.core.http.HttpClientResponse.newInstance((io.vertx.core.http.HttpClientResponse)event));
}
}));
return ret;
}
/**
* Create an HTTP GET 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 get(int port, String host, String requestURI, Handler responseHandler) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.get(port, host, requestURI, new Handler() {
public void handle(io.vertx.core.http.HttpClientResponse event) {
responseHandler.handle(io.vertx.rxjava.core.http.HttpClientResponse.newInstance((io.vertx.core.http.HttpClientResponse)event));
}
}));
return ret;
}
/**
* Create an HTTP GET 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 get(String host, String requestURI, Handler responseHandler) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.get(host, requestURI, new Handler() {
public void handle(io.vertx.core.http.HttpClientResponse event) {
responseHandler.handle(io.vertx.rxjava.core.http.HttpClientResponse.newInstance((io.vertx.core.http.HttpClientResponse)event));
}
}));
return ret;
}
/**
* Create an HTTP GET 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 get(String requestURI) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.get(requestURI));
return ret;
}
/**
* Create an HTTP GET 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 get(String requestURI, Handler responseHandler) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.get(requestURI, new Handler() {
public void handle(io.vertx.core.http.HttpClientResponse event) {
responseHandler.handle(io.vertx.rxjava.core.http.HttpClientResponse.newInstance((io.vertx.core.http.HttpClientResponse)event));
}
}));
return ret;
}
/**
* Create an HTTP GET request to send to the server using an absolute URI
* @param absoluteURI the absolute URI
* @return an HTTP client request object
*/
public io.vertx.rxjava.core.http.HttpClientRequest getAbs(String absoluteURI) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.getAbs(absoluteURI));
return ret;
}
/**
* Create an HTTP GET request to send to the server using an absolute URI, specifying a response handler to receive
* the response
* @param absoluteURI the absolute URI
* @param responseHandler the response handler
* @return an HTTP client request object
*/
@Deprecated()
public io.vertx.rxjava.core.http.HttpClientRequest getAbs(String absoluteURI, Handler responseHandler) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.getAbs(absoluteURI, new Handler() {
public void handle(io.vertx.core.http.HttpClientResponse event) {
responseHandler.handle(io.vertx.rxjava.core.http.HttpClientResponse.newInstance((io.vertx.core.http.HttpClientResponse)event));
}
}));
return ret;
}
/**
* Sends an HTTP GET 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 getNow(io.vertx.core.http.RequestOptions options, Handler responseHandler) {
delegate.getNow(options, new Handler() {
public void handle(io.vertx.core.http.HttpClientResponse event) {
responseHandler.handle(io.vertx.rxjava.core.http.HttpClientResponse.newInstance((io.vertx.core.http.HttpClientResponse)event));
}
});
return this;
}
/**
* Sends an HTTP GET 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 getNow(int port, String host, String requestURI, Handler responseHandler) {
delegate.getNow(port, host, requestURI, new Handler() {
public void handle(io.vertx.core.http.HttpClientResponse event) {
responseHandler.handle(io.vertx.rxjava.core.http.HttpClientResponse.newInstance((io.vertx.core.http.HttpClientResponse)event));
}
});
return this;
}
/**
* Sends an HTTP GET 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 getNow(String host, String requestURI, Handler responseHandler) {
delegate.getNow(host, requestURI, new Handler() {
public void handle(io.vertx.core.http.HttpClientResponse event) {
responseHandler.handle(io.vertx.rxjava.core.http.HttpClientResponse.newInstance((io.vertx.core.http.HttpClientResponse)event));
}
});
return this;
}
/**
* Sends an HTTP GET 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 getNow(String requestURI, Handler responseHandler) {
delegate.getNow(requestURI, new Handler() {
public void handle(io.vertx.core.http.HttpClientResponse event) {
responseHandler.handle(io.vertx.rxjava.core.http.HttpClientResponse.newInstance((io.vertx.core.http.HttpClientResponse)event));
}
});
return this;
}
/**
* Create an HTTP POST 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 post(io.vertx.core.http.RequestOptions options) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.post(options));
return ret;
}
/**
* Create an HTTP POST 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 post(int port, String host, String requestURI) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.post(port, host, requestURI));
return ret;
}
/**
* Create an HTTP POST 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 post(String host, String requestURI) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.post(host, requestURI));
return ret;
}
/**
* Create an HTTP POST 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 post(io.vertx.core.http.RequestOptions options, Handler responseHandler) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.post(options, new Handler() {
public void handle(io.vertx.core.http.HttpClientResponse event) {
responseHandler.handle(io.vertx.rxjava.core.http.HttpClientResponse.newInstance((io.vertx.core.http.HttpClientResponse)event));
}
}));
return ret;
}
/**
* Create an HTTP POST 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 post(int port, String host, String requestURI, Handler responseHandler) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.post(port, host, requestURI, new Handler() {
public void handle(io.vertx.core.http.HttpClientResponse event) {
responseHandler.handle(io.vertx.rxjava.core.http.HttpClientResponse.newInstance((io.vertx.core.http.HttpClientResponse)event));
}
}));
return ret;
}
/**
* Create an HTTP POST 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 post(String host, String requestURI, Handler responseHandler) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.post(host, requestURI, new Handler() {
public void handle(io.vertx.core.http.HttpClientResponse event) {
responseHandler.handle(io.vertx.rxjava.core.http.HttpClientResponse.newInstance((io.vertx.core.http.HttpClientResponse)event));
}
}));
return ret;
}
/**
* Create an HTTP POST 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 post(String requestURI) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.post(requestURI));
return ret;
}
/**
* Create an HTTP POST 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 post(String requestURI, Handler responseHandler) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.post(requestURI, new Handler() {
public void handle(io.vertx.core.http.HttpClientResponse event) {
responseHandler.handle(io.vertx.rxjava.core.http.HttpClientResponse.newInstance((io.vertx.core.http.HttpClientResponse)event));
}
}));
return ret;
}
/**
* Create an HTTP POST request to send to the server using an absolute URI
* @param absoluteURI the absolute URI
* @return an HTTP client request object
*/
public io.vertx.rxjava.core.http.HttpClientRequest postAbs(String absoluteURI) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.postAbs(absoluteURI));
return ret;
}
/**
* Create an HTTP POST request to send to the server using an absolute URI, specifying a response handler to receive
* the response
* @param absoluteURI the absolute URI
* @param responseHandler the response handler
* @return an HTTP client request object
*/
@Deprecated()
public io.vertx.rxjava.core.http.HttpClientRequest postAbs(String absoluteURI, Handler responseHandler) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.postAbs(absoluteURI, new Handler() {
public void handle(io.vertx.core.http.HttpClientResponse event) {
responseHandler.handle(io.vertx.rxjava.core.http.HttpClientResponse.newInstance((io.vertx.core.http.HttpClientResponse)event));
}
}));
return ret;
}
/**
* Create an HTTP HEAD 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 head(io.vertx.core.http.RequestOptions options) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.head(options));
return ret;
}
/**
* Create an HTTP HEAD 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 head(int port, String host, String requestURI) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.head(port, host, requestURI));
return ret;
}
/**
* Create an HTTP HEAD 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 head(String host, String requestURI) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.head(host, requestURI));
return ret;
}
/**
* Create an HTTP HEAD 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 head(io.vertx.core.http.RequestOptions options, Handler responseHandler) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.head(options, new Handler() {
public void handle(io.vertx.core.http.HttpClientResponse event) {
responseHandler.handle(io.vertx.rxjava.core.http.HttpClientResponse.newInstance((io.vertx.core.http.HttpClientResponse)event));
}
}));
return ret;
}
/**
* Create an HTTP HEAD 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 head(int port, String host, String requestURI, Handler responseHandler) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.head(port, host, requestURI, new Handler() {
public void handle(io.vertx.core.http.HttpClientResponse event) {
responseHandler.handle(io.vertx.rxjava.core.http.HttpClientResponse.newInstance((io.vertx.core.http.HttpClientResponse)event));
}
}));
return ret;
}
/**
* Create an HTTP HEAD 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 head(String host, String requestURI, Handler responseHandler) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.head(host, requestURI, new Handler() {
public void handle(io.vertx.core.http.HttpClientResponse event) {
responseHandler.handle(io.vertx.rxjava.core.http.HttpClientResponse.newInstance((io.vertx.core.http.HttpClientResponse)event));
}
}));
return ret;
}
/**
* Create an HTTP HEAD 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 head(String requestURI) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.head(requestURI));
return ret;
}
/**
* Create an HTTP HEAD 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 head(String requestURI, Handler responseHandler) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.head(requestURI, new Handler() {
public void handle(io.vertx.core.http.HttpClientResponse event) {
responseHandler.handle(io.vertx.rxjava.core.http.HttpClientResponse.newInstance((io.vertx.core.http.HttpClientResponse)event));
}
}));
return ret;
}
/**
* Create an HTTP HEAD request to send to the server using an absolute URI
* @param absoluteURI the absolute URI
* @return an HTTP client request object
*/
public io.vertx.rxjava.core.http.HttpClientRequest headAbs(String absoluteURI) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.headAbs(absoluteURI));
return ret;
}
/**
* Create an HTTP HEAD request to send to the server using an absolute URI, specifying a response handler to receive
* the response
* @param absoluteURI the absolute URI
* @param responseHandler the response handler
* @return an HTTP client request object
*/
@Deprecated()
public io.vertx.rxjava.core.http.HttpClientRequest headAbs(String absoluteURI, Handler responseHandler) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.headAbs(absoluteURI, new Handler() {
public void handle(io.vertx.core.http.HttpClientResponse event) {
responseHandler.handle(io.vertx.rxjava.core.http.HttpClientResponse.newInstance((io.vertx.core.http.HttpClientResponse)event));
}
}));
return ret;
}
/**
* Sends an HTTP HEAD 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 headNow(io.vertx.core.http.RequestOptions options, Handler responseHandler) {
delegate.headNow(options, new Handler() {
public void handle(io.vertx.core.http.HttpClientResponse event) {
responseHandler.handle(io.vertx.rxjava.core.http.HttpClientResponse.newInstance((io.vertx.core.http.HttpClientResponse)event));
}
});
return this;
}
/**
* Sends an HTTP HEAD 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 headNow(int port, String host, String requestURI, Handler responseHandler) {
delegate.headNow(port, host, requestURI, new Handler() {
public void handle(io.vertx.core.http.HttpClientResponse event) {
responseHandler.handle(io.vertx.rxjava.core.http.HttpClientResponse.newInstance((io.vertx.core.http.HttpClientResponse)event));
}
});
return this;
}
/**
* Sends an HTTP HEAD 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 headNow(String host, String requestURI, Handler responseHandler) {
delegate.headNow(host, requestURI, new Handler() {
public void handle(io.vertx.core.http.HttpClientResponse event) {
responseHandler.handle(io.vertx.rxjava.core.http.HttpClientResponse.newInstance((io.vertx.core.http.HttpClientResponse)event));
}
});
return this;
}
/**
* Sends an HTTP HEAD 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 headNow(String requestURI, Handler responseHandler) {
delegate.headNow(requestURI, new Handler() {
public void handle(io.vertx.core.http.HttpClientResponse event) {
responseHandler.handle(io.vertx.rxjava.core.http.HttpClientResponse.newInstance((io.vertx.core.http.HttpClientResponse)event));
}
});
return this;
}
/**
* Create an HTTP OPTIONS 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 options(io.vertx.core.http.RequestOptions options) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.options(options));
return ret;
}
/**
* Create an HTTP OPTIONS 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 options(int port, String host, String requestURI) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.options(port, host, requestURI));
return ret;
}
/**
* Create an HTTP OPTIONS 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 options(String host, String requestURI) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.options(host, requestURI));
return ret;
}
/**
* Create an HTTP OPTIONS 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 options(io.vertx.core.http.RequestOptions options, Handler responseHandler) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.options(options, new Handler() {
public void handle(io.vertx.core.http.HttpClientResponse event) {
responseHandler.handle(io.vertx.rxjava.core.http.HttpClientResponse.newInstance((io.vertx.core.http.HttpClientResponse)event));
}
}));
return ret;
}
/**
* Create an HTTP OPTIONS 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 options(int port, String host, String requestURI, Handler responseHandler) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.options(port, host, requestURI, new Handler() {
public void handle(io.vertx.core.http.HttpClientResponse event) {
responseHandler.handle(io.vertx.rxjava.core.http.HttpClientResponse.newInstance((io.vertx.core.http.HttpClientResponse)event));
}
}));
return ret;
}
/**
* Create an HTTP OPTIONS 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 options(String host, String requestURI, Handler responseHandler) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.options(host, requestURI, new Handler() {
public void handle(io.vertx.core.http.HttpClientResponse event) {
responseHandler.handle(io.vertx.rxjava.core.http.HttpClientResponse.newInstance((io.vertx.core.http.HttpClientResponse)event));
}
}));
return ret;
}
/**
* Create an HTTP OPTIONS 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 options(String requestURI) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.options(requestURI));
return ret;
}
/**
* Create an HTTP OPTIONS 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 options(String requestURI, Handler responseHandler) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.options(requestURI, new Handler() {
public void handle(io.vertx.core.http.HttpClientResponse event) {
responseHandler.handle(io.vertx.rxjava.core.http.HttpClientResponse.newInstance((io.vertx.core.http.HttpClientResponse)event));
}
}));
return ret;
}
/**
* Create an HTTP OPTIONS request to send to the server using an absolute URI
* @param absoluteURI the absolute URI
* @return an HTTP client request object
*/
public io.vertx.rxjava.core.http.HttpClientRequest optionsAbs(String absoluteURI) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.optionsAbs(absoluteURI));
return ret;
}
/**
* Create an HTTP OPTIONS request to send to the server using an absolute URI, specifying a response handler to receive
* the response
* @param absoluteURI the absolute URI
* @param responseHandler the response handler
* @return an HTTP client request object
*/
@Deprecated()
public io.vertx.rxjava.core.http.HttpClientRequest optionsAbs(String absoluteURI, Handler responseHandler) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.optionsAbs(absoluteURI, new Handler() {
public void handle(io.vertx.core.http.HttpClientResponse event) {
responseHandler.handle(io.vertx.rxjava.core.http.HttpClientResponse.newInstance((io.vertx.core.http.HttpClientResponse)event));
}
}));
return ret;
}
/**
* 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(io.vertx.core.http.RequestOptions options, Handler responseHandler) {
delegate.optionsNow(options, new Handler() {
public void handle(io.vertx.core.http.HttpClientResponse event) {
responseHandler.handle(io.vertx.rxjava.core.http.HttpClientResponse.newInstance((io.vertx.core.http.HttpClientResponse)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 responseHandler) {
delegate.optionsNow(port, host, requestURI, new Handler() {
public void handle(io.vertx.core.http.HttpClientResponse event) {
responseHandler.handle(io.vertx.rxjava.core.http.HttpClientResponse.newInstance((io.vertx.core.http.HttpClientResponse)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 responseHandler) {
delegate.optionsNow(host, requestURI, new Handler() {
public void handle(io.vertx.core.http.HttpClientResponse event) {
responseHandler.handle(io.vertx.rxjava.core.http.HttpClientResponse.newInstance((io.vertx.core.http.HttpClientResponse)event));
}
});
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 responseHandler) {
delegate.optionsNow(requestURI, new Handler() {
public void handle(io.vertx.core.http.HttpClientResponse event) {
responseHandler.handle(io.vertx.rxjava.core.http.HttpClientResponse.newInstance((io.vertx.core.http.HttpClientResponse)event));
}
});
return this;
}
/**
* Create an HTTP PUT 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 put(io.vertx.core.http.RequestOptions options) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.put(options));
return ret;
}
/**
* Create an HTTP PUT 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 put(int port, String host, String requestURI) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.put(port, host, requestURI));
return ret;
}
/**
* Create an HTTP PUT 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 put(String host, String requestURI) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.put(host, requestURI));
return ret;
}
/**
* Create an HTTP PUT 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 put(io.vertx.core.http.RequestOptions options, Handler responseHandler) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.put(options, new Handler() {
public void handle(io.vertx.core.http.HttpClientResponse event) {
responseHandler.handle(io.vertx.rxjava.core.http.HttpClientResponse.newInstance((io.vertx.core.http.HttpClientResponse)event));
}
}));
return ret;
}
/**
* Create an HTTP PUT 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 put(int port, String host, String requestURI, Handler responseHandler) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.put(port, host, requestURI, new Handler() {
public void handle(io.vertx.core.http.HttpClientResponse event) {
responseHandler.handle(io.vertx.rxjava.core.http.HttpClientResponse.newInstance((io.vertx.core.http.HttpClientResponse)event));
}
}));
return ret;
}
/**
* Create an HTTP PUT 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 put(String host, String requestURI, Handler responseHandler) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.put(host, requestURI, new Handler() {
public void handle(io.vertx.core.http.HttpClientResponse event) {
responseHandler.handle(io.vertx.rxjava.core.http.HttpClientResponse.newInstance((io.vertx.core.http.HttpClientResponse)event));
}
}));
return ret;
}
/**
* Create an HTTP PUT 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 put(String requestURI) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.put(requestURI));
return ret;
}
/**
* Create an HTTP PUT 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 put(String requestURI, Handler responseHandler) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.put(requestURI, new Handler() {
public void handle(io.vertx.core.http.HttpClientResponse event) {
responseHandler.handle(io.vertx.rxjava.core.http.HttpClientResponse.newInstance((io.vertx.core.http.HttpClientResponse)event));
}
}));
return ret;
}
/**
* Create an HTTP PUT request to send to the server using an absolute URI
* @param absoluteURI the absolute URI
* @return an HTTP client request object
*/
public io.vertx.rxjava.core.http.HttpClientRequest putAbs(String absoluteURI) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.putAbs(absoluteURI));
return ret;
}
/**
* Create an HTTP PUT request to send to the server using an absolute URI, specifying a response handler to receive
* the response
* @param absoluteURI the absolute URI
* @param responseHandler the response handler
* @return an HTTP client request object
*/
@Deprecated()
public io.vertx.rxjava.core.http.HttpClientRequest putAbs(String absoluteURI, Handler responseHandler) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.putAbs(absoluteURI, new Handler() {
public void handle(io.vertx.core.http.HttpClientResponse event) {
responseHandler.handle(io.vertx.rxjava.core.http.HttpClientResponse.newInstance((io.vertx.core.http.HttpClientResponse)event));
}
}));
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(io.vertx.core.http.RequestOptions options) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)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((io.vertx.core.http.HttpClientRequest)delegate.delete(port, host, 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((io.vertx.core.http.HttpClientRequest)delegate.delete(host, 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(io.vertx.core.http.RequestOptions options, Handler responseHandler) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.delete(options, new Handler() {
public void handle(io.vertx.core.http.HttpClientResponse event) {
responseHandler.handle(io.vertx.rxjava.core.http.HttpClientResponse.newInstance((io.vertx.core.http.HttpClientResponse)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 responseHandler) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.delete(port, host, requestURI, new Handler() {
public void handle(io.vertx.core.http.HttpClientResponse event) {
responseHandler.handle(io.vertx.rxjava.core.http.HttpClientResponse.newInstance((io.vertx.core.http.HttpClientResponse)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 responseHandler) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.delete(host, requestURI, new Handler() {
public void handle(io.vertx.core.http.HttpClientResponse event) {
responseHandler.handle(io.vertx.rxjava.core.http.HttpClientResponse.newInstance((io.vertx.core.http.HttpClientResponse)event));
}
}));
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((io.vertx.core.http.HttpClientRequest)delegate.delete(requestURI));
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 responseHandler) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.delete(requestURI, new Handler() {
public void handle(io.vertx.core.http.HttpClientResponse event) {
responseHandler.handle(io.vertx.rxjava.core.http.HttpClientResponse.newInstance((io.vertx.core.http.HttpClientResponse)event));
}
}));
return ret;
}
/**
* Create an HTTP DELETE request to send to the server using an absolute URI
* @param absoluteURI the absolute URI
* @return an HTTP client request object
*/
public io.vertx.rxjava.core.http.HttpClientRequest deleteAbs(String absoluteURI) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.deleteAbs(absoluteURI));
return ret;
}
/**
* Create an HTTP DELETE request to send to the server using an absolute URI, specifying a response handler to receive
* the response
* @param absoluteURI the absolute URI
* @param responseHandler the response handler
* @return an HTTP client request object
*/
@Deprecated()
public io.vertx.rxjava.core.http.HttpClientRequest deleteAbs(String absoluteURI, Handler responseHandler) {
io.vertx.rxjava.core.http.HttpClientRequest ret = io.vertx.rxjava.core.http.HttpClientRequest.newInstance((io.vertx.core.http.HttpClientRequest)delegate.deleteAbs(absoluteURI, new Handler() {
public void handle(io.vertx.core.http.HttpClientResponse event) {
responseHandler.handle(io.vertx.rxjava.core.http.HttpClientResponse.newInstance((io.vertx.core.http.HttpClientResponse)event));
}
}));
return ret;
}
/**
* Connect a WebSocket with the specified options
* @param options the request options
* @param wsConnect handler that will be called with the WebSocket when connected
* @return a reference to this, so the API can be used fluently
*/
@Deprecated()
public io.vertx.rxjava.core.http.HttpClient websocket(io.vertx.core.http.RequestOptions options, Handler wsConnect) {
delegate.websocket(options, new Handler() {
public void handle(io.vertx.core.http.WebSocket event) {
wsConnect.handle(io.vertx.rxjava.core.http.WebSocket.newInstance((io.vertx.core.http.WebSocket)event));
}
});
return this;
}
/**
* Connect a WebSocket to the specified port, host and relative request URI
* @param port the port
* @param host the host
* @param requestURI the relative URI
* @param wsConnect handler that will be called with the WebSocket when connected
* @return a reference to this, so the API can be used fluently
*/
@Deprecated()
public io.vertx.rxjava.core.http.HttpClient websocket(int port, String host, String requestURI, Handler wsConnect) {
delegate.websocket(port, host, requestURI, new Handler() {
public void handle(io.vertx.core.http.WebSocket event) {
wsConnect.handle(io.vertx.rxjava.core.http.WebSocket.newInstance((io.vertx.core.http.WebSocket)event));
}
});
return this;
}
/**
* Connect a WebSocket with the specified options
* @param options the request options
* @param wsConnect handler that will be called with the WebSocket when connected
* @param failureHandler handler that will be called if WebSocket connection fails
* @return a reference to this, so the API can be used fluently
*/
@Deprecated()
public io.vertx.rxjava.core.http.HttpClient websocket(io.vertx.core.http.RequestOptions options, Handler wsConnect, Handler failureHandler) {
delegate.websocket(options, new Handler() {
public void handle(io.vertx.core.http.WebSocket event) {
wsConnect.handle(io.vertx.rxjava.core.http.WebSocket.newInstance((io.vertx.core.http.WebSocket)event));
}
}, failureHandler);
return this;
}
/**
* Connect a WebSocket to the specified port, host and relative request URI
* @param port the port
* @param host the host
* @param requestURI the relative URI
* @param wsConnect handler that will be called with the WebSocket when connected
* @param failureHandler handler that will be called if WebSocket connection fails
* @return a reference to this, so the API can be used fluently
*/
@Deprecated()
public io.vertx.rxjava.core.http.HttpClient websocket(int port, String host, String requestURI, Handler wsConnect, Handler failureHandler) {
delegate.websocket(port, host, requestURI, new Handler() {
public void handle(io.vertx.core.http.WebSocket event) {
wsConnect.handle(io.vertx.rxjava.core.http.WebSocket.newInstance((io.vertx.core.http.WebSocket)event));
}
}, failureHandler);
return this;
}
/**
* Connect a WebSocket to the host and relative request URI and default port
* @param host the host
* @param requestURI the relative URI
* @param wsConnect handler that will be called with the WebSocket when connected
* @return a reference to this, so the API can be used fluently
*/
@Deprecated()
public io.vertx.rxjava.core.http.HttpClient websocket(String host, String requestURI, Handler wsConnect) {
delegate.websocket(host, requestURI, new Handler() {
public void handle(io.vertx.core.http.WebSocket event) {
wsConnect.handle(io.vertx.rxjava.core.http.WebSocket.newInstance((io.vertx.core.http.WebSocket)event));
}
});
return this;
}
/**
* Connect a WebSocket to the host and relative request URI and default port
* @param host the host
* @param requestURI the relative URI
* @param wsConnect handler that will be called with the WebSocket when connected
* @param failureHandler handler that will be called if WebSocket connection fails
* @return a reference to this, so the API can be used fluently
*/
@Deprecated()
public io.vertx.rxjava.core.http.HttpClient websocket(String host, String requestURI, Handler wsConnect, Handler failureHandler) {
delegate.websocket(host, requestURI, new Handler() {
public void handle(io.vertx.core.http.WebSocket event) {
wsConnect.handle(io.vertx.rxjava.core.http.WebSocket.newInstance((io.vertx.core.http.WebSocket)event));
}
}, failureHandler);
return this;
}
/**
* Connect a WebSocket with the specified options, and with the specified headers
* @param options the request options
* @param headers the headers
* @param wsConnect handler that will be called with the WebSocket when connected
* @return a reference to this, so the API can be used fluently
*/
@Deprecated()
public io.vertx.rxjava.core.http.HttpClient websocket(io.vertx.core.http.RequestOptions options, io.vertx.rxjava.core.MultiMap headers, Handler wsConnect) {
delegate.websocket(options, headers.getDelegate(), new Handler() {
public void handle(io.vertx.core.http.WebSocket event) {
wsConnect.handle(io.vertx.rxjava.core.http.WebSocket.newInstance((io.vertx.core.http.WebSocket)event));
}
});
return this;
}
/**
* Connect a WebSocket to the specified port, host and relative request URI, and with the specified headers
* @param port the port
* @param host the host
* @param requestURI the relative URI
* @param headers the headers
* @param wsConnect handler that will be called with the WebSocket when connected
* @return a reference to this, so the API can be used fluently
*/
@Deprecated()
public io.vertx.rxjava.core.http.HttpClient websocket(int port, String host, String requestURI, io.vertx.rxjava.core.MultiMap headers, Handler wsConnect) {
delegate.websocket(port, host, requestURI, headers.getDelegate(), new Handler() {
public void handle(io.vertx.core.http.WebSocket event) {
wsConnect.handle(io.vertx.rxjava.core.http.WebSocket.newInstance((io.vertx.core.http.WebSocket)event));
}
});
return this;
}
/**
* Connect a WebSocket with the specified options, and with the specified headers
* @param options the request options
* @param headers the headers
* @param wsConnect handler that will be called with the WebSocket when connected
* @param failureHandler handler that will be called if WebSocket connection fails
* @return a reference to this, so the API can be used fluently
*/
@Deprecated()
public io.vertx.rxjava.core.http.HttpClient websocket(io.vertx.core.http.RequestOptions options, io.vertx.rxjava.core.MultiMap headers, Handler wsConnect, Handler failureHandler) {
delegate.websocket(options, headers.getDelegate(), new Handler() {
public void handle(io.vertx.core.http.WebSocket event) {
wsConnect.handle(io.vertx.rxjava.core.http.WebSocket.newInstance((io.vertx.core.http.WebSocket)event));
}
}, failureHandler);
return this;
}
/**
* Connect a WebSocket to the specified port, host and relative request URI, and with the specified headers
* @param port the port
* @param host the host
* @param requestURI the relative URI
* @param headers the headers
* @param wsConnect handler that will be called with the WebSocket when connected
* @param failureHandler handler that will be called if WebSocket connection fails
* @return a reference to this, so the API can be used fluently
*/
@Deprecated()
public io.vertx.rxjava.core.http.HttpClient websocket(int port, String host, String requestURI, io.vertx.rxjava.core.MultiMap headers, Handler wsConnect, Handler failureHandler) {
delegate.websocket(port, host, requestURI, headers.getDelegate(), new Handler() {
public void handle(io.vertx.core.http.WebSocket event) {
wsConnect.handle(io.vertx.rxjava.core.http.WebSocket.newInstance((io.vertx.core.http.WebSocket)event));
}
}, failureHandler);
return this;
}
/**
* Connect a WebSocket to the specified host,relative request UR, and default port and with the specified headers
* @param host the host
* @param requestURI the relative URI
* @param headers the headers
* @param wsConnect handler that will be called with the WebSocket when connected
* @return a reference to this, so the API can be used fluently
*/
@Deprecated()
public io.vertx.rxjava.core.http.HttpClient websocket(String host, String requestURI, io.vertx.rxjava.core.MultiMap headers, Handler wsConnect) {
delegate.websocket(host, requestURI, headers.getDelegate(), new Handler() {
public void handle(io.vertx.core.http.WebSocket event) {
wsConnect.handle(io.vertx.rxjava.core.http.WebSocket.newInstance((io.vertx.core.http.WebSocket)event));
}
});
return this;
}
/**
* Connect a WebSocket to the specified host,relative request UR, and default port and with the specified headers
* @param host the host
* @param requestURI the relative URI
* @param headers the headers
* @param wsConnect handler that will be called with the WebSocket when connected
* @param failureHandler handler that will be called if WebSocket connection fails
* @return a reference to this, so the API can be used fluently
*/
@Deprecated()
public io.vertx.rxjava.core.http.HttpClient websocket(String host, String requestURI, io.vertx.rxjava.core.MultiMap headers, Handler wsConnect, Handler failureHandler) {
delegate.websocket(host, requestURI, headers.getDelegate(), new Handler() {
public void handle(io.vertx.core.http.WebSocket event) {
wsConnect.handle(io.vertx.rxjava.core.http.WebSocket.newInstance((io.vertx.core.http.WebSocket)event));
}
}, failureHandler);
return this;
}
/**
* Connect a WebSocket with the specified optionsI, with the specified headers and using
* the specified version of WebSockets
* @param options the request options
* @param headers the headers
* @param version the WebSocket version
* @param wsConnect handler that will be called with the WebSocket when connected
* @return a reference to this, so the API can be used fluently
*/
@Deprecated()
public io.vertx.rxjava.core.http.HttpClient websocket(io.vertx.core.http.RequestOptions options, io.vertx.rxjava.core.MultiMap headers, io.vertx.core.http.WebsocketVersion version, Handler wsConnect) {
delegate.websocket(options, headers.getDelegate(), version, new Handler() {
public void handle(io.vertx.core.http.WebSocket event) {
wsConnect.handle(io.vertx.rxjava.core.http.WebSocket.newInstance((io.vertx.core.http.WebSocket)event));
}
});
return this;
}
/**
* Connect a WebSocket to the specified port, host and relative request URI, with the specified headers and using
* the specified version of WebSockets
* @param port the port
* @param host the host
* @param requestURI the relative URI
* @param headers the headers
* @param version the WebSocket version
* @param wsConnect handler that will be called with the WebSocket when connected
* @return a reference to this, so the API can be used fluently
*/
@Deprecated()
public io.vertx.rxjava.core.http.HttpClient websocket(int port, String host, String requestURI, io.vertx.rxjava.core.MultiMap headers, io.vertx.core.http.WebsocketVersion version, Handler wsConnect) {
delegate.websocket(port, host, requestURI, headers.getDelegate(), version, new Handler() {
public void handle(io.vertx.core.http.WebSocket event) {
wsConnect.handle(io.vertx.rxjava.core.http.WebSocket.newInstance((io.vertx.core.http.WebSocket)event));
}
});
return this;
}
/**
* Connect a WebSocket with the specified options, with the specified headers and using
* the specified version of WebSockets
* @param options the request options
* @param headers the headers
* @param version the WebSocket version
* @param wsConnect handler that will be called with the WebSocket when connected
* @param failureHandler handler that will be called if WebSocket connection fails
* @return a reference to this, so the API can be used fluently
*/
@Deprecated()
public io.vertx.rxjava.core.http.HttpClient websocket(io.vertx.core.http.RequestOptions options, io.vertx.rxjava.core.MultiMap headers, io.vertx.core.http.WebsocketVersion version, Handler wsConnect, Handler failureHandler) {
delegate.websocket(options, headers.getDelegate(), version, new Handler() {
public void handle(io.vertx.core.http.WebSocket event) {
wsConnect.handle(io.vertx.rxjava.core.http.WebSocket.newInstance((io.vertx.core.http.WebSocket)event));
}
}, failureHandler);
return this;
}
/**
* Connect a WebSocket to the specified port, host and relative request URI, with the specified headers and using
* the specified version of WebSockets
* @param port the port
* @param host the host
* @param requestURI the relative URI
* @param headers the headers
* @param version the WebSocket version
* @param wsConnect handler that will be called with the WebSocket when connected
* @param failureHandler handler that will be called if WebSocket connection fails
* @return a reference to this, so the API can be used fluently
*/
@Deprecated()
public io.vertx.rxjava.core.http.HttpClient websocket(int port, String host, String requestURI, io.vertx.rxjava.core.MultiMap headers, io.vertx.core.http.WebsocketVersion version, Handler wsConnect, Handler failureHandler) {
delegate.websocket(port, host, requestURI, headers.getDelegate(), version, new Handler() {
public void handle(io.vertx.core.http.WebSocket event) {
wsConnect.handle(io.vertx.rxjava.core.http.WebSocket.newInstance((io.vertx.core.http.WebSocket)event));
}
}, failureHandler);
return this;
}
/**
* Connect a WebSocket to the specified host, relative request URI and default port with the specified headers and using
* the specified version of WebSockets
* @param host the host
* @param requestURI the relative URI
* @param headers the headers
* @param version the WebSocket version
* @param wsConnect handler that will be called with the WebSocket when connected
* @return a reference to this, so the API can be used fluently
*/
@Deprecated()
public io.vertx.rxjava.core.http.HttpClient websocket(String host, String requestURI, io.vertx.rxjava.core.MultiMap headers, io.vertx.core.http.WebsocketVersion version, Handler wsConnect) {
delegate.websocket(host, requestURI, headers.getDelegate(), version, new Handler() {
public void handle(io.vertx.core.http.WebSocket event) {
wsConnect.handle(io.vertx.rxjava.core.http.WebSocket.newInstance((io.vertx.core.http.WebSocket)event));
}
});
return this;
}
/**
* Connect a WebSocket to the specified host, relative request URI and default port with the specified headers and using
* the specified version of WebSockets
* @param host the host
* @param requestURI the relative URI
* @param headers the headers
* @param version the WebSocket version
* @param wsConnect handler that will be called with the WebSocket when connected
* @param failureHandler handler that will be called if WebSocket connection fails
* @return a reference to this, so the API can be used fluently
*/
@Deprecated()
public io.vertx.rxjava.core.http.HttpClient websocket(String host, String requestURI, io.vertx.rxjava.core.MultiMap headers, io.vertx.core.http.WebsocketVersion version, Handler wsConnect, Handler failureHandler) {
delegate.websocket(host, requestURI, headers.getDelegate(), version, new Handler() {
public void handle(io.vertx.core.http.WebSocket event) {
wsConnect.handle(io.vertx.rxjava.core.http.WebSocket.newInstance((io.vertx.core.http.WebSocket)event));
}
}, failureHandler);
return this;
}
/**
* Connect a WebSocket with the specified options, with the specified headers, using
* the specified version of WebSockets, and the specified WebSocket sub protocols
* @param options the request options
* @param headers the headers
* @param version the WebSocket version
* @param subProtocols the subprotocols to use
* @param wsConnect handler that will be called with the WebSocket when connected
* @return a reference to this, so the API can be used fluently
*/
@Deprecated()
public io.vertx.rxjava.core.http.HttpClient websocket(io.vertx.core.http.RequestOptions options, io.vertx.rxjava.core.MultiMap headers, io.vertx.core.http.WebsocketVersion version, String subProtocols, Handler wsConnect) {
delegate.websocket(options, headers.getDelegate(), version, subProtocols, new Handler() {
public void handle(io.vertx.core.http.WebSocket event) {
wsConnect.handle(io.vertx.rxjava.core.http.WebSocket.newInstance((io.vertx.core.http.WebSocket)event));
}
});
return this;
}
/**
* Connect a WebSocket to the specified port, host and relative request URI, with the specified headers, using
* the specified version of WebSockets, and the specified WebSocket sub protocols
* @param port the port
* @param host the host
* @param requestURI the relative URI
* @param headers the headers
* @param version the WebSocket version
* @param subProtocols the subprotocols to use
* @param wsConnect handler that will be called with the WebSocket when connected
* @return a reference to this, so the API can be used fluently
*/
@Deprecated()
public io.vertx.rxjava.core.http.HttpClient websocket(int port, String host, String requestURI, io.vertx.rxjava.core.MultiMap headers, io.vertx.core.http.WebsocketVersion version, String subProtocols, Handler wsConnect) {
delegate.websocket(port, host, requestURI, headers.getDelegate(), version, subProtocols, new Handler() {
public void handle(io.vertx.core.http.WebSocket event) {
wsConnect.handle(io.vertx.rxjava.core.http.WebSocket.newInstance((io.vertx.core.http.WebSocket)event));
}
});
return this;
}
/**
* Connect a WebSocket with the specified absolute url, with the specified headers, using
* the specified version of WebSockets, and the specified WebSocket sub protocols.
* @param url the absolute url
* @param headers the headers
* @param version the WebSocket version
* @param subProtocols the subprotocols to use
* @param wsConnect handler that will be called with the WebSocket when connected
* @param failureHandler handler that will be called if WebSocket connection fails
* @return a reference to this, so the API can be used fluently
*/
@Deprecated()
public io.vertx.rxjava.core.http.HttpClient websocketAbs(String url, io.vertx.rxjava.core.MultiMap headers, io.vertx.core.http.WebsocketVersion version, String subProtocols, Handler wsConnect, Handler failureHandler) {
delegate.websocketAbs(url, headers.getDelegate(), version, subProtocols, new Handler() {
public void handle(io.vertx.core.http.WebSocket event) {
wsConnect.handle(io.vertx.rxjava.core.http.WebSocket.newInstance((io.vertx.core.http.WebSocket)event));
}
}, failureHandler);
return this;
}
/**
* Connect a WebSocket with the specified options, with the specified headers, using
* the specified version of WebSockets, and the specified WebSocket sub protocols
* @param options the request options
* @param headers the headers
* @param version the WebSocket version
* @param subProtocols the subprotocols to use
* @param wsConnect handler that will be called with the WebSocket when connected
* @param failureHandler handler that will be called if WebSocket connection fails
* @return a reference to this, so the API can be used fluently
*/
@Deprecated()
public io.vertx.rxjava.core.http.HttpClient websocket(io.vertx.core.http.RequestOptions options, io.vertx.rxjava.core.MultiMap headers, io.vertx.core.http.WebsocketVersion version, String subProtocols, Handler wsConnect, Handler failureHandler) {
delegate.websocket(options, headers.getDelegate(), version, subProtocols, new Handler() {
public void handle(io.vertx.core.http.WebSocket event) {
wsConnect.handle(io.vertx.rxjava.core.http.WebSocket.newInstance((io.vertx.core.http.WebSocket)event));
}
}, failureHandler);
return this;
}
/**
* Connect a WebSocket to the specified port, host and relative request URI, with the specified headers, using
* the specified version of WebSockets, and the specified WebSocket sub protocols
* @param port the port
* @param host the host
* @param requestURI the relative URI
* @param headers the headers
* @param version the WebSocket version
* @param subProtocols the subprotocols to use
* @param wsConnect handler that will be called with the WebSocket when connected
* @param failureHandler handler that will be called if WebSocket connection fails
* @return a reference to this, so the API can be used fluently
*/
@Deprecated()
public io.vertx.rxjava.core.http.HttpClient websocket(int port, String host, String requestURI, io.vertx.rxjava.core.MultiMap headers, io.vertx.core.http.WebsocketVersion version, String subProtocols, Handler wsConnect, Handler failureHandler) {
delegate.websocket(port, host, requestURI, headers.getDelegate(), version, subProtocols, new Handler() {
public void handle(io.vertx.core.http.WebSocket event) {
wsConnect.handle(io.vertx.rxjava.core.http.WebSocket.newInstance((io.vertx.core.http.WebSocket)event));
}
}, failureHandler);
return this;
}
/**
* Connect a WebSocket to the specified host, relative request URI and default port, with the specified headers, using
* the specified version of WebSockets, and the specified WebSocket sub protocols
* @param host the host
* @param requestURI the relative URI
* @param headers the headers
* @param version the WebSocket version
* @param subProtocols the subprotocols to use
* @param wsConnect handler that will be called with the WebSocket when connected
* @return a reference to this, so the API can be used fluently
*/
@Deprecated()
public io.vertx.rxjava.core.http.HttpClient websocket(String host, String requestURI, io.vertx.rxjava.core.MultiMap headers, io.vertx.core.http.WebsocketVersion version, String subProtocols, Handler wsConnect) {
delegate.websocket(host, requestURI, headers.getDelegate(), version, subProtocols, new Handler() {
public void handle(io.vertx.core.http.WebSocket event) {
wsConnect.handle(io.vertx.rxjava.core.http.WebSocket.newInstance((io.vertx.core.http.WebSocket)event));
}
});
return this;
}
/**
* Connect a WebSocket to the specified host, relative request URI and default port, with the specified headers, using
* the specified version of WebSockets, and the specified WebSocket sub protocols
* @param host the host
* @param requestURI the relative URI
* @param headers the headers
* @param version the WebSocket version
* @param subProtocols the subprotocols to use
* @param wsConnect handler that will be called with the WebSocket when connected
* @param failureHandler handler that will be called if WebSocket connection fails
* @return a reference to this, so the API can be used fluently
*/
@Deprecated()
public io.vertx.rxjava.core.http.HttpClient websocket(String host, String requestURI, io.vertx.rxjava.core.MultiMap headers, io.vertx.core.http.WebsocketVersion version, String subProtocols, Handler wsConnect, Handler failureHandler) {
delegate.websocket(host, requestURI, headers.getDelegate(), version, subProtocols, new Handler() {
public void handle(io.vertx.core.http.WebSocket event) {
wsConnect.handle(io.vertx.rxjava.core.http.WebSocket.newInstance((io.vertx.core.http.WebSocket)event));
}
}, failureHandler);
return this;
}
/**
* Connect a WebSocket at the relative request URI using the default host and port
* @param requestURI the relative URI
* @param wsConnect handler that will be called with the WebSocket when connected
* @return a reference to this, so the API can be used fluently
*/
@Deprecated()
public io.vertx.rxjava.core.http.HttpClient websocket(String requestURI, Handler wsConnect) {
delegate.websocket(requestURI, new Handler() {
public void handle(io.vertx.core.http.WebSocket event) {
wsConnect.handle(io.vertx.rxjava.core.http.WebSocket.newInstance((io.vertx.core.http.WebSocket)event));
}
});
return this;
}
/**
* Connect a WebSocket at the relative request URI using the default host and port
* @param requestURI the relative URI
* @param wsConnect handler that will be called with the WebSocket when connected
* @param failureHandler handler that will be called if WebSocket connection fails
* @return a reference to this, so the API can be used fluently
*/
@Deprecated()
public io.vertx.rxjava.core.http.HttpClient websocket(String requestURI, Handler wsConnect, Handler failureHandler) {
delegate.websocket(requestURI, new Handler() {
public void handle(io.vertx.core.http.WebSocket event) {
wsConnect.handle(io.vertx.rxjava.core.http.WebSocket.newInstance((io.vertx.core.http.WebSocket)event));
}
}, failureHandler);
return this;
}
/**
* Connect a WebSocket at the relative request URI using the default host and port and the specified headers
* @param requestURI the relative URI
* @param headers the headers
* @param wsConnect handler that will be called with the WebSocket when connected
* @return a reference to this, so the API can be used fluently
*/
@Deprecated()
public io.vertx.rxjava.core.http.HttpClient websocket(String requestURI, io.vertx.rxjava.core.MultiMap headers, Handler wsConnect) {
delegate.websocket(requestURI, headers.getDelegate(), new Handler() {
public void handle(io.vertx.core.http.WebSocket event) {
wsConnect.handle(io.vertx.rxjava.core.http.WebSocket.newInstance((io.vertx.core.http.WebSocket)event));
}
});
return this;
}
/**
* Connect a WebSocket at the relative request URI using the default host and port and the specified headers
* @param requestURI the relative URI
* @param headers the headers
* @param wsConnect handler that will be called with the WebSocket when connected
* @param failureHandler handler that will be called if WebSocket connection fails
* @return a reference to this, so the API can be used fluently
*/
@Deprecated()
public io.vertx.rxjava.core.http.HttpClient websocket(String requestURI, io.vertx.rxjava.core.MultiMap headers, Handler wsConnect, Handler failureHandler) {
delegate.websocket(requestURI, headers.getDelegate(), new Handler() {
public void handle(io.vertx.core.http.WebSocket event) {
wsConnect.handle(io.vertx.rxjava.core.http.WebSocket.newInstance((io.vertx.core.http.WebSocket)event));
}
}, failureHandler);
return this;
}
/**
* Connect a WebSocket at the relative request URI using the default host and port, the specified headers and the
* specified version of WebSockets
* @param requestURI the relative URI
* @param headers the headers
* @param version the WebSocket version
* @param wsConnect handler that will be called with the WebSocket when connected
* @return a reference to this, so the API can be used fluently
*/
@Deprecated()
public io.vertx.rxjava.core.http.HttpClient websocket(String requestURI, io.vertx.rxjava.core.MultiMap headers, io.vertx.core.http.WebsocketVersion version, Handler wsConnect) {
delegate.websocket(requestURI, headers.getDelegate(), version, new Handler() {
public void handle(io.vertx.core.http.WebSocket event) {
wsConnect.handle(io.vertx.rxjava.core.http.WebSocket.newInstance((io.vertx.core.http.WebSocket)event));
}
});
return this;
}
/**
* Connect a WebSocket at the relative request URI using the default host and port, the specified headers and the
* specified version of WebSockets
* @param requestURI the relative URI
* @param headers the headers
* @param version the WebSocket version
* @param wsConnect handler that will be called with the WebSocket when connected
* @param failureHandler handler that will be called if WebSocket connection fails
* @return a reference to this, so the API can be used fluently
*/
@Deprecated()
public io.vertx.rxjava.core.http.HttpClient websocket(String requestURI, io.vertx.rxjava.core.MultiMap headers, io.vertx.core.http.WebsocketVersion version, Handler wsConnect, Handler failureHandler) {
delegate.websocket(requestURI, headers.getDelegate(), version, new Handler() {
public void handle(io.vertx.core.http.WebSocket event) {
wsConnect.handle(io.vertx.rxjava.core.http.WebSocket.newInstance((io.vertx.core.http.WebSocket)event));
}
}, failureHandler);
return this;
}
/**
* Connect a WebSocket at the relative request URI using the default host and port, the specified headers, the
* specified version of WebSockets and the specified sub protocols
* @param requestURI the relative URI
* @param headers the headers
* @param version the WebSocket version
* @param subProtocols the subprotocols
* @param wsConnect handler that will be called with the WebSocket when connected
* @return a reference to this, so the API can be used fluently
*/
@Deprecated()
public io.vertx.rxjava.core.http.HttpClient websocket(String requestURI, io.vertx.rxjava.core.MultiMap headers, io.vertx.core.http.WebsocketVersion version, String subProtocols, Handler wsConnect) {
delegate.websocket(requestURI, headers.getDelegate(), version, subProtocols, new Handler() {
public void handle(io.vertx.core.http.WebSocket event) {
wsConnect.handle(io.vertx.rxjava.core.http.WebSocket.newInstance((io.vertx.core.http.WebSocket)event));
}
});
return this;
}
/**
* Connect a WebSocket at the relative request URI using the default host and port, the specified headers, the
* specified version of WebSockets and the specified sub protocols
* @param requestURI the relative URI
* @param headers the headers
* @param version the WebSocket version
* @param subProtocols the subprotocols
* @param wsConnect handler that will be called with the WebSocket when connected
* @param failureHandler handler that will be called if WebSocket connection fails
* @return a reference to this, so the API can be used fluently
*/
@Deprecated()
public io.vertx.rxjava.core.http.HttpClient websocket(String requestURI, io.vertx.rxjava.core.MultiMap headers, io.vertx.core.http.WebsocketVersion version, String subProtocols, Handler wsConnect, Handler failureHandler) {
delegate.websocket(requestURI, headers.getDelegate(), version, subProtocols, new Handler() {
public void handle(io.vertx.core.http.WebSocket event) {
wsConnect.handle(io.vertx.rxjava.core.http.WebSocket.newInstance((io.vertx.core.http.WebSocket)event));
}
}, failureHandler);
return this;
}
/**
* Connect a WebSocket to the specified port, host and relative request URI
* @param port the port
* @param host the host
* @param requestURI the relative URI
* @param handler handler that will be called with the WebSocket when connected
*/
public void webSocket(int port, String host, String requestURI, Handler> handler) {
delegate.webSocket(port, host, requestURI, new Handler>() {
public void handle(AsyncResult ar) {
if (ar.succeeded()) {
handler.handle(io.vertx.core.Future.succeededFuture(io.vertx.rxjava.core.http.WebSocket.newInstance((io.vertx.core.http.WebSocket)ar.result())));
} else {
handler.handle(io.vertx.core.Future.failedFuture(ar.cause()));
}
}
});
}
/**
* Connect a WebSocket to the specified port, host and relative request URI
* @param port the port
* @param host the host
* @param requestURI the relative URI
* @return
* @deprecated use {@link #rxWebSocket} instead
*/
@Deprecated()
public Observable webSocketObservable(int port, String host, String requestURI) {
io.vertx.rx.java.ObservableFuture handler = io.vertx.rx.java.RxHelper.observableFuture();
webSocket(port, host, requestURI, handler.toHandler());
return handler;
}
/**
* Connect a WebSocket to the specified port, host and relative request URI
* @param port the port
* @param host the host
* @param requestURI the relative URI
* @return
*/
public Single rxWebSocket(int port, String host, String requestURI) {
return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> {
webSocket(port, host, requestURI, fut);
}));
}
/**
* Connect a WebSocket to the host and relative request URI and default port
* @param host the host
* @param requestURI the relative URI
* @param handler handler that will be called with the WebSocket when connected
*/
public void webSocket(String host, String requestURI, Handler> handler) {
delegate.webSocket(host, requestURI, new Handler>() {
public void handle(AsyncResult ar) {
if (ar.succeeded()) {
handler.handle(io.vertx.core.Future.succeededFuture(io.vertx.rxjava.core.http.WebSocket.newInstance((io.vertx.core.http.WebSocket)ar.result())));
} else {
handler.handle(io.vertx.core.Future.failedFuture(ar.cause()));
}
}
});
}
/**
* Connect a WebSocket to the host and relative request URI and default port
* @param host the host
* @param requestURI the relative URI
* @return
* @deprecated use {@link #rxWebSocket} instead
*/
@Deprecated()
public Observable webSocketObservable(String host, String requestURI) {
io.vertx.rx.java.ObservableFuture handler = io.vertx.rx.java.RxHelper.observableFuture();
webSocket(host, requestURI, handler.toHandler());
return handler;
}
/**
* Connect a WebSocket to the host and relative request URI and default port
* @param host the host
* @param requestURI the relative URI
* @return
*/
public Single rxWebSocket(String host, String requestURI) {
return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> {
webSocket(host, requestURI, fut);
}));
}
/**
* Connect a WebSocket at the relative request URI using the default host and port
* @param requestURI the relative URI
* @param handler handler that will be called with the WebSocket when connected
*/
public void webSocket(String requestURI, Handler> handler) {
delegate.webSocket(requestURI, new Handler>() {
public void handle(AsyncResult ar) {
if (ar.succeeded()) {
handler.handle(io.vertx.core.Future.succeededFuture(io.vertx.rxjava.core.http.WebSocket.newInstance((io.vertx.core.http.WebSocket)ar.result())));
} else {
handler.handle(io.vertx.core.Future.failedFuture(ar.cause()));
}
}
});
}
/**
* Connect a WebSocket at the relative request URI using the default host and port
* @param requestURI the relative URI
* @return
* @deprecated use {@link #rxWebSocket} instead
*/
@Deprecated()
public Observable webSocketObservable(String requestURI) {
io.vertx.rx.java.ObservableFuture handler = io.vertx.rx.java.RxHelper.observableFuture();
webSocket(requestURI, handler.toHandler());
return handler;
}
/**
* Connect a WebSocket at the relative request URI using the default host and port
* @param requestURI the relative URI
* @return
*/
public Single rxWebSocket(String requestURI) {
return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> {
webSocket(requestURI, fut);
}));
}
/**
* Connect a WebSocket with the specified options.
* @param options the request options
* @param handler
*/
public void webSocket(io.vertx.core.http.WebSocketConnectOptions options, Handler> handler) {
delegate.webSocket(options, new Handler>() {
public void handle(AsyncResult ar) {
if (ar.succeeded()) {
handler.handle(io.vertx.core.Future.succeededFuture(io.vertx.rxjava.core.http.WebSocket.newInstance((io.vertx.core.http.WebSocket)ar.result())));
} else {
handler.handle(io.vertx.core.Future.failedFuture(ar.cause()));
}
}
});
}
/**
* Connect a WebSocket with the specified options.
* @param options the request options
* @return
* @deprecated use {@link #rxWebSocket} instead
*/
@Deprecated()
public Observable webSocketObservable(io.vertx.core.http.WebSocketConnectOptions options) {
io.vertx.rx.java.ObservableFuture handler = io.vertx.rx.java.RxHelper.observableFuture();
webSocket(options, handler.toHandler());
return handler;
}
/**
* Connect a WebSocket with the specified options.
* @param options the request options
* @return
*/
public Single rxWebSocket(io.vertx.core.http.WebSocketConnectOptions options) {
return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> {
webSocket(options, fut);
}));
}
/**
* Connect a WebSocket with the specified absolute url, with the specified headers, using
* the specified version of WebSockets, and the specified WebSocket sub protocols.
* @param url the absolute url
* @param headers the headers
* @param version the WebSocket version
* @param subProtocols the subprotocols to use
* @param handler handler that will be called if WebSocket connection fails
*/
public void webSocketAbs(String url, io.vertx.rxjava.core.MultiMap headers, io.vertx.core.http.WebsocketVersion version, List subProtocols, Handler> handler) {
delegate.webSocketAbs(url, headers.getDelegate(), version, subProtocols, new Handler>() {
public void handle(AsyncResult