All Implemented Interfaces:
Notifier

public class MailNotifier extends AbstractStatusChangeNotifier
Notifier sending emails using Thymeleaf templates.
Author:
Johannes Edmeier
  • Constructor Details

    • MailNotifier

      public MailNotifier(org.springframework.mail.javamail.JavaMailSender mailSender, InstanceRepository repository, org.thymeleaf.TemplateEngine templateEngine)
  • Method Details

    • doNotify

      protected reactor.core.publisher.Mono<Void> doNotify(InstanceEvent event, Instance instance)
      Specified by:
      doNotify in class AbstractEventNotifier
    • getBody

      protected String getBody(org.thymeleaf.context.Context ctx)
    • getSubject

      protected String getSubject(org.thymeleaf.context.Context ctx)
    • getTo

      public String[] getTo()
    • setTo

      public void setTo(String[] to)
    • getCc

      public String[] getCc()
    • setCc

      public void setCc(String[] cc)
    • getFrom

      public String getFrom()
    • setFrom

      public void setFrom(String from)
    • getTemplate

      public String getTemplate()
    • setTemplate

      public void setTemplate(String template)
    • getBaseUrl

      @Nullable public String getBaseUrl()
    • setBaseUrl

      public void setBaseUrl(@Nullable String baseUrl)
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
    • setAdditionalProperties

      public void setAdditionalProperties(Map<String,Object> additionalProperties)