public class EmailRepository extends Object implements Repository
Constructor and Description |
---|
EmailRepository(javax.mail.internet.MimeMessage htmlEmail) |
EmailRepository(javax.mail.internet.MimeMessage htmlEmail,
MimeRegistry mimeRegistry) |
EmailRepository(MimeRegistry mimeRegistry,
javax.mail.Session mailSession) |
EmailRepository(javax.mail.Session session) |
Modifier and Type | Method and Description |
---|---|
javax.mail.internet.MimeBodyPart |
getBodypart() |
javax.mail.internet.MimeMessage |
getEmail() |
MimeRegistry |
getMimeRegistry()
Returns the repositories MimeRegistry, which is used return basic content-type information about the items stored
in this repository.
|
javax.mail.internet.MimeMultipart |
getMultipart() |
ContentLocation |
getRoot()
Returns the repositories root directory entry.
|
boolean |
isTreatHtmlContentAsBody() |
void |
setTreatHtmlContentAsBody(boolean treatHtmlContentAsBody) |
void |
writeEmail(OutputStream out) |
public EmailRepository(MimeRegistry mimeRegistry, javax.mail.Session mailSession) throws ContentIOException, javax.mail.MessagingException
ContentIOException
javax.mail.MessagingException
public EmailRepository(javax.mail.internet.MimeMessage htmlEmail, MimeRegistry mimeRegistry) throws ContentIOException, IOException, javax.mail.MessagingException
ContentIOException
IOException
javax.mail.MessagingException
public EmailRepository(javax.mail.internet.MimeMessage htmlEmail) throws ContentIOException, IOException, javax.mail.MessagingException
ContentIOException
IOException
javax.mail.MessagingException
public EmailRepository(javax.mail.Session session) throws ContentIOException, javax.mail.MessagingException
ContentIOException
javax.mail.MessagingException
public ContentLocation getRoot() throws ContentIOException
Repository
getRoot
in interface Repository
ContentIOException
- if an error occurs.public MimeRegistry getMimeRegistry()
Repository
getMimeRegistry
in interface Repository
MimeRegistry
public void writeEmail(OutputStream out) throws ContentIOException
ContentIOException
public javax.mail.internet.MimeMessage getEmail()
public javax.mail.internet.MimeMultipart getMultipart()
public boolean isTreatHtmlContentAsBody()
public void setTreatHtmlContentAsBody(boolean treatHtmlContentAsBody)
public javax.mail.internet.MimeBodyPart getBodypart()