Class HttpEndpoint
- java.lang.Object
-
- io.vertx.rxjava.servicediscovery.types.HttpEndpoint
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<HttpEndpoint>__TYPE_ARGstatic StringTYPEstatic StringUNKNOWNUnknown type.
-
Constructor Summary
Constructors Constructor Description HttpEndpoint(HttpEndpoint delegate)HttpEndpoint(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RecordcreateRecord(String name, boolean ssl, String host, int port, String root, JsonObject metadata)Same ascreateRecord(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 usinghttps.static RecordcreateRecord(String name, String host)Same ascreateRecord(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 RecordcreateRecord(String name, String host, int port, String root)Same ascreateRecord(java.lang.String, java.lang.String, int, java.lang.String, io.vertx.core.json.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.booleanequals(Object o)static voidgetClient(ServiceDiscovery discovery, JsonObject filter)Convenient method that looks for a HTTP endpoint and provides the configured .static voidgetClient(ServiceDiscovery discovery, JsonObject filter, Handler<AsyncResult<HttpClient>> resultHandler)Convenient method that looks for a HTTP endpoint and provides the configured .static voidgetClient(ServiceDiscovery discovery, JsonObject filter, JsonObject conf)Convenient method that looks for a HTTP endpoint and provides the configured .static voidgetClient(ServiceDiscovery discovery, JsonObject filter, JsonObject conf, Handler<AsyncResult<HttpClient>> resultHandler)Convenient method that looks for a HTTP endpoint and provides the configured .static voidgetClient(ServiceDiscovery discovery, Function<Record,Boolean> filter)Convenient method that looks for a HTTP endpoint and provides the configured .static voidgetClient(ServiceDiscovery discovery, Function<Record,Boolean> filter, Handler<AsyncResult<HttpClient>> resultHandler)Convenient method that looks for a HTTP endpoint and provides the configured .static voidgetClient(ServiceDiscovery discovery, Function<Record,Boolean> filter, JsonObject conf)Convenient method that looks for a HTTP endpoint and provides the configured .static voidgetClient(ServiceDiscovery discovery, Function<Record,Boolean> filter, JsonObject conf, Handler<AsyncResult<HttpClient>> resultHandler)Convenient method that looks for a HTTP endpoint and provides the configured .HttpEndpointgetDelegate()static voidgetWebClient(ServiceDiscovery discovery, JsonObject filter)Convenient method that looks for a HTTP endpoint and provides the configured .static voidgetWebClient(ServiceDiscovery discovery, JsonObject filter, Handler<AsyncResult<WebClient>> resultHandler)Convenient method that looks for a HTTP endpoint and provides the configured .static voidgetWebClient(ServiceDiscovery discovery, JsonObject filter, JsonObject conf)Convenient method that looks for a HTTP endpoint and provides the configured .static voidgetWebClient(ServiceDiscovery discovery, JsonObject filter, JsonObject conf, Handler<AsyncResult<WebClient>> resultHandler)Convenient method that looks for a HTTP endpoint and provides the configured .static voidgetWebClient(ServiceDiscovery discovery, Function<Record,Boolean> filter)Convenient method that looks for a HTTP endpoint and provides the configured .static voidgetWebClient(ServiceDiscovery discovery, Function<Record,Boolean> filter, Handler<AsyncResult<WebClient>> resultHandler)Convenient method that looks for a HTTP endpoint and provides the configured .static voidgetWebClient(ServiceDiscovery discovery, Function<Record,Boolean> filter, JsonObject conf)Convenient method that looks for a HTTP endpoint and provides the configured .static voidgetWebClient(ServiceDiscovery discovery, Function<Record,Boolean> filter, JsonObject conf, Handler<AsyncResult<WebClient>> resultHandler)Convenient method that looks for a HTTP endpoint and provides the configured .inthashCode()static HttpEndpointnewInstance(HttpEndpoint arg)static rx.Single<HttpClient>rxGetClient(ServiceDiscovery discovery, JsonObject filter)Convenient method that looks for a HTTP endpoint and provides the configured .static rx.Single<HttpClient>rxGetClient(ServiceDiscovery discovery, JsonObject filter, JsonObject conf)Convenient method that looks for a HTTP endpoint and provides the configured .static rx.Single<HttpClient>rxGetClient(ServiceDiscovery discovery, Function<Record,Boolean> filter)Convenient method that looks for a HTTP endpoint and provides the configured .static rx.Single<HttpClient>rxGetClient(ServiceDiscovery discovery, Function<Record,Boolean> filter, JsonObject conf)Convenient method that looks for a HTTP endpoint and provides the configured .static rx.Single<WebClient>rxGetWebClient(ServiceDiscovery discovery, JsonObject filter)Convenient method that looks for a HTTP endpoint and provides the configured .static rx.Single<WebClient>rxGetWebClient(ServiceDiscovery discovery, JsonObject filter, JsonObject conf)Convenient method that looks for a HTTP endpoint and provides the configured .static rx.Single<WebClient>rxGetWebClient(ServiceDiscovery discovery, Function<Record,Boolean> filter)Convenient method that looks for a HTTP endpoint and provides the configured .static rx.Single<WebClient>rxGetWebClient(ServiceDiscovery discovery, Function<Record,Boolean> filter, JsonObject conf)Convenient method that looks for a HTTP endpoint and provides the configured .StringtoString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<HttpEndpoint> __TYPE_ARG
-
UNKNOWN
public static final String UNKNOWN
Unknown type.- See Also:
- Constant Field Values
-
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
HttpEndpoint
public HttpEndpoint(HttpEndpoint delegate)
-
HttpEndpoint
public HttpEndpoint(Object delegate)
-
-
Method Detail
-
getDelegate
public HttpEndpoint getDelegate()
-
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(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 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
public static Record createRecord(String name, String host, int port, String root)
Same ascreateRecord(java.lang.String, java.lang.String, int, java.lang.String, io.vertx.core.json.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
public static Record createRecord(String name, String host)
Same ascreateRecord(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.- Parameters:
name- the namehost- the host- Returns:
- the created record
-
getClient
public static void getClient(ServiceDiscovery discovery, JsonObject filter, Handler<AsyncResult<HttpClient>> resultHandler)
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, optionalresultHandler- The result handler
-
getClient
public static void getClient(ServiceDiscovery discovery, JsonObject 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, optional
-
rxGetClient
public static rx.Single<HttpClient> rxGetClient(ServiceDiscovery discovery, JsonObject 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, optional- Returns:
-
getWebClient
public static void getWebClient(ServiceDiscovery discovery, JsonObject filter, Handler<AsyncResult<WebClient>> resultHandler)
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, optionalresultHandler- The result handler
-
getWebClient
public static void getWebClient(ServiceDiscovery discovery, JsonObject 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, optional
-
rxGetWebClient
public static rx.Single<WebClient> rxGetWebClient(ServiceDiscovery discovery, JsonObject 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, optional- Returns:
-
getClient
public 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 . 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 clientresultHandler- The result handler
-
getClient
public static void 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
-
rxGetClient
public static rx.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:
-
getWebClient
public 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 . 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 clientresultHandler- The result handler
-
getWebClient
public static void 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
-
rxGetWebClient
public static rx.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:
-
getClient
public static void getClient(ServiceDiscovery discovery, Function<Record,Boolean> filter, Handler<AsyncResult<HttpClient>> resultHandler)
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 filterresultHandler- The result handler
-
getClient
public static void 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
-
rxGetClient
public static rx.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:
-
getWebClient
public static void getWebClient(ServiceDiscovery discovery, Function<Record,Boolean> filter, Handler<AsyncResult<WebClient>> resultHandler)
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 filterresultHandler- The result handler
-
getWebClient
public static void 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
-
rxGetWebClient
public static rx.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:
-
getClient
public static void getClient(ServiceDiscovery discovery, Function<Record,Boolean> filter, JsonObject conf, Handler<AsyncResult<HttpClient>> resultHandler)
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 clientresultHandler- The result handler
-
getClient
public static void 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
-
rxGetClient
public static rx.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:
-
getWebClient
public static void getWebClient(ServiceDiscovery discovery, Function<Record,Boolean> filter, JsonObject conf, Handler<AsyncResult<WebClient>> resultHandler)
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 clientresultHandler- The result handler
-
getWebClient
public static void 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
-
rxGetWebClient
public static rx.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:
-
newInstance
public static HttpEndpoint newInstance(HttpEndpoint arg)
-
-