|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.norconex.jef.mail.AbstractMailNotifier
public abstract class AbstractMailNotifier
Convenience base class for sending email notifications.
Constructor Summary | |
---|---|
AbstractMailNotifier(String host,
String sender,
String recipient)
Constructor. |
|
AbstractMailNotifier(String host,
String sender,
String[] recipients)
Constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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)public AbstractMailNotifier(String host, String sender, String[] recipients)
host
- mail server hostsender
- email address of sender ("From" field)recipients
- email address of recipients ("To" field)Method Detail |
---|
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 retrieve
IOException
- problem getting lines
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |