Class WebClient
- All Implemented Interfaces:
io.vertx.lang.rx.RxDelegate
- Direct Known Subclasses:
OAuth2WebClient, WebClientSession
WebClient.
The web client makes easy to do HTTP request/response interactions with a web server, and provides advanced features like:
- Json body encoding / decoding
- request/response pumping
- error handling
The web client does not deprecate the , it is actually based on it and therefore inherits
its configuration and great features like pooling. The HttpClient should be used when fine grained control over the HTTP
requests/response is necessary.
NOTE: This class has been automatically generated from the original non RX-ified interface using Vert.x codegen.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close the client.static WebClientCreate a web client using the providedvertxinstance and default options.static WebClientcreate(Vertx vertx, WebClientConfig config) Create a web client using the providedvertxinstance and default pooling options.static WebClientcreate(Vertx vertx, WebClientConfig config, PoolOptions poolOptions) Create a web client using the providedvertxinstance.static WebClientcreate(Vertx vertx, WebClientConfig config, ClientSSLOptions sslOptions) Create a web client using the providedvertxinstance, SSL options and default pooling options.static WebClientcreate(Vertx vertx, WebClientConfig config, ClientSSLOptions sslOptions, PoolOptions poolOptions) Create a web client using the providedvertxinstance and SSL options.static WebClientcreate(Vertx vertx, WebClientOptions options) Create a web client using the providedvertxinstance and default pooling options.static WebClientcreate(Vertx vertx, WebClientOptions options, PoolOptions poolOptions) Create a web client using the providedvertxinstance.delete(int port, String host, UriTemplate requestURI) Create an HTTP DELETE request to send to the server at the specified host and port.Create an HTTP DELETE request to send to the server at the specified host and port.delete(UriTemplate requestURI) Create an HTTP DELETE request to send to the server at the default host and port.Create an HTTP DELETE request to send to the server at the default host and port.delete(String host, UriTemplate requestURI) Create an HTTP DELETE request to send to the server at the specified host and default port.Create an HTTP DELETE request to send to the server at the specified host and default port.deleteAbs(UriTemplate absoluteURI) Create an HTTP DELETE request to send to the server using an absolute URI, specifying a response handler to receive the responseCreate an HTTP DELETE request to send to the server using an absolute URI, specifying a response handler to receive the responsebooleanget(int port, String host, UriTemplate requestURI) Create an HTTP GET request to send to the server at the specified host and port.Create an HTTP GET request to send to the server at the specified host and port.get(UriTemplate requestURI) Create an HTTP GET request to send to the server at the default host and port.Create an HTTP GET request to send to the server at the default host and port.get(String host, UriTemplate requestURI) Create an HTTP GET request to send to the server at the specified host and default port.Create an HTTP GET request to send to the server at the specified host and default port.getAbs(UriTemplate absoluteURI) Create an HTTP GET request to send to the server using an absolute URI, specifying a response handler to receive the responseCreate an HTTP GET request to send to the server using an absolute URI, specifying a response handler to receive the responseinthashCode()head(int port, String host, UriTemplate requestURI) Create an HTTP HEAD request to send to the server at the specified host and port.Create an HTTP HEAD request to send to the server at the specified host and port.head(UriTemplate requestURI) Create an HTTP HEAD request to send to the server at the default host and port.Create an HTTP HEAD request to send to the server at the default host and port.head(String host, UriTemplate requestURI) Create an HTTP HEAD request to send to the server at the specified host and default port.Create an HTTP HEAD request to send to the server at the specified host and default port.headAbs(UriTemplate absoluteURI) Create an HTTP HEAD request to send to the server using an absolute URI, specifying a response handler to receive the responseCreate an HTTP HEAD request to send to the server using an absolute URI, specifying a response handler to receive the responsestatic WebClientnewInstance(WebClient arg) patch(int port, String host, UriTemplate requestURI) Create an HTTP PATCH request to send to the server at the specified host and port.Create an HTTP PATCH request to send to the server at the specified host and port.patch(UriTemplate requestURI) Create an HTTP PATCH request to send to the server at the default host and port.Create an HTTP PATCH request to send to the server at the default host and port.patch(String host, UriTemplate requestURI) Create an HTTP PATCH request to send to the server at the specified host and default port.Create an HTTP PATCH request to send to the server at the specified host and default port.patchAbs(UriTemplate absoluteURI) Create an HTTP PATCH request to send to the server using an absolute URI, specifying a response handler to receive the responseCreate an HTTP PATCH request to send to the server using an absolute URI, specifying a response handler to receive the responsepost(int port, String host, UriTemplate requestURI) Create an HTTP POST request to send to the server at the specified host and port.Create an HTTP POST request to send to the server at the specified host and port.post(UriTemplate requestURI) Create an HTTP POST request to send to the server at the default host and port.Create an HTTP POST request to send to the server at the default host and port.post(String host, UriTemplate requestURI) Create an HTTP POST request to send to the server at the specified host and default port.Create an HTTP POST request to send to the server at the specified host and default port.postAbs(UriTemplate absoluteURI) Create an HTTP POST request to send to the server using an absolute URI, specifying a response handler to receive the responseCreate an HTTP POST request to send to the server using an absolute URI, specifying a response handler to receive the responseput(int port, String host, UriTemplate requestURI) Create an HTTP PUT request to send to the server at the specified host and port.Create an HTTP PUT request to send to the server at the specified host and port.put(UriTemplate requestURI) Create an HTTP PUT request to send to the server at the default host and port.Create an HTTP PUT request to send to the server at the default host and port.put(String host, UriTemplate requestURI) Create an HTTP PUT request to send to the server at the specified host and default port.Create an HTTP PUT request to send to the server at the specified host and default port.putAbs(UriTemplate absoluteURI) Create an HTTP PUT request to send to the server using an absolute URI, specifying a response handler to receive the responseCreate an HTTP PUT request to send to the server using an absolute URI, specifying a response handler to receive the responserequest(HttpMethod method, int port, String host, UriTemplate requestURI) Create an HTTP request to send to the server at the specified host and port.request(HttpMethod method, int port, String host, String requestURI) Create an HTTP request to send to the server at the specified host and port.request(HttpMethod method, RequestOptions options) Deprecated.request(HttpMethod method, SocketAddress serverAddress, int port, String host, UriTemplate requestURI) Likerequest(HttpMethod, int, String, String)using theserverAddressparameter to connect to the server instead of theportandhostparameters.request(HttpMethod method, SocketAddress serverAddress, int port, String host, String requestURI) Likerequest(HttpMethod, int, String, String)using theserverAddressparameter to connect to the server instead of theportandhostparameters.request(HttpMethod method, SocketAddress serverAddress, RequestOptions options) Deprecated.request(HttpMethod method, SocketAddress serverAddress, UriTemplate requestURI) Likerequest(HttpMethod, int, String, String)using theserverAddressparameter to connect to the server instead of the default port and default host.request(HttpMethod method, SocketAddress serverAddress, String requestURI) Likerequest(HttpMethod, int, String, String)using theserverAddressparameter to connect to the server instead of the default port and default host.request(HttpMethod method, SocketAddress serverAddress, String host, UriTemplate requestURI) Likerequest(HttpMethod, int, String, String)using theserverAddressparameter to connect to the server instead of the default port andhostparameter.request(HttpMethod method, SocketAddress serverAddress, String host, String requestURI) Likerequest(HttpMethod, int, String, String)using theserverAddressparameter to connect to the server instead of the default port andhostparameter.request(HttpMethod method, UriTemplate requestURI) Create an HTTP request to send to the server at the default host and port.request(HttpMethod method, String requestURI) Create an HTTP request to send to the server at the default host and port.request(HttpMethod method, String host, UriTemplate requestURI) Create an HTTP request to send to the server at the specified host and default port.request(HttpMethod method, String host, String requestURI) Create an HTTP request to send to the server at the specified host and default port.request(RequestOptions options) Create an HTTP request to send to the server from the specified requestoptions.requestAbs(HttpMethod method, SocketAddress serverAddress, UriTemplate absoluteURI) LikerequestAbs(HttpMethod, String)using theserverAddressparameter to connect to the server instead of theabsoluteURIparameter.requestAbs(HttpMethod method, SocketAddress serverAddress, String absoluteURI) LikerequestAbs(HttpMethod, String)using theserverAddressparameter to connect to the server instead of theabsoluteURIparameter.requestAbs(HttpMethod method, UriTemplate absoluteURI) Create an HTTP request to send to the server using an absolute URIrequestAbs(HttpMethod method, String absoluteURI) Create an HTTP request to send to the server using an absolute URIrxUpdateSSLOptions(ClientSSLOptions options) Update the client with new SSLoptions, the update happens if the options object is valid and different from the existing options object.rxUpdateSSLOptions(ClientSSLOptions options, boolean force) Update the client with new SSLoptions, the update happens if the options object is valid and different from the existing options object.toString()updateSSLOptions(ClientSSLOptions options) Update the client with new SSLoptions, the update happens if the options object is valid and different from the existing options object.updateSSLOptions(ClientSSLOptions options, boolean force) Update the client with new SSLoptions, the update happens if the options object is valid and different from the existing options object.static WebClientwrap(HttpClient httpClient) Wrap anhttpClientwith a web client and default options.static WebClientwrap(HttpClient httpClient, WebClientOptions options) Wrap anhttpClientwith a web client and default options.
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
WebClient
-
WebClient
-
-
Method Details
-
toString
-
equals
-
hashCode
-
getDelegate
- Specified by:
getDelegatein interfaceio.vertx.lang.rx.RxDelegate
-
create
-
create
Create a web client using the providedvertxinstance and default pooling options.- Parameters:
vertx- the vertx instanceoptions- the Web Client options- Returns:
- the created web client
-
create
Create a web client using the providedvertxinstance.- Parameters:
vertx- the vertx instanceoptions- the Web Client optionspoolOptions- the HTTP Client pool options- Returns:
- the created web client
-
create
Create a web client using the providedvertxinstance and default pooling options.- Parameters:
vertx- the vertx instanceconfig- the Web Client config- Returns:
- the created web client
-
create
Create a web client using the providedvertxinstance.- Parameters:
vertx- the vertx instanceconfig- the Web Client configpoolOptions- the HTTP Client pool options- Returns:
- the created web client
-
create
Create a web client using the providedvertxinstance, SSL options and default pooling options.- Parameters:
vertx- the vertx instanceconfig- the Web Client configsslOptions- the SSL options- Returns:
- the created web client
-
create
public static WebClient create(Vertx vertx, WebClientConfig config, ClientSSLOptions sslOptions, PoolOptions poolOptions) Create a web client using the providedvertxinstance and SSL options.- Parameters:
vertx- the vertx instanceconfig- the Web Client configsslOptions- the SSL optionspoolOptions- the HTTP Client pool options- Returns:
- the created web client
-
wrap
Wrap anhttpClientwith a web client and default options.- Parameters:
httpClient- the to wrap- Returns:
- the web client
-
wrap
Wrap anhttpClientwith a web client and default options.Only the specific web client portion of the
optionsis used, theHttpClientOptionsof thehttpClientis reused.- Parameters:
httpClient- the to wrapoptions- the Web Client options- Returns:
- the web client
-
request
Create an HTTP request to send to the server at the specified host and port.- Parameters:
method- the HTTP methodport- the porthost- the hostrequestURI- the request URI- Returns:
- an HTTP client request object
-
request
public HttpRequest<Buffer> request(HttpMethod method, int port, String host, UriTemplate requestURI) Create an HTTP request to send to the server at the specified host and port.- Parameters:
method- the HTTP methodport- the porthost- the hostrequestURI- the request URI as a- Returns:
- an HTTP client request object
-
request
public HttpRequest<Buffer> request(HttpMethod method, SocketAddress serverAddress, int port, String host, String requestURI) Likerequest(HttpMethod, int, String, String)using theserverAddressparameter to connect to the server instead of theportandhostparameters.The request host header will still be created from the
portandhostparameters.Use to connect to a unix domain socket server.
- Parameters:
method-serverAddress-port-host-requestURI-- Returns:
-
request
public HttpRequest<Buffer> request(HttpMethod method, SocketAddress serverAddress, int port, String host, UriTemplate requestURI) Likerequest(HttpMethod, int, String, String)using theserverAddressparameter to connect to the server instead of theportandhostparameters.The request host header will still be created from the
portandhostparameters.Use to connect to a unix domain socket server.
- Parameters:
method-serverAddress-port-host-requestURI-- Returns:
-
request
Create an HTTP request to send to the server at the specified host and default port.- Parameters:
method- the HTTP methodhost- the hostrequestURI- the request URI- Returns:
- an HTTP client request object
-
request
Create an HTTP request to send to the server at the specified host and default port.- Parameters:
method- the HTTP methodhost- the hostrequestURI- the request URI as a- Returns:
- an HTTP client request object
-
request
public HttpRequest<Buffer> request(HttpMethod method, SocketAddress serverAddress, String host, String requestURI) Likerequest(HttpMethod, int, String, String)using theserverAddressparameter to connect to the server instead of the default port andhostparameter.The request host header will still be created from the default port and
hostparameter.Use to connect to a unix domain socket server.
- Parameters:
method-serverAddress-host-requestURI-- Returns:
-
request
public HttpRequest<Buffer> request(HttpMethod method, SocketAddress serverAddress, String host, UriTemplate requestURI) Likerequest(HttpMethod, int, String, String)using theserverAddressparameter to connect to the server instead of the default port andhostparameter.The request host header will still be created from the default port and
hostparameter.Use to connect to a unix domain socket server.
- Parameters:
method-serverAddress-host-requestURI-- Returns:
-
request
Create an HTTP request to send to the server at the default host and port.- Parameters:
method- the HTTP methodrequestURI- the request URI- Returns:
- an HTTP client request object
-
request
Create an HTTP request to send to the server at the default host and port.- Parameters:
method- the HTTP methodrequestURI- the request URI as a- Returns:
- an HTTP client request object
-
request
public HttpRequest<Buffer> request(HttpMethod method, SocketAddress serverAddress, String requestURI) Likerequest(HttpMethod, int, String, String)using theserverAddressparameter to connect to the server instead of the default port and default host.The request host header will still be created from the default port and default host.
Use to connect to a unix domain socket server.
- Parameters:
method-serverAddress-requestURI-- Returns:
-
request
public HttpRequest<Buffer> request(HttpMethod method, SocketAddress serverAddress, UriTemplate requestURI) Likerequest(HttpMethod, int, String, String)using theserverAddressparameter to connect to the server instead of the default port and default host.The request host header will still be created from the default port and default host.
Use to connect to a unix domain socket server.
- Parameters:
method-serverAddress-requestURI-- Returns:
-
request
Create an HTTP request to send to the server from the specified requestoptions.- Parameters:
options- the request options- Returns:
- an HTTP client request object
-
request
Deprecated.Create an HTTP request to send to the server at the specified host and port.- Parameters:
method- the HTTP methodoptions- the request options- Returns:
- an HTTP client request object
-
request
@Deprecated public HttpRequest<Buffer> request(HttpMethod method, SocketAddress serverAddress, RequestOptions options) Deprecated.Likerequest(HttpMethod, int, String, String)using theserverAddressparameter to connect to the server instead of theoptionsparameter.The request host header will still be created from the
optionsparameter.Use to connect to a unix domain socket server.
- Parameters:
method-serverAddress-options-- Returns:
-
requestAbs
Create an HTTP request to send to the server using an absolute URI- Parameters:
method- the HTTP methodabsoluteURI- the absolute URI- Returns:
- an HTTP client request object
-
requestAbs
Create an HTTP request to send to the server using an absolute URI- Parameters:
method- the HTTP methodabsoluteURI- the absolute URI as a- Returns:
- an HTTP client request object
-
requestAbs
public HttpRequest<Buffer> requestAbs(HttpMethod method, SocketAddress serverAddress, String absoluteURI) LikerequestAbs(HttpMethod, String)using theserverAddressparameter to connect to the server instead of theabsoluteURIparameter.The request host header will still be created from the
absoluteURIparameter.Use to connect to a unix domain socket server.
- Parameters:
method-serverAddress-absoluteURI-- Returns:
-
requestAbs
public HttpRequest<Buffer> requestAbs(HttpMethod method, SocketAddress serverAddress, UriTemplate absoluteURI) LikerequestAbs(HttpMethod, String)using theserverAddressparameter to connect to the server instead of theabsoluteURIparameter.The request host header will still be created from the
absoluteURIparameter.Use to connect to a unix domain socket server.
- Parameters:
method-serverAddress-absoluteURI-- Returns:
-
get
Create an HTTP GET request to send to the server at the default host and port.- Parameters:
requestURI- the request URI- Returns:
- an HTTP client request object
-
get
Create an HTTP GET request to send to the server at the default host and port.- Parameters:
requestURI- the request URI as a- Returns:
- an HTTP client request object
-
get
Create an HTTP GET request to send to the server at the specified host and port.- Parameters:
port- the porthost- the hostrequestURI- the request URI- Returns:
- an HTTP client request object
-
get
Create an HTTP GET request to send to the server at the specified host and port.- Parameters:
port- the porthost- the hostrequestURI- the request URI as a- Returns:
- an HTTP client request object
-
get
Create an HTTP GET request to send to the server at the specified host and default port.- Parameters:
host- the hostrequestURI- the request URI- Returns:
- an HTTP client request object
-
get
Create an HTTP GET request to send to the server at the specified host and default port.- Parameters:
host- the hostrequestURI- the request URI as a- Returns:
- an HTTP client request object
-
getAbs
Create an HTTP GET request to send to the server using an absolute URI, specifying a response handler to receive the response- Parameters:
absoluteURI- the absolute URI- Returns:
- an HTTP client request object
-
getAbs
Create an HTTP GET request to send to the server using an absolute URI, specifying a response handler to receive the response- Parameters:
absoluteURI- the absolute URI as a- Returns:
- an HTTP client request object
-
post
Create an HTTP POST request to send to the server at the default host and port.- Parameters:
requestURI- the request URI- Returns:
- an HTTP client request object
-
post
Create an HTTP POST request to send to the server at the default host and port.- Parameters:
requestURI- the request URI as a- Returns:
- an HTTP client request object
-
post
Create an HTTP POST request to send to the server at the specified host and port.- Parameters:
port- the porthost- the hostrequestURI- the request URI- Returns:
- an HTTP client request object
-
post
Create an HTTP POST request to send to the server at the specified host and port.- Parameters:
port- the porthost- the hostrequestURI- the request URI as a- Returns:
- an HTTP client request object
-
post
Create an HTTP POST request to send to the server at the specified host and default port.- Parameters:
host- the hostrequestURI- the request URI- Returns:
- an HTTP client request object
-
post
Create an HTTP POST request to send to the server at the specified host and default port.- Parameters:
host- the hostrequestURI- the request URI as a- Returns:
- an HTTP client request object
-
postAbs
Create an HTTP POST request to send to the server using an absolute URI, specifying a response handler to receive the response- Parameters:
absoluteURI- the absolute URI- Returns:
- an HTTP client request object
-
postAbs
Create an HTTP POST request to send to the server using an absolute URI, specifying a response handler to receive the response- Parameters:
absoluteURI- the absoluate URI as a- Returns:
- an HTTP client request object
-
put
Create an HTTP PUT request to send to the server at the default host and port.- Parameters:
requestURI- the request URI- Returns:
- an HTTP client request object
-
put
Create an HTTP PUT request to send to the server at the default host and port.- Parameters:
requestURI- the request URI as a- Returns:
- an HTTP client request object
-
put
Create an HTTP PUT request to send to the server at the specified host and port.- Parameters:
port- the porthost- the hostrequestURI- the request URI- Returns:
- an HTTP client request object
-
put
Create an HTTP PUT request to send to the server at the specified host and port.- Parameters:
port- the porthost- the hostrequestURI- the request URI as a- Returns:
- an HTTP client request object
-
put
Create an HTTP PUT request to send to the server at the specified host and default port.- Parameters:
host- the hostrequestURI- the request URI- Returns:
- an HTTP client request object
-
put
Create an HTTP PUT request to send to the server at the specified host and default port.- Parameters:
host- the hostrequestURI- the request URI as a- Returns:
- an HTTP client request object
-
putAbs
Create an HTTP PUT request to send to the server using an absolute URI, specifying a response handler to receive the response- Parameters:
absoluteURI- the absolute URI- Returns:
- an HTTP client request object
-
putAbs
Create an HTTP PUT request to send to the server using an absolute URI, specifying a response handler to receive the response- Parameters:
absoluteURI- the absolute URI as a- Returns:
- an HTTP client request object
-
delete
Create an HTTP DELETE request to send to the server at the default host and port.- Parameters:
requestURI- the request URI- Returns:
- an HTTP client request object
-
delete
Create an HTTP DELETE request to send to the server at the default host and port.- Parameters:
requestURI- the request URI as a- Returns:
- an HTTP client request object
-
delete
Create an HTTP DELETE request to send to the server at the specified host and port.- Parameters:
port- the porthost- the hostrequestURI- the request URI- Returns:
- an HTTP client request object
-
delete
Create an HTTP DELETE request to send to the server at the specified host and port.- Parameters:
port- the porthost- the hostrequestURI- the request URI as a- Returns:
- an HTTP client request object
-
delete
Create an HTTP DELETE request to send to the server at the specified host and default port.- Parameters:
host- the hostrequestURI- the request URI- Returns:
- an HTTP client request object
-
delete
Create an HTTP DELETE request to send to the server at the specified host and default port.- Parameters:
host- the hostrequestURI- the request URI as a- Returns:
- an HTTP client request object
-
deleteAbs
Create an HTTP DELETE request to send to the server using an absolute URI, specifying a response handler to receive the response- Parameters:
absoluteURI- the absolute URI- Returns:
- an HTTP client request object
-
deleteAbs
Create an HTTP DELETE request to send to the server using an absolute URI, specifying a response handler to receive the response- Parameters:
absoluteURI- the absolute URI as a- Returns:
- an HTTP client request object
-
patch
Create an HTTP PATCH request to send to the server at the default host and port.- Parameters:
requestURI- the request URI- Returns:
- an HTTP client request object
-
patch
Create an HTTP PATCH request to send to the server at the default host and port.- Parameters:
requestURI- the request URI as a- Returns:
- an HTTP client request object
-
patch
Create an HTTP PATCH request to send to the server at the specified host and port.- Parameters:
port- the porthost- the hostrequestURI- the request URI- Returns:
- an HTTP client request object
-
patch
Create an HTTP PATCH request to send to the server at the specified host and port.- Parameters:
port- the porthost- the hostrequestURI- the request URI as a- Returns:
- an HTTP client request object
-
patch
Create an HTTP PATCH request to send to the server at the specified host and default port.- Parameters:
host- the hostrequestURI- the request URI- Returns:
- an HTTP client request object
-
patch
Create an HTTP PATCH request to send to the server at the specified host and default port.- Parameters:
host- the hostrequestURI- the request URI as a- Returns:
- an HTTP client request object
-
patchAbs
Create an HTTP PATCH request to send to the server using an absolute URI, specifying a response handler to receive the response- Parameters:
absoluteURI- the absolute URI- Returns:
- an HTTP client request object
-
patchAbs
Create an HTTP PATCH request to send to the server using an absolute URI, specifying a response handler to receive the response- Parameters:
absoluteURI- the absolute URI as a- Returns:
- an HTTP client request object
-
head
Create an HTTP HEAD request to send to the server at the default host and port.- Parameters:
requestURI- the request URI- Returns:
- an HTTP client request object
-
head
Create an HTTP HEAD request to send to the server at the default host and port.- Parameters:
requestURI- the request URI as a- Returns:
- an HTTP client request object
-
head
Create an HTTP HEAD request to send to the server at the specified host and port.- Parameters:
port- the porthost- the hostrequestURI- the request URI- Returns:
- an HTTP client request object
-
head
Create an HTTP HEAD request to send to the server at the specified host and port.- Parameters:
port- the porthost- the hostrequestURI- the request URI as a- Returns:
- an HTTP client request object
-
head
Create an HTTP HEAD request to send to the server at the specified host and default port.- Parameters:
host- the hostrequestURI- the request URI- Returns:
- an HTTP client request object
-
head
Create an HTTP HEAD request to send to the server at the specified host and default port.- Parameters:
host- the hostrequestURI- the request URI as a- Returns:
- an HTTP client request object
-
headAbs
Create an HTTP HEAD request to send to the server using an absolute URI, specifying a response handler to receive the response- Parameters:
absoluteURI- the absolute URI- Returns:
- an HTTP client request object
-
headAbs
Create an HTTP HEAD request to send to the server using an absolute URI, specifying a response handler to receive the response- Parameters:
absoluteURI- the absolute URI as a- Returns:
- an HTTP client request object
-
updateSSLOptions
Update the client with new SSL
options, the update happens if the options object is valid and different from the existing options object.The boolean succeeded future result indicates whether the update occurred.
- Parameters:
options- the new SSL options- Returns:
- a future signaling the update success
-
rxUpdateSSLOptions
Update the client with new SSL
options, the update happens if the options object is valid and different from the existing options object.The boolean succeeded future result indicates whether the update occurred.
- Parameters:
options- the new SSL options- Returns:
- a future signaling the update success
-
updateSSLOptions
Update the client with new SSL
options, the update happens if the options object is valid and different from the existing options object.The
optionsobject is compared using itsequalsmethod against the existing options to prevent an update when the objects are equals since loading options can be costly, this can happen for share TCP servers. When object are equals, settingforcetotrueforces the update.The boolean succeeded future result indicates whether the update occurred.
- Parameters:
options- the new SSL optionsforce- force the update when options are equals- Returns:
- a future signaling the update success
-
rxUpdateSSLOptions
Update the client with new SSL
options, the update happens if the options object is valid and different from the existing options object.The
optionsobject is compared using itsequalsmethod against the existing options to prevent an update when the objects are equals since loading options can be costly, this can happen for share TCP servers. When object are equals, settingforcetotrueforces the update.The boolean succeeded future result indicates whether the update occurred.
- Parameters:
options- the new SSL optionsforce- force the update when options are equals- Returns:
- a future signaling the update success
-
close
public void close()Close the client. Closing will close down any pooled connections. Clients should always be closed after use. -
newInstance
-