org.pentaho.reporting.libraries.repository.email
Class EmailRepository
java.lang.Object
org.pentaho.reporting.libraries.repository.email.EmailRepository
- All Implemented Interfaces:
- Repository
public class EmailRepository
- extends Object
- implements Repository
Creation-Date: 17.09.2008, 15:00:00
- Author:
- Pedro Alves - WebDetails
EmailRepository
public EmailRepository(MimeRegistry mimeRegistry,
Session mailSession)
throws ContentIOException,
MessagingException
- Throws:
ContentIOException
MessagingException
EmailRepository
public EmailRepository(MimeMessage htmlEmail,
MimeRegistry mimeRegistry)
throws ContentIOException,
IOException,
MessagingException
- Throws:
ContentIOException
IOException
MessagingException
EmailRepository
public EmailRepository(MimeMessage htmlEmail)
throws ContentIOException,
IOException,
MessagingException
- Throws:
ContentIOException
IOException
MessagingException
EmailRepository
public EmailRepository(Session session)
throws ContentIOException,
MessagingException
- Throws:
ContentIOException
MessagingException
getRoot
public ContentLocation getRoot()
throws ContentIOException
- Description copied from interface:
Repository
- Returns the repositories root directory entry.
- Specified by:
getRoot
in interface Repository
- Returns:
- the root directory.
- Throws:
ContentIOException
- if an error occurs.
getMimeRegistry
public MimeRegistry getMimeRegistry()
- Description copied from interface:
Repository
- Returns the repositories MimeRegistry, which is used return basic content-type information about the items stored
in this repository.
- Specified by:
getMimeRegistry
in interface Repository
- Returns:
- the mime registry.
- See Also:
MimeRegistry
writeEmail
public void writeEmail(OutputStream out)
throws ContentIOException
- Throws:
ContentIOException
getEmail
public MimeMessage getEmail()
getMultipart
public MimeMultipart getMultipart()
isTreatHtmlContentAsBody
public boolean isTreatHtmlContentAsBody()
setTreatHtmlContentAsBody
public void setTreatHtmlContentAsBody(boolean treatHtmlContentAsBody)
getBodypart
public MimeBodyPart getBodypart()