| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.jdbdump.connect.Mailer
public class Mailer
Class handling notification emails.
 
 Mailer is used to send emails informing the user that either a backup file
 has been created and is ready for downloading, or a database has been
 completely restored from an uploaded backup.
 
 Necessary data is read from a properties file 'app.properties', which
 should contain:
 
| Constructor Summary | |
|---|---|
| Mailer()Create a new mailer. | |
| Method Summary | |
|---|---|
| static void | main(java.lang.String[] args) | 
|  void | sendBackupNotification(java.lang.String backupName)Sends a notification message informing about a finished backup. | 
| protected  void | sendNotification(java.lang.String backupName,
                 java.lang.String message)Sends notification message to the user with specified contents. | 
|  void | sendRestoreNotification(java.lang.String backupName)Sends a notification message informing about a finished restore. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public Mailer()
| Method Detail | 
|---|
protected void sendNotification(java.lang.String backupName,
                                java.lang.String message)
backupName - name of the backup file, which is used to replace
     all occurences of a '%f' string in the mail contentsname - mail contentspublic void sendBackupNotification(java.lang.String backupName)
backupName - name of the backup file, which is used to replace
     all occurences of a '%f' string in the mail contentspublic void sendRestoreNotification(java.lang.String backupName)
backupName - name of the backup file, which is used to replace
     all occurences of a '%f' string in the mail contentspublic static void main(java.lang.String[] args)
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||