io.vertx.groovy.ext.mail.MailClient_GroovyExtension Maven / Gradle / Ivy
package io.vertx.groovy.ext.mail;
public class MailClient_GroovyExtension {
public static io.vertx.ext.mail.MailClient sendMail(io.vertx.ext.mail.MailClient j_receiver, java.util.Map email, io.vertx.core.Handler>> resultHandler) {
io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.sendMail(email != null ? new io.vertx.ext.mail.MailMessage(io.vertx.core.impl.ConversionHelper.toJsonObject(email)) : null,
resultHandler != null ? new io.vertx.core.Handler>() {
public void handle(io.vertx.core.AsyncResult ar) {
resultHandler.handle(ar.map(event -> event != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(event.toJson()) : null));
}
} : null));
return j_receiver;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy