|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectlazyj.notifications.Sender
lazyj.notifications.EmailSender
public class EmailSender
Send a message as email. This implementation doesn't require any keys but you can specify:
Message is nullMessage127.0.0.125
| Constructor Summary | |
|---|---|
EmailSender()
|
|
| Method Summary | |
|---|---|
boolean |
init(ExtProperties prop,
java.lang.String keyPrefix)
This method is called by Notifier after an instance of a class implementing this interface is created
with the default constructor. |
boolean |
send(Message m)
Send the message to the target (mail / instant message / log file etc) |
| Methods inherited from class lazyj.notifications.Sender |
|---|
getClassInstance, getClassLoader, setClassLoader |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EmailSender()
| Method Detail |
|---|
public boolean init(ExtProperties prop,
java.lang.String keyPrefix)
SenderNotifier after an instance of a class implementing this interface is created
with the default constructor. Each implementing class should take what is useful for it from the given
configuration, taking into account (only) the keys with the given prefix.
init in class Senderprop - configuration contentskeyPrefix - prefix for the subset of options that are relevant to this instance
public boolean send(Message m)
Sender
send in class Senderm - message to send
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||