FileDocCategorySizeDatePackage
MessageHeader.javaAPI DocExample999Sun Sep 02 14:59:02 BST 2001chap8

MessageHeader

public class MessageHeader extends Object
A summary of a message in a mailbox folder.

Fields Summary
private long
id
private String
from
private String
to
private String
subject
private Date
whenReceived
Constructors Summary
public MessageHeader(long id, String from, String to, String subject, Date whenReceived)

        this.id = id;
        this.from = from;
        this.to = to;
        this.subject = subject;
        this.whenReceived = whenReceived;
    
Methods Summary
public java.lang.StringgetFrom()

        return this.from;
    
public longgetID()

        return this.id;
    
public java.lang.StringgetSubject()

        return this.subject;
    
public java.lang.StringgetTo()

        return this.to;
    
public java.util.DategetWhenReceived()

        return this.whenReceived;
    
public java.lang.StringtoString()

        return id + " " + from + " " + to + " " + subject + " " + whenReceived;