Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<HttpEndpoint> |
__TYPE_ARG |
static String |
TYPE |
static String |
UNKNOWN
Unknown type.
|
Constructor and Description |
---|
HttpEndpoint(HttpEndpoint delegate) |
HttpEndpoint(Object delegate) |
Modifier and Type | Method and Description |
---|---|
static Record |
createRecord(String name,
boolean ssl,
String host,
int port,
String root,
JsonObject metadata)
Same as
createRecord(java.lang.String, java.lang.String, int, java.lang.String, io.vertx.core.json.JsonObject) but let you configure whether or not the
service is using https . |
static Record |
createRecord(String name,
String host)
Same as
createRecord(java.lang.String, java.lang.String, int, java.lang.String, io.vertx.core.json.JsonObject) but without metadata, using the port 80
and using "/" as root. |
static Record |
createRecord(String name,
String host,
int port,
String root)
Same as
createRecord(java.lang.String, java.lang.String, int, java.lang.String, io.vertx.core.json.JsonObject) but without metadata. |
static Record |
createRecord(String name,
String host,
int port,
String root,
JsonObject metadata)
Convenient method to create a record for a HTTP endpoint.
|
boolean |
equals(Object o) |
static void |
getClient(ServiceDiscovery discovery,
java.util.function.Function<Record,Boolean> filter)
Convenient method that looks for a HTTP endpoint and provides the configured .
|
static void |
getClient(ServiceDiscovery discovery,
java.util.function.Function<Record,Boolean> filter,
Handler<AsyncResult<HttpClient>> resultHandler)
Convenient method that looks for a HTTP endpoint and provides the configured .
|
static void |
getClient(ServiceDiscovery discovery,
java.util.function.Function<Record,Boolean> filter,
JsonObject conf)
Convenient method that looks for a HTTP endpoint and provides the configured .
|
static void |
getClient(ServiceDiscovery discovery,
java.util.function.Function<Record,Boolean> filter,
JsonObject conf,
Handler<AsyncResult<HttpClient>> resultHandler)
Convenient method that looks for a HTTP endpoint and provides the configured .
|
static void |
getClient(ServiceDiscovery discovery,
JsonObject filter)
Convenient method that looks for a HTTP endpoint and provides the configured .
|
static void |
getClient(ServiceDiscovery discovery,
JsonObject filter,
Handler<AsyncResult<HttpClient>> resultHandler)
Convenient method that looks for a HTTP endpoint and provides the configured .
|
static void |
getClient(ServiceDiscovery discovery,
JsonObject filter,
JsonObject conf)
Convenient method that looks for a HTTP endpoint and provides the configured .
|
static void |
getClient(ServiceDiscovery discovery,
JsonObject filter,
JsonObject conf,
Handler<AsyncResult<HttpClient>> resultHandler)
Convenient method that looks for a HTTP endpoint and provides the configured .
|
HttpEndpoint |
getDelegate() |
static void |
getWebClient(ServiceDiscovery discovery,
java.util.function.Function<Record,Boolean> filter)
Convenient method that looks for a HTTP endpoint and provides the configured .
|
static void |
getWebClient(ServiceDiscovery discovery,
java.util.function.Function<Record,Boolean> filter,
Handler<AsyncResult<WebClient>> resultHandler)
Convenient method that looks for a HTTP endpoint and provides the configured .
|
static void |
getWebClient(ServiceDiscovery discovery,
java.util.function.Function<Record,Boolean> filter,
JsonObject conf)
Convenient method that looks for a HTTP endpoint and provides the configured .
|
static void |
getWebClient(ServiceDiscovery discovery,
java.util.function.Function<Record,Boolean> filter,
JsonObject conf,
Handler<AsyncResult<WebClient>> resultHandler)
Convenient method that looks for a HTTP endpoint and provides the configured .
|
static void |
getWebClient(ServiceDiscovery discovery,
JsonObject filter)
Convenient method that looks for a HTTP endpoint and provides the configured .
|
static void |
getWebClient(ServiceDiscovery discovery,
JsonObject filter,
Handler<AsyncResult<WebClient>> resultHandler)
Convenient method that looks for a HTTP endpoint and provides the configured .
|
static void |
getWebClient(ServiceDiscovery discovery,
JsonObject filter,
JsonObject conf)
Convenient method that looks for a HTTP endpoint and provides the configured .
|
static void |
getWebClient(ServiceDiscovery discovery,
JsonObject filter,
JsonObject conf,
Handler<AsyncResult<WebClient>> resultHandler)
Convenient method that looks for a HTTP endpoint and provides the configured .
|
int |
hashCode() |
static HttpEndpoint |
newInstance(HttpEndpoint arg) |
static Single<HttpClient> |
rxGetClient(ServiceDiscovery discovery,
java.util.function.Function<Record,Boolean> filter)
Convenient method that looks for a HTTP endpoint and provides the configured .
|
static Single<HttpClient> |
rxGetClient(ServiceDiscovery discovery,
java.util.function.Function<Record,Boolean> filter,
JsonObject conf)
Convenient method that looks for a HTTP endpoint and provides the configured .
|
static Single<HttpClient> |
rxGetClient(ServiceDiscovery discovery,
JsonObject filter)
Convenient method that looks for a HTTP endpoint and provides the configured .
|
static Single<HttpClient> |
rxGetClient(ServiceDiscovery discovery,
JsonObject filter,
JsonObject conf)
Convenient method that looks for a HTTP endpoint and provides the configured .
|
static Single<WebClient> |
rxGetWebClient(ServiceDiscovery discovery,
java.util.function.Function<Record,Boolean> filter)
Convenient method that looks for a HTTP endpoint and provides the configured .
|
static Single<WebClient> |
rxGetWebClient(ServiceDiscovery discovery,
java.util.function.Function<Record,Boolean> filter,
JsonObject conf)
Convenient method that looks for a HTTP endpoint and provides the configured .
|
static Single<WebClient> |
rxGetWebClient(ServiceDiscovery discovery,
JsonObject filter)
Convenient method that looks for a HTTP endpoint and provides the configured .
|
static Single<WebClient> |
rxGetWebClient(ServiceDiscovery discovery,
JsonObject filter,
JsonObject conf)
Convenient method that looks for a HTTP endpoint and provides the configured .
|
String |
toString() |
public static final io.vertx.lang.rx.TypeArg<HttpEndpoint> __TYPE_ARG
public static final String UNKNOWN
public static final String TYPE
public HttpEndpoint(HttpEndpoint delegate)
public HttpEndpoint(Object delegate)
public HttpEndpoint getDelegate()
public static Record createRecord(String name, String host, int port, String root, JsonObject metadata)
name
- the service namehost
- the host (IP or DNS name), it must be the _public_ IP / nameport
- the port, it must be the _public_ portroot
- the path of the service, "/" if not setmetadata
- additional metadatapublic static Record createRecord(String name, boolean ssl, String host, int port, String root, JsonObject metadata)
createRecord(java.lang.String, java.lang.String, int, java.lang.String, io.vertx.core.json.JsonObject)
but let you configure whether or not the
service is using https
.name
- the service namessl
- whether or not the service is using HTTPShost
- the host (IP or DNS name), it must be the _public_ IP / nameport
- the port, it must be the _public_ portroot
- the path of the service, "/" if not setmetadata
- additional metadatapublic static Record createRecord(String name, String host, int port, String root)
createRecord(java.lang.String, java.lang.String, int, java.lang.String, io.vertx.core.json.JsonObject)
but without metadata.name
- the service namehost
- the host, must be publicport
- the portroot
- the root, if not set "/" is usedpublic static Record createRecord(String name, String host)
createRecord(java.lang.String, java.lang.String, int, java.lang.String, io.vertx.core.json.JsonObject)
but without metadata, using the port 80
and using "/" as root.name
- the namehost
- the hostpublic static void getClient(ServiceDiscovery discovery, JsonObject filter, Handler<AsyncResult<HttpClient>> resultHandler)
discovery
- The service discovery instancefilter
- The filter, optionalresultHandler
- The result handlerpublic static void getClient(ServiceDiscovery discovery, JsonObject filter)
discovery
- The service discovery instancefilter
- The filter, optionalpublic static Single<HttpClient> rxGetClient(ServiceDiscovery discovery, JsonObject filter)
discovery
- The service discovery instancefilter
- The filter, optionalpublic static void getWebClient(ServiceDiscovery discovery, JsonObject filter, Handler<AsyncResult<WebClient>> resultHandler)
discovery
- The service discovery instancefilter
- The filter, optionalresultHandler
- The result handlerpublic static void getWebClient(ServiceDiscovery discovery, JsonObject filter)
discovery
- The service discovery instancefilter
- The filter, optionalpublic static Single<WebClient> rxGetWebClient(ServiceDiscovery discovery, JsonObject filter)
discovery
- The service discovery instancefilter
- The filter, optionalpublic static void getClient(ServiceDiscovery discovery, JsonObject filter, JsonObject conf, Handler<AsyncResult<HttpClient>> resultHandler)
discovery
- The service discovery instancefilter
- The filter, optionalconf
- the configuration of the clientresultHandler
- The result handlerpublic static void getClient(ServiceDiscovery discovery, JsonObject filter, JsonObject conf)
discovery
- The service discovery instancefilter
- The filter, optionalconf
- the configuration of the clientpublic static Single<HttpClient> rxGetClient(ServiceDiscovery discovery, JsonObject filter, JsonObject conf)
discovery
- The service discovery instancefilter
- The filter, optionalconf
- the configuration of the clientpublic static void getWebClient(ServiceDiscovery discovery, JsonObject filter, JsonObject conf, Handler<AsyncResult<WebClient>> resultHandler)
discovery
- The service discovery instancefilter
- The filter, optionalconf
- the configuration of the clientresultHandler
- The result handlerpublic static void getWebClient(ServiceDiscovery discovery, JsonObject filter, JsonObject conf)
discovery
- The service discovery instancefilter
- The filter, optionalconf
- the configuration of the clientpublic static Single<WebClient> rxGetWebClient(ServiceDiscovery discovery, JsonObject filter, JsonObject conf)
discovery
- The service discovery instancefilter
- The filter, optionalconf
- the configuration of the clientpublic static void getClient(ServiceDiscovery discovery, java.util.function.Function<Record,Boolean> filter, Handler<AsyncResult<HttpClient>> resultHandler)
discovery
- The service discovery instancefilter
- The filterresultHandler
- The result handlerpublic static void getClient(ServiceDiscovery discovery, java.util.function.Function<Record,Boolean> filter)
discovery
- The service discovery instancefilter
- The filterpublic static Single<HttpClient> rxGetClient(ServiceDiscovery discovery, java.util.function.Function<Record,Boolean> filter)
discovery
- The service discovery instancefilter
- The filterpublic static void getWebClient(ServiceDiscovery discovery, java.util.function.Function<Record,Boolean> filter, Handler<AsyncResult<WebClient>> resultHandler)
discovery
- The service discovery instancefilter
- The filterresultHandler
- The result handlerpublic static void getWebClient(ServiceDiscovery discovery, java.util.function.Function<Record,Boolean> filter)
discovery
- The service discovery instancefilter
- The filterpublic static Single<WebClient> rxGetWebClient(ServiceDiscovery discovery, java.util.function.Function<Record,Boolean> filter)
discovery
- The service discovery instancefilter
- The filterpublic static void getClient(ServiceDiscovery discovery, java.util.function.Function<Record,Boolean> filter, JsonObject conf, Handler<AsyncResult<HttpClient>> resultHandler)
discovery
- The service discovery instancefilter
- The filterconf
- the configuration of the clientresultHandler
- The result handlerpublic static void getClient(ServiceDiscovery discovery, java.util.function.Function<Record,Boolean> filter, JsonObject conf)
discovery
- The service discovery instancefilter
- The filterconf
- the configuration of the clientpublic static Single<HttpClient> rxGetClient(ServiceDiscovery discovery, java.util.function.Function<Record,Boolean> filter, JsonObject conf)
discovery
- The service discovery instancefilter
- The filterconf
- the configuration of the clientpublic static void getWebClient(ServiceDiscovery discovery, java.util.function.Function<Record,Boolean> filter, JsonObject conf, Handler<AsyncResult<WebClient>> resultHandler)
discovery
- The service discovery instancefilter
- The filterconf
- the configuration of the clientresultHandler
- The result handlerpublic static void getWebClient(ServiceDiscovery discovery, java.util.function.Function<Record,Boolean> filter, JsonObject conf)
discovery
- The service discovery instancefilter
- The filterconf
- the configuration of the clientpublic static Single<WebClient> rxGetWebClient(ServiceDiscovery discovery, java.util.function.Function<Record,Boolean> filter, JsonObject conf)
discovery
- The service discovery instancefilter
- The filterconf
- the configuration of the clientpublic static HttpEndpoint newInstance(HttpEndpoint arg)
Copyright © 2023 Eclipse. All rights reserved.