Class SubethaEmailMessage
- java.lang.Object
-
- org.alfresco.email.server.impl.subetha.SubethaEmailMessage
-
- All Implemented Interfaces:
Serializable,EmailMessage
public class SubethaEmailMessage extends Object implements EmailMessage
Concrete representation of an email message as implemented for the SubEtha mail server.- Since:
- 2.2
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSubethaEmailMessage()SubethaEmailMessage(InputStream dataInputStream)SubethaEmailMessage(javax.mail.internet.MimeMessage mimeMessage)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EmailMessagePart[]getAttachments()EmailMessagePartgetBody()List<String>getCC()StringgetFrom()DategetSentDate()StringgetSubject()Get the subject of the messageStringgetTo()voidsetRmiRegistry(String rmiRegistryHost, int rmiRegistryPort)
-
-
-
Constructor Detail
-
SubethaEmailMessage
protected SubethaEmailMessage()
-
SubethaEmailMessage
public SubethaEmailMessage(javax.mail.internet.MimeMessage mimeMessage)
-
SubethaEmailMessage
public SubethaEmailMessage(InputStream dataInputStream)
-
-
Method Detail
-
setRmiRegistry
public void setRmiRegistry(String rmiRegistryHost, int rmiRegistryPort)
-
getCC
public List<String> getCC()
- Specified by:
getCCin interfaceEmailMessage- Returns:
- CC addresses.
-
getFrom
public String getFrom()
- Specified by:
getFromin interfaceEmailMessage- Returns:
- FROM address.
-
getTo
public String getTo()
- Specified by:
getToin interfaceEmailMessage- Returns:
- TO address.
-
getSentDate
public Date getSentDate()
- Specified by:
getSentDatein interfaceEmailMessage- Returns:
- sent date.
-
getSubject
public String getSubject()
Description copied from interface:EmailMessageGet the subject of the message- Specified by:
getSubjectin interfaceEmailMessage- Returns:
- subject of the message or null if there is no subject.
-
getBody
public EmailMessagePart getBody()
- Specified by:
getBodyin interfaceEmailMessage- Returns:
- part of the mail body.
-
getAttachments
public EmailMessagePart[] getAttachments()
- Specified by:
getAttachmentsin interfaceEmailMessage- Returns:
- parts of the mail attachments.
-
-