package io.vertx.groovy.ext.stomp;
public class StompServerHandler_GroovyExtension {
public static io.vertx.ext.stomp.StompServerHandler onAck(io.vertx.ext.stomp.StompServerHandler j_receiver, io.vertx.ext.stomp.StompServerConnection connection, java.util.Map<String, Object> subscribe, java.util.List<java.util.Map<String, Object>> messages) {
io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.onAck(connection,
subscribe != null ? new io.vertx.ext.stomp.Frame(io.vertx.core.impl.ConversionHelper.toJsonObject(subscribe)) : null,
messages != null ? messages.stream().map(elt -> elt != null ? new io.vertx.ext.stomp.Frame(io.vertx.core.impl.ConversionHelper.toJsonObject(elt)) : null).collect(java.util.stream.Collectors.toList()) : null));
return j_receiver;
}
public static io.vertx.ext.stomp.StompServerHandler onNack(io.vertx.ext.stomp.StompServerHandler j_receiver, io.vertx.ext.stomp.StompServerConnection connection, java.util.Map<String, Object> subscribe, java.util.List<java.util.Map<String, Object>> messages) {
io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.onNack(connection,
subscribe != null ? new io.vertx.ext.stomp.Frame(io.vertx.core.impl.ConversionHelper.toJsonObject(subscribe)) : null,
messages != null ? messages.stream().map(elt -> elt != null ? new io.vertx.ext.stomp.Frame(io.vertx.core.impl.ConversionHelper.toJsonObject(elt)) : null).collect(java.util.stream.Collectors.toList()) : null));
return j_receiver;
}
public static io.vertx.ext.stomp.StompServerHandler bridge(io.vertx.ext.stomp.StompServerHandler j_receiver, java.util.Map<String, Object> options) {
io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.bridge(options != null ? new io.vertx.ext.stomp.BridgeOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null));
return j_receiver;
}
}