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​(io.vertx.servicediscovery.types.HttpEndpoint delegate)
      • HttpEndpoint

        public HttpEndpoint​(Object delegate)
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getDelegate

        public io.vertx.servicediscovery.types.HttpEndpoint getDelegate()
      • createRecord

        public 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.
        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
      • createRecord

        public 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.
        Parameters:
        name - the service name
        ssl - whether or not the service is using HTTPS
        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,
                                     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 . 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,
                                     io.vertx.core.json.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 rx.Single<HttpClient> rxGetClient​(ServiceDiscovery discovery,
                                                        io.vertx.core.json.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,
                                        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 . 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,
                                        io.vertx.core.json.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 rx.Single<WebClient> rxGetWebClient​(ServiceDiscovery discovery,
                                                          io.vertx.core.json.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,
                                     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 . 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,
                                     io.vertx.core.json.JsonObject filter,
                                     io.vertx.core.json.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 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 . 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,
                                        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 . 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,
                                        io.vertx.core.json.JsonObject filter,
                                        io.vertx.core.json.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 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 . 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<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 . 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<io.vertx.servicediscovery.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 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 . 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<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 . 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<io.vertx.servicediscovery.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 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 . 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<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 . 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<io.vertx.servicediscovery.Record,​Boolean> filter,
                                     io.vertx.core.json.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 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 . 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<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 . 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<io.vertx.servicediscovery.Record,​Boolean> filter,
                                        io.vertx.core.json.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 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 . 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:
      • newInstance

        public static HttpEndpoint newInstance​(io.vertx.servicediscovery.types.HttpEndpoint arg)