public String getGatewayEndpoint() {
        StringBuilder endpoint = new StringBuilder();
        endpoint.append(scheme);
        endpoint.append("://");
        endpoint.append(host);

        if (port != 443 && port != 80) {
            endpoint.append(":");
            endpoint.append(port);
        }

        if (path.isEmpty()) {
            endpoint.append("/");
        } else {
            endpoint.append(path);
            if (!StringUtils.endsWith(path, "/"))
                endpoint.append("/");
        }
        return endpoint.toString();
    }
Builds the gateway endpoint
@return gateway endpoint
gateway/platforms/vertx3/vertx3/src/main/java/io/apiman/gateway/platforms/vertx3/helpers/EndpointHelper.java