All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.vertx.mutiny.ext.web.templ.thymeleaf.ThymeleafTemplateEngine Maven / Gradle / Ivy

The newest version!
package io.vertx.mutiny.ext.web.templ.thymeleaf;

import java.util.Map;
import java.util.stream.Collectors;
import io.smallrye.mutiny.Multi;
import io.smallrye.mutiny.Uni;
import io.smallrye.mutiny.vertx.TypeArg;
import io.vertx.codegen.annotations.Fluent;
import io.smallrye.common.annotation.CheckReturnValue;
import org.thymeleaf.templatemode.TemplateMode;

/**
 * A template engine that uses the Thymeleaf library.
 * The {@link io.vertx.mutiny.ext.web.common.template.TemplateEngine#unwrap} shall return an object of class {@link org.thymeleaf.TemplateEngine}
 *
 * 

* NOTE: This class has been automatically generated from the {@link io.vertx.ext.web.templ.thymeleaf.ThymeleafTemplateEngine original} non Mutiny-ified interface using Vert.x codegen. */ @io.smallrye.mutiny.vertx.MutinyGen(io.vertx.ext.web.templ.thymeleaf.ThymeleafTemplateEngine.class) public class ThymeleafTemplateEngine extends io.vertx.mutiny.ext.web.common.template.TemplateEngine { public static final io.smallrye.mutiny.vertx.TypeArg __TYPE_ARG = new io.smallrye.mutiny.vertx.TypeArg<>( obj -> new ThymeleafTemplateEngine((io.vertx.ext.web.templ.thymeleaf.ThymeleafTemplateEngine) obj), ThymeleafTemplateEngine::getDelegate ); private final io.vertx.ext.web.templ.thymeleaf.ThymeleafTemplateEngine delegate; public ThymeleafTemplateEngine(io.vertx.ext.web.templ.thymeleaf.ThymeleafTemplateEngine delegate) { super(delegate); this.delegate = delegate; } public ThymeleafTemplateEngine(Object delegate) { super((io.vertx.ext.web.templ.thymeleaf.ThymeleafTemplateEngine)delegate); this.delegate = (io.vertx.ext.web.templ.thymeleaf.ThymeleafTemplateEngine)delegate; } /** * Empty constructor used by CDI, do not use this constructor directly. **/ ThymeleafTemplateEngine() { super(null); this.delegate = null; } public io.vertx.ext.web.templ.thymeleaf.ThymeleafTemplateEngine getDelegate() { return delegate; } @Override public String toString() { return delegate.toString(); } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; ThymeleafTemplateEngine that = (ThymeleafTemplateEngine) o; return delegate.equals(that.delegate); } @Override public int hashCode() { return delegate.hashCode(); } /** * @param vertx * @return the engine */ public static io.vertx.mutiny.ext.web.templ.thymeleaf.ThymeleafTemplateEngine create(io.vertx.mutiny.core.Vertx vertx) { io.vertx.mutiny.ext.web.templ.thymeleaf.ThymeleafTemplateEngine ret = io.vertx.mutiny.ext.web.templ.thymeleaf.ThymeleafTemplateEngine.newInstance((io.vertx.ext.web.templ.thymeleaf.ThymeleafTemplateEngine)io.vertx.ext.web.templ.thymeleaf.ThymeleafTemplateEngine.create(vertx.getDelegate())); return ret; } /** * @param mode the mode * @return a reference to this for fluency * @deprecated see {@link #unwrap()} Set the mode for the engine */ @Deprecated @Fluent public io.vertx.mutiny.ext.web.templ.thymeleaf.ThymeleafTemplateEngine setMode(org.thymeleaf.templatemode.TemplateMode mode) { delegate.setMode(mode); return this; } public static final TemplateMode DEFAULT_TEMPLATE_MODE = io.vertx.ext.web.templ.thymeleaf.ThymeleafTemplateEngine.DEFAULT_TEMPLATE_MODE; public static ThymeleafTemplateEngine newInstance(io.vertx.ext.web.templ.thymeleaf.ThymeleafTemplateEngine arg) { return arg != null ? new ThymeleafTemplateEngine(arg) : null; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy