package io.vertx.groovy.core.http;
public class HttpConnection_GroovyExtension {
  public static io.vertx.core.http.HttpConnection goAwayHandler(io.vertx.core.http.HttpConnection j_receiver, io.vertx.core.Handler<java.util.Map<String, Object>> handler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.goAwayHandler(handler != null ? event -> handler.handle(event != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(event.toJson()) : null) : null));
    return j_receiver;
  }
  public static java.util.Map<String, Object> settings(io.vertx.core.http.HttpConnection j_receiver) {
    return j_receiver.settings() != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(j_receiver.settings().toJson()) : null;
  }
  public static io.vertx.core.http.HttpConnection updateSettings(io.vertx.core.http.HttpConnection j_receiver, java.util.Map<String, Object> settings) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.updateSettings(settings != null ? new io.vertx.core.http.Http2Settings(io.vertx.core.impl.ConversionHelper.toJsonObject(settings)) : null));
    return j_receiver;
  }
  public static io.vertx.core.http.HttpConnection updateSettings(io.vertx.core.http.HttpConnection j_receiver, java.util.Map<String, Object> settings, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> completionHandler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.updateSettings(settings != null ? new io.vertx.core.http.Http2Settings(io.vertx.core.impl.ConversionHelper.toJsonObject(settings)) : null,
      completionHandler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>>() {
      public void handle(io.vertx.core.AsyncResult<java.lang.Void> ar) {
        completionHandler.handle(ar.map(event -> io.vertx.core.impl.ConversionHelper.fromObject(event)));
      }
    } : null));
    return j_receiver;
  }
  public static java.util.Map<String, Object> remoteSettings(io.vertx.core.http.HttpConnection j_receiver) {
    return j_receiver.remoteSettings() != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(j_receiver.remoteSettings().toJson()) : null;
  }
  public static io.vertx.core.http.HttpConnection remoteSettingsHandler(io.vertx.core.http.HttpConnection j_receiver, io.vertx.core.Handler<java.util.Map<String, Object>> handler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.remoteSettingsHandler(handler != null ? event -> handler.handle(event != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(event.toJson()) : null) : null));
    return j_receiver;
  }
}