org.alfresco.email.server.impl
Class EmailMessageImpl
java.lang.Object
org.alfresco.email.server.impl.EmailMessageImpl
- All Implemented Interfaces:
- java.io.Serializable, EmailMessage
public class EmailMessageImpl
- extends java.lang.Object
- implements EmailMessage
Implementation EmailMessage interface.
- Since:
- 2.2
- See Also:
- Serialized Form
Constructor Summary |
EmailMessageImpl(java.lang.String to,
java.lang.String from,
java.lang.String subject,
java.lang.String body)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EmailMessageImpl
public EmailMessageImpl(java.lang.String to,
java.lang.String from,
java.lang.String subject,
java.lang.String body)
getTo
public java.lang.String getTo()
- Specified by:
getTo
in interface EmailMessage
- Returns:
- TO address.
getFrom
public java.lang.String getFrom()
- Specified by:
getFrom
in interface EmailMessage
- Returns:
- FROM address.
getSubject
public java.lang.String getSubject()
- Specified by:
getSubject
in interface EmailMessage
- Returns:
- subject of the message.
getSentDate
public java.util.Date getSentDate()
- Specified by:
getSentDate
in interface EmailMessage
- Returns:
- sent date.
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.