public abstract class AbstractMailNotifier extends Object
| Constructor and Description |
|---|
AbstractMailNotifier(String host,
String sender,
String recipient)
Constructor.
|
AbstractMailNotifier(String host,
String sender,
String[] recipients)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
getLogTail(JobSuite suite,
int lineQty)
Gets the last lines from a suite log.
|
protected SimpleMailer |
getMailer()
Gets the mailer for this notifier.
|
protected String[] |
getRecipients()
Gets the email recipients for this notifier.
|
public AbstractMailNotifier(String host, String sender, String recipient)
host - mail server hostsender - email address of sender ("From" field)recipient - email address of recipient ("To" field)protected final SimpleMailer getMailer()
protected final String[] getRecipients()
protected final String getLogTail(JobSuite suite, int lineQty) throws IOException
suite - the suite to extract the log fromlineQty - the number of lines to retrieveIOException - problem getting linesCopyright © 2007–2021 Norconex Inc.. All rights reserved.