|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.jaulp.email.EmailAttachments
public class EmailAttachments
This class adds the functionality to add attachments to the EmailMessage.
| Constructor Summary | |
|---|---|
EmailAttachments(EmailMessage emailMessage)
Constructor for the EmailAttachments. |
|
| Method Summary | |
|---|---|
void |
addAttachment(javax.mail.BodyPart part)
Adds an attachment to the EmailMessage. |
void |
addAttachment(byte[] content,
java.lang.String filename,
java.lang.String mimetype)
Adds the attachment. |
void |
addAttachment(javax.activation.DataHandler handler,
java.lang.String filename)
Adds the attachment. |
void |
addAttachment(java.io.File file)
Adds an attachment to the EmailMessage. |
void |
addAttachment(java.io.File file,
java.lang.String newFilename)
Adds an attachment to the EmailMessage. |
EmailMessage |
getEmailMessage()
Get's the EmailMessage. |
javax.mail.internet.MimeMultipart |
getMimeMultiPart()
Gets the MimeMultipart from the EmailAttachments. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EmailAttachments(EmailMessage emailMessage)
throws javax.mail.MessagingException
emailMessage - The EmailMessage.
javax.mail.MessagingException - if an error occurs.| Method Detail |
|---|
public void addAttachment(javax.mail.BodyPart part)
throws javax.mail.MessagingException
part - The BodyPart to add to the EmailMessage.
javax.mail.MessagingException - if an error occurs.
public void addAttachment(byte[] content,
java.lang.String filename,
java.lang.String mimetype)
throws javax.mail.MessagingException
content - The bytearray with the content.filename - The new Filename for the attachment.mimetype - The mimetype.
javax.mail.MessagingException - if an error occurs.
public void addAttachment(javax.activation.DataHandler handler,
java.lang.String filename)
throws javax.mail.MessagingException
handler - The DataHandler for the attachment.filename - The new Filename for the attachment.
javax.mail.MessagingException - if an error occurs.
public void addAttachment(java.io.File file)
throws javax.mail.MessagingException
file - The file to add to the EmailMessage.
javax.mail.MessagingException - if an error occurs.
public void addAttachment(java.io.File file,
java.lang.String newFilename)
throws javax.mail.MessagingException
file - The file to add to the EmailMessage.newFilename - The new Filename for the attachment.
javax.mail.MessagingException - if an error occurs.public EmailMessage getEmailMessage()
public javax.mail.internet.MimeMultipart getMimeMultiPart()
throws javax.mail.MessagingException
javax.mail.MessagingException - if an error occurs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||