|
Compoze Software, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface defines an attachment that itself, is a mail message.
Method Summary | |
java.util.Map |
getAllHeaders()
Gets a map of all the header values. |
IAttachment |
getAttachment(java.lang.String sFilename)
Gets a file attachment from the message by the specified name. |
IAttachment[] |
getAttachments()
Gets all attachments for this message. |
IAttachment[] |
getAttachments(boolean bLoadData)
Gets all file attachments for this message. |
IMailAddress[] |
getBcc()
Gets the "Bcc" addresses for the recipient of the message. |
java.lang.String |
getBccString()
Gets the "Bcc" attribute in printable form. |
Body |
getBody()
Gets the message body. |
IMailAddress[] |
getCc()
Gets the "Cc" addresses for the recipient of the message. |
java.lang.String |
getCcString()
Gets the "Cc" attribute in printable form. |
IMailAddress[] |
getFrom()
Gets the "From" addresses for the sender of the message. |
java.lang.String |
getFromString()
Gets the "From" attribute in printable form. |
java.lang.String |
getHeaderValue(java.lang.String sName)
Gets a single header value for the specified header name. |
java.lang.String[] |
getHeaderValues(java.lang.String sName)
Gets all the header values for the specified header name. |
java.lang.Object |
getID()
Gets the ID of this message. |
java.util.Date |
getSentDate()
Gets the date this message was sent. |
java.lang.String |
getSentDateString(java.text.DateFormat dateFormat)
Gets the displayable sent date using the specified date format. |
java.lang.String |
getSubject()
Gets the subject of this message. |
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. |
IMailAddress[] |
getTo()
Gets the "To" addresses for the recipient of the message. |
java.lang.String |
getToString()
Gets the "To" attribute in printable form. |
boolean |
hasAttachments()
Checks if the messages has attachments. |
boolean |
isHighPriority()
Checks whether the message is high priority. |
Methods inherited from interface com.compoze.mail.IAttachment |
getBytes, getContentType, getName, getSize, getSizeKilos |
Method Detail |
public java.lang.String getSubject() throws MailException
message.no_subject
property from mail_resources.properties
if the subject
is null
or zero length.public java.lang.String getSubject(java.util.Locale locale) throws MailException
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
.
locale
- the locale to use (may not be null
)public java.lang.String getSubject(int iLength) throws MailException
iLength
- the maximum length of the result (string plus "...")public java.lang.String getSubject(java.util.Locale locale, int iLength) throws MailException
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
.
locale
- the locale to use (may not be null
)iLength
- the maximum length of the result (string plus "...")public java.lang.String getSentDateString(java.text.DateFormat dateFormat) throws MailException
dateFormat
- the date format to use when formating the sent date (may not be null
)public java.util.Date getSentDate() throws MailException
null
if not availablepublic Body getBody() throws MailException
public java.lang.String getFromString() throws MailException
MailException
- an error occurs retrieving From recipients from the messagepublic IMailAddress[] getFrom() throws MailException
MailException
- an error occurs retrieving From recipients from the messagepublic IMailAddress[] getTo() throws MailException
MailException
- an error occurs retrieving To recipients from the messagepublic java.lang.String getToString() throws MailException
MailException
- an error occurs retrieving To recipients from the messagepublic IMailAddress[] getCc() throws MailException
MailException
- an error occurs retrieving Cc recipients from the messagepublic java.lang.String getCcString() throws MailException
MailException
- an error occurs retrieving Cc recipients from the messagepublic IMailAddress[] getBcc() throws MailException
MailException
- an error occurs retrieving Bcc recipients from the messagepublic java.lang.String getBccString() throws MailException
MailException
- an error occurs retrieving Bcc recipients from the messagepublic boolean isHighPriority() throws MailException
true
if this message is high priority; false
otherwisepublic java.lang.Object getID() throws MailException
public java.lang.String getHeaderValue(java.lang.String sName) throws MailException
null
is returned.sName
- the name of this headernull
if the header does not existgetHeaderValues(String)
public java.lang.String[] getHeaderValues(java.lang.String sName) throws MailException
sName
- the name of this headerpublic java.util.Map getAllHeaders() throws MailException
public boolean hasAttachments() throws MailException
true
if this message has attachments. The test
for attachmentse is by checking the MIME type of
the message. A message is considered to have attachments
if the MIME type is multipart/*
.true
if this message has attachments; false
otherwisepublic IAttachment[] getAttachments() throws MailException
getAttachments(boolean)
to
optionally retrieve only the attachment shells.public IAttachment[] getAttachments(boolean bLoadData) throws MailException
bLoadData
- true
to load the attachment data; false
to only load summary datapublic IAttachment getAttachment(java.lang.String sFilename) throws MailException
sFilename
- the name of the file attachmentnull
if the file attachment does not exist
|
Compoze Software, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |