package io.vertx.groovy.servicediscovery.types;
public class HttpEndpoint_GroovyStaticExtension {
  public static java.util.Map<String, Object> createRecord(io.vertx.servicediscovery.types.HttpEndpoint j_receiver, java.lang.String name, java.lang.String host, int port, java.lang.String root, java.util.Map<String, Object> metadata) {
    return io.vertx.servicediscovery.types.HttpEndpoint.createRecord(name,
      host,
      port,
      root,
      metadata != null ? io.vertx.core.impl.ConversionHelper.toJsonObject(metadata) : null) != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(io.vertx.servicediscovery.types.HttpEndpoint.createRecord(name,
      host,
      port,
      root,
      metadata != null ? io.vertx.core.impl.ConversionHelper.toJsonObject(metadata) : null).toJson()) : null;
  }
  public static java.util.Map<String, Object> createRecord(io.vertx.servicediscovery.types.HttpEndpoint j_receiver, java.lang.String name, boolean ssl, java.lang.String host, int port, java.lang.String root, java.util.Map<String, Object> metadata) {
    return io.vertx.servicediscovery.types.HttpEndpoint.createRecord(name,
      ssl,
      host,
      port,
      root,
      metadata != null ? io.vertx.core.impl.ConversionHelper.toJsonObject(metadata) : null) != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(io.vertx.servicediscovery.types.HttpEndpoint.createRecord(name,
      ssl,
      host,
      port,
      root,
      metadata != null ? io.vertx.core.impl.ConversionHelper.toJsonObject(metadata) : null).toJson()) : null;
  }
  public static java.util.Map<String, Object> createRecord(io.vertx.servicediscovery.types.HttpEndpoint j_receiver, java.lang.String name, java.lang.String host, int port, java.lang.String root) {
    return io.vertx.servicediscovery.types.HttpEndpoint.createRecord(name,
      host,
      port,
      root) != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(io.vertx.servicediscovery.types.HttpEndpoint.createRecord(name,
      host,
      port,
      root).toJson()) : null;
  }
  public static java.util.Map<String, Object> createRecord(io.vertx.servicediscovery.types.HttpEndpoint j_receiver, java.lang.String name, java.lang.String host) {
    return io.vertx.servicediscovery.types.HttpEndpoint.createRecord(name,
      host) != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(io.vertx.servicediscovery.types.HttpEndpoint.createRecord(name,
      host).toJson()) : null;
  }
  public static void getClient(io.vertx.servicediscovery.types.HttpEndpoint j_receiver, io.vertx.servicediscovery.ServiceDiscovery discovery, java.util.Map<String, Object> filter, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.http.HttpClient>> resultHandler) {
    io.vertx.servicediscovery.types.HttpEndpoint.getClient(discovery,
      filter != null ? io.vertx.core.impl.ConversionHelper.toJsonObject(filter) : null,
      resultHandler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.http.HttpClient>>() {
      public void handle(io.vertx.core.AsyncResult<io.vertx.core.http.HttpClient> ar) {
        resultHandler.handle(ar.map(event -> io.vertx.core.impl.ConversionHelper.fromObject(event)));
      }
    } : null);
  }
  public static void getWebClient(io.vertx.servicediscovery.types.HttpEndpoint j_receiver, io.vertx.servicediscovery.ServiceDiscovery discovery, java.util.Map<String, Object> filter, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.web.client.WebClient>> resultHandler) {
    io.vertx.servicediscovery.types.HttpEndpoint.getWebClient(discovery,
      filter != null ? io.vertx.core.impl.ConversionHelper.toJsonObject(filter) : null,
      resultHandler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.web.client.WebClient>>() {
      public void handle(io.vertx.core.AsyncResult<io.vertx.ext.web.client.WebClient> ar) {
        resultHandler.handle(ar.map(event -> io.vertx.core.impl.ConversionHelper.fromObject(event)));
      }
    } : null);
  }
  public static void getClient(io.vertx.servicediscovery.types.HttpEndpoint j_receiver, io.vertx.servicediscovery.ServiceDiscovery discovery, java.util.Map<String, Object> filter, java.util.Map<String, Object> conf, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.http.HttpClient>> resultHandler) {
    io.vertx.servicediscovery.types.HttpEndpoint.getClient(discovery,
      filter != null ? io.vertx.core.impl.ConversionHelper.toJsonObject(filter) : null,
      conf != null ? io.vertx.core.impl.ConversionHelper.toJsonObject(conf) : null,
      resultHandler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.http.HttpClient>>() {
      public void handle(io.vertx.core.AsyncResult<io.vertx.core.http.HttpClient> ar) {
        resultHandler.handle(ar.map(event -> io.vertx.core.impl.ConversionHelper.fromObject(event)));
      }
    } : null);
  }
  public static void getWebClient(io.vertx.servicediscovery.types.HttpEndpoint j_receiver, io.vertx.servicediscovery.ServiceDiscovery discovery, java.util.Map<String, Object> filter, java.util.Map<String, Object> conf, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.web.client.WebClient>> resultHandler) {
    io.vertx.servicediscovery.types.HttpEndpoint.getWebClient(discovery,
      filter != null ? io.vertx.core.impl.ConversionHelper.toJsonObject(filter) : null,
      conf != null ? io.vertx.core.impl.ConversionHelper.toJsonObject(conf) : null,
      resultHandler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.web.client.WebClient>>() {
      public void handle(io.vertx.core.AsyncResult<io.vertx.ext.web.client.WebClient> ar) {
        resultHandler.handle(ar.map(event -> io.vertx.core.impl.ConversionHelper.fromObject(event)));
      }
    } : null);
  }
  public static void getClient(io.vertx.servicediscovery.types.HttpEndpoint j_receiver, io.vertx.servicediscovery.ServiceDiscovery discovery, java.util.function.Function<java.util.Map<String, Object>, java.lang.Boolean> filter, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.http.HttpClient>> resultHandler) {
    io.vertx.servicediscovery.types.HttpEndpoint.getClient(discovery,
      filter != null ? new java.util.function.Function<io.vertx.servicediscovery.Record, java.lang.Boolean>() {
      public java.lang.Boolean apply(io.vertx.servicediscovery.Record t) {
        java.util.Map<String, Object> o = t != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(t.toJson()) : null;
        java.lang.Boolean p = filter.apply(o);
        return p;
      }
    } : null,
      resultHandler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.http.HttpClient>>() {
      public void handle(io.vertx.core.AsyncResult<io.vertx.core.http.HttpClient> ar) {
        resultHandler.handle(ar.map(event -> io.vertx.core.impl.ConversionHelper.fromObject(event)));
      }
    } : null);
  }
  public static void getWebClient(io.vertx.servicediscovery.types.HttpEndpoint j_receiver, io.vertx.servicediscovery.ServiceDiscovery discovery, java.util.function.Function<java.util.Map<String, Object>, java.lang.Boolean> filter, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.web.client.WebClient>> resultHandler) {
    io.vertx.servicediscovery.types.HttpEndpoint.getWebClient(discovery,
      filter != null ? new java.util.function.Function<io.vertx.servicediscovery.Record, java.lang.Boolean>() {
      public java.lang.Boolean apply(io.vertx.servicediscovery.Record t) {
        java.util.Map<String, Object> o = t != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(t.toJson()) : null;
        java.lang.Boolean p = filter.apply(o);
        return p;
      }
    } : null,
      resultHandler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.web.client.WebClient>>() {
      public void handle(io.vertx.core.AsyncResult<io.vertx.ext.web.client.WebClient> ar) {
        resultHandler.handle(ar.map(event -> io.vertx.core.impl.ConversionHelper.fromObject(event)));
      }
    } : null);
  }
  public static void getClient(io.vertx.servicediscovery.types.HttpEndpoint j_receiver, io.vertx.servicediscovery.ServiceDiscovery discovery, java.util.function.Function<java.util.Map<String, Object>, java.lang.Boolean> filter, java.util.Map<String, Object> conf, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.http.HttpClient>> resultHandler) {
    io.vertx.servicediscovery.types.HttpEndpoint.getClient(discovery,
      filter != null ? new java.util.function.Function<io.vertx.servicediscovery.Record, java.lang.Boolean>() {
      public java.lang.Boolean apply(io.vertx.servicediscovery.Record t) {
        java.util.Map<String, Object> o = t != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(t.toJson()) : null;
        java.lang.Boolean p = filter.apply(o);
        return p;
      }
    } : null,
      conf != null ? io.vertx.core.impl.ConversionHelper.toJsonObject(conf) : null,
      resultHandler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.http.HttpClient>>() {
      public void handle(io.vertx.core.AsyncResult<io.vertx.core.http.HttpClient> ar) {
        resultHandler.handle(ar.map(event -> io.vertx.core.impl.ConversionHelper.fromObject(event)));
      }
    } : null);
  }
  public static void getWebClient(io.vertx.servicediscovery.types.HttpEndpoint j_receiver, io.vertx.servicediscovery.ServiceDiscovery discovery, java.util.function.Function<java.util.Map<String, Object>, java.lang.Boolean> filter, java.util.Map<String, Object> conf, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.web.client.WebClient>> resultHandler) {
    io.vertx.servicediscovery.types.HttpEndpoint.getWebClient(discovery,
      filter != null ? new java.util.function.Function<io.vertx.servicediscovery.Record, java.lang.Boolean>() {
      public java.lang.Boolean apply(io.vertx.servicediscovery.Record t) {
        java.util.Map<String, Object> o = t != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(t.toJson()) : null;
        java.lang.Boolean p = filter.apply(o);
        return p;
      }
    } : null,
      conf != null ? io.vertx.core.impl.ConversionHelper.toJsonObject(conf) : null,
      resultHandler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.web.client.WebClient>>() {
      public void handle(io.vertx.core.AsyncResult<io.vertx.ext.web.client.WebClient> ar) {
        resultHandler.handle(ar.map(event -> io.vertx.core.impl.ConversionHelper.fromObject(event)));
      }
    } : null);
  }
}