Class HttpEndpoint


  • public class HttpEndpoint
    extends Object
    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.

    • Constructor Detail

      • HttpEndpoint

        public HttpEndpoint​(HttpEndpoint delegate)
      • HttpEndpoint

        public HttpEndpoint​(Object delegate)
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • 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 name
        host - the host (IP or DNS name), it must be the _public_ IP / name
        port - the port, it must be the _public_ port
        root - the path of the service, "/" if not set
        metadata - additional metadata
        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 instance
        filter - The filter, optional
        resultHandler - 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 instance
        filter - The filter, optional
      • rxGetClient

        public static io.reactivex.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 instance
        filter - 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 instance
        filter - The filter, optional
        resultHandler - 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 instance
        filter - The filter, optional
      • rxGetWebClient

        public static io.reactivex.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 instance
        filter - 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 instance
        filter - The filter, optional
        conf - the configuration of the client
        resultHandler - 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 instance
        filter - The filter, optional
        conf - the configuration of the client
      • rxGetClient

        public static io.reactivex.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 instance
        filter - The filter, optional
        conf - 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 instance
        filter - The filter, optional
        conf - the configuration of the client
        resultHandler - 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 instance
        filter - The filter, optional
        conf - the configuration of the client
      • rxGetWebClient

        public static io.reactivex.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 instance
        filter - The filter, optional
        conf - 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 instance
        filter - The filter
        resultHandler - 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 instance
        filter - The filter
      • rxGetClient

        public static io.reactivex.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 instance
        filter - 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 instance
        filter - The filter
        resultHandler - 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 instance
        filter - The filter
      • rxGetWebClient

        public static io.reactivex.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 instance
        filter - 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 instance
        filter - The filter
        conf - the configuration of the client
        resultHandler - 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 instance
        filter - The filter
        conf - the configuration of the client
      • rxGetClient

        public static io.reactivex.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 instance
        filter - The filter
        conf - 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 instance
        filter - The filter
        conf - the configuration of the client
        resultHandler - 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 instance
        filter - The filter
        conf - the configuration of the client
      • rxGetWebClient

        public static io.reactivex.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 instance
        filter - The filter
        conf - the configuration of the client
        Returns: