|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.mail.javamail.MimeMailMessage
public class MimeMailMessage
Implementation of the MailMessage interface for a JavaMail MIME message, to let message population code interact with a simple message or a MIME message through a common interface.
Uses a MimeMessageHelper underneath. Can either be created with a MimeMessageHelper instance or with a JavaMail MimeMessage instance.
MimeMessageHelper
,
javax.mail.internet.MimeMessage
Field Summary | |
---|---|
private MimeMessageHelper |
helper
|
Constructor Summary | |
---|---|
MimeMailMessage(MimeMessage mimeMessage)
Create a new MimeMailMessage based on the given JavaMail MimeMessage. |
|
MimeMailMessage(MimeMessageHelper mimeMessageHelper)
Create a new MimeMailMessage based on the given MimeMessageHelper. |
Method Summary | |
---|---|
MimeMessage |
getMimeMessage()
Return the JavaMail MimeMessage that this MimeMailMessage is based on. |
MimeMessageHelper |
getMimeMessageHelper()
Return the MimeMessageHelper that this MimeMailMessage is based on. |
void |
setBcc(java.lang.String bcc)
|
void |
setBcc(java.lang.String[] bcc)
|
void |
setCc(java.lang.String cc)
|
void |
setCc(java.lang.String[] cc)
|
void |
setFrom(java.lang.String from)
|
void |
setReplyTo(java.lang.String replyTo)
|
void |
setSentDate(java.util.Date sentDate)
|
void |
setSubject(java.lang.String subject)
|
void |
setText(java.lang.String text)
|
void |
setTo(java.lang.String to)
|
void |
setTo(java.lang.String[] to)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final MimeMessageHelper helper
Constructor Detail |
---|
public MimeMailMessage(MimeMessageHelper mimeMessageHelper)
mimeMessageHelper
- the MimeMessageHelperpublic MimeMailMessage(MimeMessage mimeMessage)
mimeMessage
- the JavaMail MimeMessageMethod Detail |
---|
public final MimeMessageHelper getMimeMessageHelper()
public final MimeMessage getMimeMessage()
public void setFrom(java.lang.String from) throws MailParseException
setFrom
in interface MailMessage
MailParseException
public void setReplyTo(java.lang.String replyTo) throws MailParseException
setReplyTo
in interface MailMessage
MailParseException
public void setTo(java.lang.String to) throws MailParseException
setTo
in interface MailMessage
MailParseException
public void setTo(java.lang.String[] to) throws MailParseException
setTo
in interface MailMessage
MailParseException
public void setCc(java.lang.String cc) throws MailParseException
setCc
in interface MailMessage
MailParseException
public void setCc(java.lang.String[] cc) throws MailParseException
setCc
in interface MailMessage
MailParseException
public void setBcc(java.lang.String bcc) throws MailParseException
setBcc
in interface MailMessage
MailParseException
public void setBcc(java.lang.String[] bcc) throws MailParseException
setBcc
in interface MailMessage
MailParseException
public void setSentDate(java.util.Date sentDate) throws MailParseException
setSentDate
in interface MailMessage
MailParseException
public void setSubject(java.lang.String subject) throws MailParseException
setSubject
in interface MailMessage
MailParseException
public void setText(java.lang.String text) throws MailParseException
setText
in interface MailMessage
MailParseException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |