org.bejug.javacareers.jobs.service
Class MailServiceImpl
java.lang.Object
org.bejug.javacareers.jobs.service.MailServiceImpl
- All Implemented Interfaces:
- MailService
- public class MailServiceImpl
- extends java.lang.Object
- implements MailService
- Version:
- $Revision: 1.1 $ $Date: 2005/08/26 07:58:31 $
- Author:
- Bart Meyers (last modified by $Author: ge0ffrey $)
|
Method Summary |
org.springframework.mail.javamail.JavaMailSenderImpl |
getMailSender()
|
org.springframework.mail.SimpleMailMessage |
getMessage()
|
void |
sendNotificationMessage(java.lang.String to,
java.lang.String cc,
java.lang.String bcc,
java.lang.String from,
java.lang.String subject,
java.lang.String text)
This method is responsable to send a mail-notification to 1 user. |
void |
setMailSender(org.springframework.mail.javamail.JavaMailSenderImpl mailSender)
|
void |
setMessage(org.springframework.mail.SimpleMailMessage message)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MailServiceImpl
public MailServiceImpl()
getMailSender
public org.springframework.mail.javamail.JavaMailSenderImpl getMailSender()
- Returns:
- the mailsender we want.
setMailSender
public void setMailSender(org.springframework.mail.javamail.JavaMailSenderImpl mailSender)
- Parameters:
mailSender - the mailsender to set.
getMessage
public org.springframework.mail.SimpleMailMessage getMessage()
- Returns:
- the message we want.
setMessage
public void setMessage(org.springframework.mail.SimpleMailMessage message)
- Parameters:
message - the message to set.
sendNotificationMessage
public void sendNotificationMessage(java.lang.String to,
java.lang.String cc,
java.lang.String bcc,
java.lang.String from,
java.lang.String subject,
java.lang.String text)
throws org.bejug.javacareers.common.exception.MailException
- This method is responsable to send a mail-notification to 1 user.
- Specified by:
sendNotificationMessage in interface MailService
- Parameters:
to - a String indicating the recipient to send to.cc - a String indicating the recipient to send to(in cc).bcc - a String indicating the recipient to send to(in bcc).from - a String indicating the sender of the mail.subject - a String indicating the subject of the mail.text - a String containing the contents of the mail to send.
- Throws:
org.bejug.javacareers.common.exception.MailException - when the sending of the message failes somehow.
Copyright © 2005-2006 BeJUG. All Rights Reserved.