All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----com.ibm.network.mail.base.SummaryHeader
SummaryHeader
contains summary information about a message
inside a Folder
. It contains
This class is basically to assist in displaying messages in user interfaces
retrieving the message from the folder when requested. It makes the process
of retrieving the message and displaying it more efficient. When the folder
is deserialized from the persistent stream, it contains a list of
SummaryHeader
s. Messages are retrieved from the folder file only
when user actually wants to see them. Once the message has been retrieved,
any subsequent request for displaying the message will be handled by the
SummaryHeader
directly without having to read it again from
the folder file.
SummaryHeader
.
Flags
corresponding to the 'status' of the message.
MimeMessage
corresponding to this summary header or
throws MessageNotReadyException if the message is yet to be retrieved from
the Folder
.
MimeMessage
.
MimeMessage
.
SummaryHeader
.
SummaryHeader
as specified.
SummaryHeader
with a specified message.
SummaryHeader
.
public static final String DELETED
public static final String NEW
public static final String SEEN
public SummaryHeader(MimeMessage msg)
SummaryHeader
.
Creates a SummaryHeader
and initializes its fields using the
values from msg
.
MimeMessage
corresponding to this SummaryHeader
.
public static Flags findFlags(SummaryHeader hdr)
Flags
corresponding to the 'status' of the message.
SummaryHeader
to find Flags
.
Flags
corresponding to hdr
.
public String getDate()
public MimeMessage getMessage() throws MessageNotReadyException
MimeMessage
corresponding to this summary header or
throws MessageNotReadyException if the message is yet to be retrieved from
the Folder
.
MimeMessage
associated with this SummaryHeader
.
Folder
.
public long getMsgPointer()
public String getSender()
MimeMessage
.
MimeMessage
.
public String getStatus()
MimeMessage
.
Returns "New and Deleted"
if the message is not recent and has been
marked as deleted;
"New"
if the message is not shown to the user atleast once;
""
if the message has been shown to the user atleast once;
MimeMessage
.
public String getSubject()
public boolean isDeleted()
SummaryHeader
.
public void markDeleted(boolean delete)
SummaryHeader
as specified.
public void setMessage(MimeMessage message)
SummaryHeader
with a specified message.
MimeMessage
.
public void setStatus(String status)
public void updateStatus()
SummaryHeader
.
All Packages Class Hierarchy This Package Previous Next Index