public interface Message<Id> extends Comparable<Message<Id>>
Modifier and Type | Method and Description |
---|---|
javax.mail.Flags |
createFlags()
Creates a new flags instance populated
with the current flag data.
|
InputStream |
getBodyContent()
Gets the body content of the document.
|
long |
getBodyOctets()
The number of octets contained in the body of this document.
|
InputStream |
getFullContent()
Returns the full raw content of the Message via an
InputStream . |
long |
getFullContentOctets()
The number of octets contained in the full content of this document.
|
InputStream |
getHeaderContent()
Gets the header as
InputStream . |
Date |
getInternalDate() |
Id |
getMailboxId()
Return the mailbox id of the linked mailbox
|
String |
getMediaType()
Gets the top level MIME content media type.
|
long |
getModSeq()
Return the mod-sequence for the message
|
List<Property> |
getProperties()
Gets a read-only list of meta-data properties.
|
String |
getSubType()
Gets the MIME content subtype.
|
Long |
getTextualLineCount()
Gets the number of CRLF in a textual document.
|
long |
getUid()
Return the uid
|
boolean |
isAnswered()
Return if it was marked as answered
|
boolean |
isDeleted()
Return if it was mark as deleted
|
boolean |
isDraft()
Return if it was mark as draft
|
boolean |
isFlagged()
Return if it was flagged
|
boolean |
isRecent()
Return if it was marked as recent
|
boolean |
isSeen()
Return if it was marked as seen
|
void |
setFlags(javax.mail.Flags flags)
Set the Flags
|
void |
setModSeq(long modSeq)
Set the mod-sequence for the message.
|
void |
setUid(long uid)
Set the uid for the message.
|
compareTo
Date getInternalDate()
Id getMailboxId()
long getUid()
void setUid(long uid)
uid
- void setModSeq(long modSeq)
modSeq
- long getModSeq()
boolean isAnswered()
boolean isDeleted()
boolean isDraft()
boolean isFlagged()
boolean isRecent()
boolean isSeen()
void setFlags(javax.mail.Flags flags)
flags
- javax.mail.Flags createFlags()
InputStream getBodyContent() throws IOException
InputStream
on every call, which basicly means it need to start at position 0IOException
String getMediaType()
String getSubType()
long getBodyOctets()
long getFullContentOctets()
Long getTextualLineCount()
InputStream getHeaderContent() throws IOException
InputStream
. This MUST INCLUDE the CRLF terminator
Be aware that this method need to return a new fresh InputStream
on every callIOException
InputStream getFullContent() throws IOException
InputStream
.
Be aware that this method need to return a new fresh InputStream
on every callIOException
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.