for HTTP endpoint (REST api). Consumers receive a HTTP client configured with the host and port of the endpoint.
Constructor and description |
---|
HttpEndpoint
(java.lang.Object delegate) |
Type | Name and description |
---|---|
static java.util.Map<java.lang.String, java.lang.Object> |
createRecord(java.lang.String name, java.lang.String host, int port, java.lang.String root, java.util.Map<java.lang.String, java.lang.Object> metadata) Convenient method to create a record for a HTTP endpoint. |
static java.util.Map<java.lang.String, java.lang.Object> |
createRecord(java.lang.String name, boolean ssl, java.lang.String host, int port, java.lang.String root, java.util.Map<java.lang.String, java.lang.Object> metadata) Same as HttpEndpoint.createRecord but let you configure whether or not the service is using https . |
static java.util.Map<java.lang.String, java.lang.Object> |
createRecord(java.lang.String name, java.lang.String host, int port, java.lang.String root) Same as HttpEndpoint.createRecord but without metadata. |
static java.util.Map<java.lang.String, java.lang.Object> |
createRecord(java.lang.String name, java.lang.String host) Same as HttpEndpoint.createRecord but without metadata, using the port 80 and using "/" as root. |
static void |
getClient(ServiceDiscovery discovery, java.util.Map<java.lang.String, java.lang.Object> filter, io.vertx.core.Handler<io.vertx.core.AsyncResult<HttpClient>> resultHandler) Convenient method that looks for a HTTP endpoint and provides the configured . |
java.lang.Object |
getDelegate() |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Convenient method to create a record for a HTTP endpoint.
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 metadata Same as HttpEndpoint.createRecord 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 metadataSame as HttpEndpoint.createRecord but without metadata.
name
- the service namehost
- the host, must be publicport
- the portroot
- the root, if not set "/" is usedSame as HttpEndpoint.createRecord but without metadata, using the port 80 and using "/" as root.
name
- the namehost
- the hostConvenient method that looks for a HTTP endpoint and provides the configured . The async result is marked as failed is there are no matching services, or if the lookup fails.
discovery
- The service discovery instancefilter
- The filter, optionalresultHandler
- The result handler