public class HttpEndpoint extends Object
original
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static TypeArg<HttpEndpoint> |
__TYPE_ARG |
static String |
TYPE |
static String |
UNKNOWN
Unknown type.
|
Constructor and Description |
---|
HttpEndpoint(io.vertx.servicediscovery.types.HttpEndpoint delegate) |
Modifier and Type | Method and Description |
---|---|
static io.vertx.servicediscovery.Record |
createRecord(String name,
boolean ssl,
String host,
int port,
String root,
io.vertx.core.json.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 io.vertx.servicediscovery.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 io.vertx.servicediscovery.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 io.vertx.servicediscovery.Record |
createRecord(String name,
String host,
int port,
String root,
io.vertx.core.json.JsonObject metadata)
Convenient method to create a record for a HTTP endpoint.
|
boolean |
equals(Object o) |
static void |
getClient(ServiceDiscovery discovery,
Function<io.vertx.servicediscovery.Record,Boolean> filter,
io.vertx.core.Handler<io.vertx.core.AsyncResult<HttpClient>> resultHandler)
Convenient method that looks for a HTTP endpoint and provides the configured .
|
static void |
getClient(ServiceDiscovery discovery,
Function<io.vertx.servicediscovery.Record,Boolean> filter,
io.vertx.core.json.JsonObject conf,
io.vertx.core.Handler<io.vertx.core.AsyncResult<HttpClient>> resultHandler)
Convenient method that looks for a HTTP endpoint and provides the configured .
|
static void |
getClient(ServiceDiscovery discovery,
io.vertx.core.json.JsonObject filter,
io.vertx.core.Handler<io.vertx.core.AsyncResult<HttpClient>> resultHandler)
Convenient method that looks for a HTTP endpoint and provides the configured .
|
static void |
getClient(ServiceDiscovery discovery,
io.vertx.core.json.JsonObject filter,
io.vertx.core.json.JsonObject conf,
io.vertx.core.Handler<io.vertx.core.AsyncResult<HttpClient>> resultHandler)
Convenient method that looks for a HTTP endpoint and provides the configured .
|
io.vertx.servicediscovery.types.HttpEndpoint |
getDelegate() |
static void |
getWebClient(ServiceDiscovery discovery,
Function<io.vertx.servicediscovery.Record,Boolean> filter,
io.vertx.core.Handler<io.vertx.core.AsyncResult<WebClient>> resultHandler)
Convenient method that looks for a HTTP endpoint and provides the configured .
|
static void |
getWebClient(ServiceDiscovery discovery,
Function<io.vertx.servicediscovery.Record,Boolean> filter,
io.vertx.core.json.JsonObject conf,
io.vertx.core.Handler<io.vertx.core.AsyncResult<WebClient>> resultHandler)
Convenient method that looks for a HTTP endpoint and provides the configured .
|
static void |
getWebClient(ServiceDiscovery discovery,
io.vertx.core.json.JsonObject filter,
io.vertx.core.Handler<io.vertx.core.AsyncResult<WebClient>> resultHandler)
Convenient method that looks for a HTTP endpoint and provides the configured .
|
static void |
getWebClient(ServiceDiscovery discovery,
io.vertx.core.json.JsonObject filter,
io.vertx.core.json.JsonObject conf,
io.vertx.core.Handler<io.vertx.core.AsyncResult<WebClient>> resultHandler)
Convenient method that looks for a HTTP endpoint and provides the configured .
|
int |
hashCode() |
static HttpEndpoint |
newInstance(io.vertx.servicediscovery.types.HttpEndpoint arg) |
static rx.Single<HttpClient> |
rxGetClient(ServiceDiscovery discovery,
Function<io.vertx.servicediscovery.Record,Boolean> filter)
Convenient method that looks for a HTTP endpoint and provides the configured .
|
static rx.Single<HttpClient> |
rxGetClient(ServiceDiscovery discovery,
Function<io.vertx.servicediscovery.Record,Boolean> filter,
io.vertx.core.json.JsonObject conf)
Convenient method that looks for a HTTP endpoint and provides the configured .
|
static rx.Single<HttpClient> |
rxGetClient(ServiceDiscovery discovery,
io.vertx.core.json.JsonObject filter)
Convenient method that looks for a HTTP endpoint and provides the configured .
|
static rx.Single<HttpClient> |
rxGetClient(ServiceDiscovery discovery,
io.vertx.core.json.JsonObject filter,
io.vertx.core.json.JsonObject conf)
Convenient method that looks for a HTTP endpoint and provides the configured .
|
static rx.Single<WebClient> |
rxGetWebClient(ServiceDiscovery discovery,
Function<io.vertx.servicediscovery.Record,Boolean> filter)
Convenient method that looks for a HTTP endpoint and provides the configured .
|
static rx.Single<WebClient> |
rxGetWebClient(ServiceDiscovery discovery,
Function<io.vertx.servicediscovery.Record,Boolean> filter,
io.vertx.core.json.JsonObject conf)
Convenient method that looks for a HTTP endpoint and provides the configured .
|
static rx.Single<WebClient> |
rxGetWebClient(ServiceDiscovery discovery,
io.vertx.core.json.JsonObject filter)
Convenient method that looks for a HTTP endpoint and provides the configured .
|
static rx.Single<WebClient> |
rxGetWebClient(ServiceDiscovery discovery,
io.vertx.core.json.JsonObject filter,
io.vertx.core.json.JsonObject conf)
Convenient method that looks for a HTTP endpoint and provides the configured .
|
String |
toString() |
public static final TypeArg<HttpEndpoint> __TYPE_ARG
public static final String UNKNOWN
public static final String TYPE
public HttpEndpoint(io.vertx.servicediscovery.types.HttpEndpoint delegate)
public io.vertx.servicediscovery.types.HttpEndpoint getDelegate()
public static io.vertx.servicediscovery.Record createRecord(String name, String host, int port, String root, io.vertx.core.json.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 io.vertx.servicediscovery.Record createRecord(String name, boolean ssl, String host, int port, String root, io.vertx.core.json.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 io.vertx.servicediscovery.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 io.vertx.servicediscovery.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, io.vertx.core.json.JsonObject filter, io.vertx.core.Handler<io.vertx.core.AsyncResult<HttpClient>> resultHandler)
discovery
- The service discovery instancefilter
- The filter, optionalresultHandler
- The result handlerpublic static rx.Single<HttpClient> rxGetClient(ServiceDiscovery discovery, io.vertx.core.json.JsonObject filter)
discovery
- The service discovery instancefilter
- The filter, optionalpublic static void getWebClient(ServiceDiscovery discovery, io.vertx.core.json.JsonObject filter, io.vertx.core.Handler<io.vertx.core.AsyncResult<WebClient>> resultHandler)
discovery
- The service discovery instancefilter
- The filter, optionalresultHandler
- The result handlerpublic static rx.Single<WebClient> rxGetWebClient(ServiceDiscovery discovery, io.vertx.core.json.JsonObject filter)
discovery
- The service discovery instancefilter
- The filter, optionalpublic static void getClient(ServiceDiscovery discovery, io.vertx.core.json.JsonObject filter, io.vertx.core.json.JsonObject conf, io.vertx.core.Handler<io.vertx.core.AsyncResult<HttpClient>> resultHandler)
discovery
- The service discovery instancefilter
- The filter, optionalconf
- the configuration of the clientresultHandler
- The result handlerpublic static rx.Single<HttpClient> rxGetClient(ServiceDiscovery discovery, io.vertx.core.json.JsonObject filter, io.vertx.core.json.JsonObject conf)
discovery
- The service discovery instancefilter
- The filter, optionalconf
- the configuration of the clientpublic static void getWebClient(ServiceDiscovery discovery, io.vertx.core.json.JsonObject filter, io.vertx.core.json.JsonObject conf, io.vertx.core.Handler<io.vertx.core.AsyncResult<WebClient>> resultHandler)
discovery
- The service discovery instancefilter
- The filter, optionalconf
- the configuration of the clientresultHandler
- The result handlerpublic static rx.Single<WebClient> rxGetWebClient(ServiceDiscovery discovery, io.vertx.core.json.JsonObject filter, io.vertx.core.json.JsonObject conf)
discovery
- The service discovery instancefilter
- The filter, optionalconf
- the configuration of the clientpublic static void getClient(ServiceDiscovery discovery, Function<io.vertx.servicediscovery.Record,Boolean> filter, io.vertx.core.Handler<io.vertx.core.AsyncResult<HttpClient>> resultHandler)
discovery
- The service discovery instancefilter
- The filterresultHandler
- The result handlerpublic static rx.Single<HttpClient> rxGetClient(ServiceDiscovery discovery, Function<io.vertx.servicediscovery.Record,Boolean> filter)
discovery
- The service discovery instancefilter
- The filterpublic static void getWebClient(ServiceDiscovery discovery, Function<io.vertx.servicediscovery.Record,Boolean> filter, io.vertx.core.Handler<io.vertx.core.AsyncResult<WebClient>> resultHandler)
discovery
- The service discovery instancefilter
- The filterresultHandler
- The result handlerpublic static rx.Single<WebClient> rxGetWebClient(ServiceDiscovery discovery, Function<io.vertx.servicediscovery.Record,Boolean> filter)
discovery
- The service discovery instancefilter
- The filterpublic static void getClient(ServiceDiscovery discovery, Function<io.vertx.servicediscovery.Record,Boolean> filter, io.vertx.core.json.JsonObject conf, io.vertx.core.Handler<io.vertx.core.AsyncResult<HttpClient>> resultHandler)
discovery
- The service discovery instancefilter
- The filterconf
- the configuration of the clientresultHandler
- The result handlerpublic static rx.Single<HttpClient> rxGetClient(ServiceDiscovery discovery, Function<io.vertx.servicediscovery.Record,Boolean> filter, io.vertx.core.json.JsonObject conf)
discovery
- The service discovery instancefilter
- The filterconf
- the configuration of the clientpublic static void getWebClient(ServiceDiscovery discovery, Function<io.vertx.servicediscovery.Record,Boolean> filter, io.vertx.core.json.JsonObject conf, io.vertx.core.Handler<io.vertx.core.AsyncResult<WebClient>> resultHandler)
discovery
- The service discovery instancefilter
- The filterconf
- the configuration of the clientresultHandler
- The result handlerpublic static rx.Single<WebClient> rxGetWebClient(ServiceDiscovery discovery, Function<io.vertx.servicediscovery.Record,Boolean> filter, io.vertx.core.json.JsonObject conf)
discovery
- The service discovery instancefilter
- The filterconf
- the configuration of the clientpublic static HttpEndpoint newInstance(io.vertx.servicediscovery.types.HttpEndpoint arg)
Copyright © 2019 Eclipse. All rights reserved.