org.alfresco.email.server.impl.subetha
Class SubethaEmailMessage

java.lang.Object
  extended by org.alfresco.email.server.impl.subetha.SubethaEmailMessage
All Implemented Interfaces:
java.io.Serializable, EmailMessage

public class SubethaEmailMessage
extends java.lang.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
protected SubethaEmailMessage()
           
  SubethaEmailMessage(javax.mail.internet.MimeMessage mimeMessage)
           
  SubethaEmailMessage(java.lang.String from, java.lang.String to, java.io.InputStream dataInputStream)
           
 
Method Summary
 EmailMessagePart[] getAttachments()
           
 EmailMessagePart getBody()
           
 java.util.List getCC()
           
 java.lang.String getFrom()
           
 java.util.Date getSentDate()
           
 java.lang.String getSubject()
           
 java.lang.String getTo()
           
 void setRmiRegistry(java.lang.String rmiRegistryHost, int rmiRegistryPort)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubethaEmailMessage

protected SubethaEmailMessage()

SubethaEmailMessage

public SubethaEmailMessage(javax.mail.internet.MimeMessage mimeMessage)

SubethaEmailMessage

public SubethaEmailMessage(java.lang.String from,
                           java.lang.String to,
                           java.io.InputStream dataInputStream)
Method Detail

setRmiRegistry

public void setRmiRegistry(java.lang.String rmiRegistryHost,
                           int rmiRegistryPort)

getCC

public java.util.List getCC()
Specified by:
getCC in interface EmailMessage
Returns:
CC addresses.

getFrom

public java.lang.String getFrom()
Specified by:
getFrom in interface EmailMessage
Returns:
FROM address.

getTo

public java.lang.String getTo()
Specified by:
getTo in interface EmailMessage
Returns:
TO address.

getSentDate

public java.util.Date getSentDate()
Specified by:
getSentDate in interface EmailMessage
Returns:
sent date.

getSubject

public java.lang.String getSubject()
Specified by:
getSubject in interface EmailMessage
Returns:
subject of the message.

getBody

public EmailMessagePart getBody()
Specified by:
getBody in interface EmailMessage
Returns:
part of the mail body.

getAttachments

public EmailMessagePart[] getAttachments()
Specified by:
getAttachments in interface EmailMessage
Returns:
parts of the mail attachments.


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.