|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zeroexchange.messaging.DefaultMessageSender
public class DefaultMessageSender
Constructor Summary | |
---|---|
DefaultMessageSender()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
|
protected org.springframework.mail.SimpleMailMessage |
getSimpleMessage(Collection<User> recipients,
User sender,
String subject,
String messageBody)
Returns simple SimpleMailMessage object filled with the data from the specified event. |
protected void |
sendMailMassage(Collection<User> recipients,
User sender,
String subject,
String body)
Sends email message. |
void |
sendMessage(Collection<User> recipients,
User sender,
String subject,
String body)
Sends the message to the user specified by recipientNickname. |
protected void |
sendPrivateMassage(Collection<User> recipients,
User sender,
String subject,
String body)
Sends 'private' message. |
void |
setEmailingEnabled(boolean emailingEnabled)
|
void |
setSystemEmail(String systemEmail)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultMessageSender()
Method Detail |
---|
public void setEmailingEnabled(boolean emailingEnabled)
emailingEnabled
- the emailingEnabled to setpublic void setSystemEmail(String systemEmail)
public void sendMessage(Collection<User> recipients, User sender, String subject, String body)
sendMessage
in interface MessageSender
protected void sendMailMassage(Collection<User> recipients, User sender, String subject, String body)
protected void sendPrivateMassage(Collection<User> recipients, User sender, String subject, String body)
protected org.springframework.mail.SimpleMailMessage getSimpleMessage(Collection<User> recipients, User sender, String subject, String messageBody)
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |