|
Compoze Software, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.compoze.mail.AbstractMessage
This class provides a skeletal implementation of the
Message
interface, to minimize the effort
required to implement the interface.
Fields inherited from interface com.compoze.mail.IMessage |
MESSAGE_RECIPIENT_BCC, MESSAGE_RECIPIENT_CC, MESSAGE_RECIPIENT_TO |
Constructor Summary | |
AbstractMessage()
|
Method Summary | |
void |
addAttachment(FileAttachment file)
Adds a file attachment to this message. |
java.lang.String |
getReceivedDateString(java.text.DateFormat format)
Gets the displayable received date using the specified date format. |
java.lang.String |
getSentDateString(java.text.DateFormat format)
Gets the displayable sent date using the specified date format. |
java.lang.String |
getSizeKilos()
Gets the size of this message in kilobytes. |
java.lang.String |
getSubject(int iLength)
Gets the subject of the message. |
java.lang.String |
getSubject(java.util.Locale locale)
Gets the subject of this message. |
java.lang.String |
getSubject(java.util.Locale locale,
int iLength)
Gets the subject of the message. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.compoze.mail.IMessage |
addAttachments, addHeader, addRecipients, delete, delete, forward, getAllHeaders, getAttachment, getAttachments, getAttachments, getBcc, getBccString, getBody, getCc, getCcString, getFolderID, getFrom, getFromString, getHeaderValue, getHeaderValues, getID, getReceivedDate, getRecipients, getSentDate, getSize, getSubject, getTo, getToString, hasAttachments, isHighPriority, isUnread, move, removeHeader, removeRecipient, reply, replyAll, saveDraft, send, send, send, setBody, setHeader, setHighPriority, setSubject |
Constructor Detail |
public AbstractMessage()
Method Detail |
public java.lang.String getSubject(int iLength) throws MailException
IMessage
getSubject
in interface IMessage
com.compoze.mail.IMessage
iLength
- the maximum length of the result (string plus "...")public java.lang.String getSubject(java.util.Locale locale, int iLength) throws MailException
IMessage
The locale is used to determine the
(no subject)
message if the actual message
subject is null
or empty. The (no subject)
string is configurable in mail_resources.properties
.
getSubject
in interface IMessage
com.compoze.mail.IMessage
locale
- the locale to use (may not be null
)iLength
- the maximum length of the result (string plus "...")public java.lang.String getSubject(java.util.Locale locale) throws MailException
IMessage
message.no_subject
property from mail_resources.properties
if the subject
is null
or zero length.
The locale is used to determine the
(no subject)
message if the actual message
subject is null
or empty. The (no subject)
string is configurable in mail_resources.properties
.
getSubject
in interface IMessage
com.compoze.mail.IMessage
locale
- the locale to use (may not be null
)public java.lang.String getSentDateString(java.text.DateFormat format) throws MailException
IMessage
getSentDateString
in interface IMessage
com.compoze.mail.IMessage
dateFormat
- the date format to use when formating the sent date (may not be null
)public java.lang.String getReceivedDateString(java.text.DateFormat format) throws MailException
IMessage
getReceivedDateString
in interface IMessage
com.compoze.mail.IMessage
dateFormat
- the date format to use when formating the received date (may not be null
)public java.lang.String getSizeKilos() throws MailException
IMessage
getSizeKilos
in interface IMessage
com.compoze.mail.IMessage
public void addAttachment(FileAttachment file) throws MailException
IMessage
addAttachment
in interface IMessage
com.compoze.mail.IMessage
file
- the file to attach (may not be null
)MailException
- an error occurs adding the file attachment
|
Compoze Software, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |