Class HttpEndpoint
java.lang.Object
io.vertx.reactivex.servicediscovery.types.HttpEndpoint
- All Implemented Interfaces:
io.vertx.lang.rx.RxDelegate
for HTTP endpoint (REST api).
Consumers receive a HTTP client configured with the host and port of the endpoint.
NOTE: This class has been automatically generated from the original non RX-ified interface using Vert.x codegen.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final io.vertx.lang.rx.TypeArg<HttpEndpoint> static final Stringstatic final StringUnknown type. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RecordcreateRecord(String name, boolean ssl, String host, int port, String root, JsonObject metadata) Same ascreateRecord(String, String, int, String, JsonObject)but let you configure whether or not the service is usinghttps.static RecordcreateRecord(String name, String host) Same ascreateRecord(String, String, int, String, JsonObject)but without metadata, using the port 80 and using "/" as root.static RecordcreateRecord(String name, String host, int port, String root) Same ascreateRecord(String, String, int, String, JsonObject)but without metadata.static RecordcreateRecord(String name, String host, int port, String root, JsonObject metadata) Convenient method to create a record for a HTTP endpoint.booleanstatic Future<HttpClient> getClient(ServiceDiscovery discovery, JsonObject filter) Convenient method that looks for a HTTP endpoint and provides the configured .static Future<HttpClient> getClient(ServiceDiscovery discovery, JsonObject filter, JsonObject conf) Convenient method that looks for a HTTP endpoint and provides the configured .static Future<HttpClient> getClient(ServiceDiscovery discovery, Function<Record, Boolean> filter) Convenient method that looks for a HTTP endpoint and provides the configured .static Future<HttpClient> getClient(ServiceDiscovery discovery, Function<Record, Boolean> filter, JsonObject conf) Convenient method that looks for a HTTP endpoint and provides the configured .getWebClient(ServiceDiscovery discovery, JsonObject filter) Convenient method that looks for a HTTP endpoint and provides the configured .getWebClient(ServiceDiscovery discovery, JsonObject filter, JsonObject conf) Convenient method that looks for a HTTP endpoint and provides the configured .getWebClient(ServiceDiscovery discovery, Function<Record, Boolean> filter) Convenient method that looks for a HTTP endpoint and provides the configured .getWebClient(ServiceDiscovery discovery, Function<Record, Boolean> filter, JsonObject conf) Convenient method that looks for a HTTP endpoint and provides the configured .inthashCode()static HttpEndpointnewInstance(HttpEndpoint arg) 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<HttpClient> rxGetClient(ServiceDiscovery discovery, Function<Record, Boolean> filter) Convenient method that looks for a HTTP endpoint and provides the configured .static Single<HttpClient> rxGetClient(ServiceDiscovery discovery, Function<Record, Boolean> filter, JsonObject conf) Convenient method that looks for a HTTP endpoint and provides the configured .rxGetWebClient(ServiceDiscovery discovery, JsonObject filter) Convenient method that looks for a HTTP endpoint and provides the configured .rxGetWebClient(ServiceDiscovery discovery, JsonObject filter, JsonObject conf) Convenient method that looks for a HTTP endpoint and provides the configured .rxGetWebClient(ServiceDiscovery discovery, Function<Record, Boolean> filter) Convenient method that looks for a HTTP endpoint and provides the configured .rxGetWebClient(ServiceDiscovery discovery, Function<Record, Boolean> filter, JsonObject conf) Convenient method that looks for a HTTP endpoint and provides the configured .toString()
-
Field Details
-
__TYPE_ARG
-
UNKNOWN
-
TYPE
- See Also:
-
-
Constructor Details
-
HttpEndpoint
-
HttpEndpoint
-
-
Method Details
-
toString
-
equals
-
hashCode
-
getDelegate
- Specified by:
getDelegatein interfaceio.vertx.lang.rx.RxDelegate
-
createRecord
public static Record createRecord(String name, String host, int port, String root, JsonObject metadata) Convenient method to create a record for a HTTP endpoint.- Parameters:
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- Returns:
- the created record
-
createRecord
public static Record createRecord(String name, boolean ssl, String host, int port, String root, JsonObject metadata) Same ascreateRecord(String, String, int, String, JsonObject)but let you configure whether or not the service is usinghttps.- Parameters:
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 metadata- Returns:
- the created record
-
createRecord
Same ascreateRecord(String, String, int, String, JsonObject)but without metadata.- Parameters:
name- the service namehost- the host, must be publicport- the portroot- the root, if not set "/" is used- Returns:
- the created record
-
createRecord
Same ascreateRecord(String, String, int, String, JsonObject)but without metadata, using the port 80 and using "/" as root.- Parameters:
name- the namehost- the host- Returns:
- the created record
-
getClient
Convenient 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.- Parameters:
discovery- The service discovery instancefilter- The filter, optional- Returns:
- a future notified with the client
-
rxGetClient
Convenient 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.- Parameters:
discovery- The service discovery instancefilter- The filter, optional- Returns:
- a future notified with the client
-
getWebClient
Convenient 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.- Parameters:
discovery- The service discovery instancefilter- The filter, optional- Returns:
- a future notified with the client
-
rxGetWebClient
Convenient 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.- Parameters:
discovery- The service discovery instancefilter- The filter, optional- Returns:
- a future notified with the client
-
getClient
public static Future<HttpClient> getClient(ServiceDiscovery discovery, JsonObject filter, JsonObject conf) Convenient 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. This method accepts a configuration for the HTTP client- Parameters:
discovery- The service discovery instancefilter- The filter, optionalconf- the configuration of the client- Returns:
- a future notified with the client
-
rxGetClient
public static Single<HttpClient> rxGetClient(ServiceDiscovery discovery, JsonObject filter, JsonObject conf) Convenient 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. This method accepts a configuration for the HTTP client- Parameters:
discovery- The service discovery instancefilter- The filter, optionalconf- the configuration of the client- Returns:
- a future notified with the client
-
getWebClient
public static Future<WebClient> getWebClient(ServiceDiscovery discovery, JsonObject filter, JsonObject conf) Convenient 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. This method accepts a configuration for the HTTP client- Parameters:
discovery- The service discovery instancefilter- The filter, optionalconf- the configuration of the client- Returns:
- a future notified with the client
-
rxGetWebClient
public static Single<WebClient> rxGetWebClient(ServiceDiscovery discovery, JsonObject filter, JsonObject conf) Convenient 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. This method accepts a configuration for the HTTP client- Parameters:
discovery- The service discovery instancefilter- The filter, optionalconf- the configuration of the client- Returns:
- a future notified with the client
-
getClient
public static Future<HttpClient> getClient(ServiceDiscovery discovery, Function<Record, Boolean> filter) Convenient 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.- Parameters:
discovery- The service discovery instancefilter- The filter- Returns:
- a future notified with the client
-
rxGetClient
public static Single<HttpClient> rxGetClient(ServiceDiscovery discovery, Function<Record, Boolean> filter) Convenient 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.- Parameters:
discovery- The service discovery instancefilter- The filter- Returns:
- a future notified with the client
-
getWebClient
public static Future<WebClient> getWebClient(ServiceDiscovery discovery, Function<Record, Boolean> filter) Convenient 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.- Parameters:
discovery- The service discovery instancefilter- The filter- Returns:
- a future notified with the client
-
rxGetWebClient
public static Single<WebClient> rxGetWebClient(ServiceDiscovery discovery, Function<Record, Boolean> filter) Convenient 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.- Parameters:
discovery- The service discovery instancefilter- The filter- Returns:
- a future notified with the client
-
getClient
public static Future<HttpClient> getClient(ServiceDiscovery discovery, Function<Record, Boolean> filter, JsonObject conf) Convenient 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. This method accepts a configuration for the HTTP client.- Parameters:
discovery- The service discovery instancefilter- The filterconf- the configuration of the client- Returns:
- a future notified with the client
-
rxGetClient
public static Single<HttpClient> rxGetClient(ServiceDiscovery discovery, Function<Record, Boolean> filter, JsonObject conf) Convenient 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. This method accepts a configuration for the HTTP client.- Parameters:
discovery- The service discovery instancefilter- The filterconf- the configuration of the client- Returns:
- a future notified with the client
-
getWebClient
public static Future<WebClient> getWebClient(ServiceDiscovery discovery, Function<Record, Boolean> filter, JsonObject conf) Convenient 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. This method accepts a configuration for the HTTP client.- Parameters:
discovery- The service discovery instancefilter- The filterconf- the configuration of the client- Returns:
- a future notified with the client
-
rxGetWebClient
public static Single<WebClient> rxGetWebClient(ServiceDiscovery discovery, Function<Record, Boolean> filter, JsonObject conf) Convenient 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. This method accepts a configuration for the HTTP client.- Parameters:
discovery- The service discovery instancefilter- The filterconf- the configuration of the client- Returns:
- a future notified with the client
-
newInstance
-