public class MailNotifier extends AbstractStatusChangeNotifier
| Constructor and Description |
|---|
MailNotifier(org.springframework.mail.javamail.JavaMailSender mailSender,
InstanceRepository repository,
org.thymeleaf.TemplateEngine templateEngine) |
| Modifier and Type | Method and Description |
|---|---|
protected reactor.core.publisher.Mono<Void> |
doNotify(InstanceEvent event,
Instance instance) |
Map<String,Object> |
getAdditionalProperties() |
String |
getBaseUrl() |
protected String |
getBody(org.thymeleaf.context.Context ctx) |
String[] |
getCc() |
String |
getFrom() |
protected String |
getSubject(org.thymeleaf.context.Context ctx) |
String |
getTemplate() |
String[] |
getTo() |
void |
setAdditionalProperties(Map<String,Object> additionalProperties) |
void |
setBaseUrl(String baseUrl) |
void |
setCc(String[] cc) |
void |
setFrom(String from) |
void |
setTemplate(String template) |
void |
setTo(String[] to) |
getIgnoreChanges, getLastStatus, notify, setIgnoreChanges, shouldNotify, updateLastStatusisEnabled, setEnabledpublic MailNotifier(org.springframework.mail.javamail.JavaMailSender mailSender,
InstanceRepository repository,
org.thymeleaf.TemplateEngine templateEngine)
protected reactor.core.publisher.Mono<Void> doNotify(InstanceEvent event, Instance instance)
doNotify in class AbstractEventNotifierprotected String getBody(org.thymeleaf.context.Context ctx)
protected String getSubject(org.thymeleaf.context.Context ctx)
public void setTo(String[] to)
public String[] getTo()
public void setCc(String[] cc)
public String[] getCc()
public void setFrom(String from)
public String getFrom()
public String getTemplate()
public void setTemplate(String template)
Copyright © 2019 codecentric AG. All rights reserved.