com.icegreen.greenmail.store
Class SimpleStoredMessage

java.lang.Object
  extended by com.icegreen.greenmail.store.SimpleStoredMessage
All Implemented Interfaces:
StoredMessage

public class SimpleStoredMessage
extends Object
implements StoredMessage

A mail message with all of the extra stuff that IMAP requires. This is just a placeholder object, while I work out what's really required. A common way of handling *all* messages needs to be available for James (maybe MovingMessage?)

Version:
$Revision: 109034 $
Author:
Darrell DeBoer

Constructor Summary
SimpleStoredMessage(MimeMessage mimeMessage, Date internalDate, long uid)
           
 
Method Summary
 MailMessageAttributes getAttributes()
           
 Flags getFlags()
           
 Date getInternalDate()
           
 MimeMessage getMimeMessage()
           
 long getUid()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleStoredMessage

public SimpleStoredMessage(MimeMessage mimeMessage,
                           Date internalDate,
                           long uid)
                    throws MessagingException
Throws:
MessagingException
Method Detail

getMimeMessage

public MimeMessage getMimeMessage()
Specified by:
getMimeMessage in interface StoredMessage

getFlags

public Flags getFlags()
Specified by:
getFlags in interface StoredMessage

getInternalDate

public Date getInternalDate()
Specified by:
getInternalDate in interface StoredMessage

getUid

public long getUid()
Specified by:
getUid in interface StoredMessage

getAttributes

public MailMessageAttributes getAttributes()
                                    throws FolderException
Specified by:
getAttributes in interface StoredMessage
Throws:
FolderException