You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.



All Packages  This Package  Class Hierarchy  Class Search  Index

Interface grendel.storage.MessageExtra

These are extra interfaces that our message objects implement that are not implemented as part of the standard Message class. If you want to call any of these, and you just have a base Message object, use MessageExtraFactory to find or create the MessageExtra object for you.


public interface  MessageExtra
{
          // Methods 18
     public abstract String getAuthor() throws MessagingException;
     public abstract InputStream getInputStreamWithHeaders() throws MessagingException;
     public abstract Object getMessageID() throws MessagingException;
     public abstract String getRecipient() throws MessagingException;
     public abstract boolean isDeleted() throws MessagingException;
     public abstract boolean isFlagged() throws MessagingException;
     public abstract boolean isForwarded() throws MessagingException;
     public abstract boolean isRead() throws MessagingException;
     public abstract boolean isReplied() throws MessagingException;
     public abstract Object[] messageThreadReferences() throws MessagingException;
     public abstract void setDeleted(boolean) throws MessagingException;
     public abstract void setFlagged(boolean) throws MessagingException;
     public abstract void setForwarded(boolean) throws MessagingException;
     public abstract void setIsRead(boolean) throws MessagingException;
     public abstract void setReplied(boolean) throws MessagingException;
     public abstract String simplifiedDate() throws MessagingException;
     public abstract String simplifiedSubject() throws MessagingException;
     public abstract boolean subjectIsReply() throws MessagingException;
}



Methods


getAuthor

   public abstract String getAuthor()  throws MessagingException

The name of the author of this message (not his email address).



getRecipient

   public abstract String getRecipient()  throws MessagingException

The name of the recipient of this message (not his email address).



simplifiedSubject

   public abstract String simplifiedSubject()  throws MessagingException

The subject, minus any "Re:" part.



subjectIsReply

   public abstract boolean subjectIsReply()  throws MessagingException

Whether the subject has a "Re:" part."



simplifiedDate

   public abstract String simplifiedDate()  throws MessagingException

A short rendition of the sent date.



getMessageID

   public abstract Object getMessageID()  throws MessagingException

A unique object representing the message-id for this message.



messageThreadReferences

   public abstract Object[] messageThreadReferences()  throws MessagingException

A list of the above messageid objects that this message has references to.



isRead

   public abstract boolean isRead()  throws MessagingException


setIsRead

   public abstract void setIsRead(boolean value)  throws MessagingException


isReplied

   public abstract boolean isReplied()  throws MessagingException


setReplied

   public abstract void setReplied(boolean value)  throws MessagingException


isForwarded

   public abstract boolean isForwarded()  throws MessagingException


setForwarded

   public abstract void setForwarded(boolean value)  throws MessagingException


isFlagged

   public abstract boolean isFlagged()  throws MessagingException


setFlagged

   public abstract void setFlagged(boolean value)  throws MessagingException


isDeleted

   public abstract boolean isDeleted()  throws MessagingException


setDeleted

   public abstract void setDeleted(boolean value)  throws MessagingException


getInputStreamWithHeaders

   public abstract InputStream getInputStreamWithHeaders()  throws MessagingException

Gets the input stream for the message, in RFC822 format: a bunch of headers, and then a blank line, and then the message itself.



All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.4