Package io.micronaut.email.template
Class TemplateBody<T>
java.lang.Object
io.micronaut.email.template.TemplateBody<T>
- Type Parameters:
T- HTML model
- All Implemented Interfaces:
Body
Email HTML Body backed by a template.
- Since:
- 1.0
- Author:
- Sergio del Amo
-
Constructor Summary
ConstructorsConstructorDescriptionTemplateBody(@NonNull BodyType bodyType, @NonNull io.micronaut.views.ModelAndView<T> modelAndView) TemplateBody(@NonNull BodyType bodyType, @Nullable String view, T model) TemplateBody(@NonNull io.micronaut.views.ModelAndView<T> modelAndView) TemplateBody(@Nullable String view, T model) Body HTML with view name and model. -
Method Summary
-
Constructor Details
-
TemplateBody
Body HTML with view name and model.- Parameters:
view- view name to be renderedmodel- Model to be rendered against the view
-
TemplateBody
- Parameters:
modelAndView- Emails Template's name and model for html
-
TemplateBody
public TemplateBody(@NonNull @NonNull BodyType bodyType, @Nullable @Nullable String view, @Nullable T model) - Parameters:
bodyType- The content type of the templateview- View name to be renderedmodel- Model to be rendered against the view
-
TemplateBody
public TemplateBody(@NonNull @NonNull BodyType bodyType, @NonNull @NonNull io.micronaut.views.ModelAndView<T> modelAndView) - Parameters:
bodyType- The content type of the templatemodelAndView- Emails Template's name and model for html
-
-
Method Details