|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.fortuna.mstor.connector.AbstractMessageDelegate
net.fortuna.mstor.connector.mbox.MetaMessage
public class MetaMessage
A JDOM-based implementation of a meta message.
$Id$ Created: 18/08/2004
| Field Summary | |
|---|---|
protected static java.lang.String |
ATTRIBUTE_MESSAGE_NUMBER
|
protected static java.lang.String |
ATTRIBUTE_UID
|
protected static java.lang.String |
ELEMENT_MESSAGE
|
| Constructor Summary | |
|---|---|
MetaMessage(org.jdom.Element element,
MetaFolder folder,
org.jdom.Namespace namespace)
Constructs a new meta message instance based on the specified JDOM element. |
|
MetaMessage(int messageNumber,
MetaFolder folder,
org.jdom.Namespace namespace)
Constructs a new meta message instance based on a new JDOM element with the specified message id. |
|
| Method Summary | |
|---|---|
protected org.jdom.Element |
getElement()
Returns the underlying JDOM element. |
javax.mail.Flags |
getFlags()
|
java.util.Date |
getForwarded()
|
javax.mail.internet.InternetHeaders |
getHeaders()
|
java.io.InputStream |
getInputStream()
|
MessageDelegate |
getInReplyTo()
|
int |
getMessageNumber()
Returns the 1-based number of the message the delegate is associated with. |
java.util.Date |
getReceived()
|
java.util.List<? extends MessageDelegate> |
getReferences()
|
java.util.Date |
getReplied()
|
long |
getUid()
Returns the UID associated with the message. |
boolean |
isExpunged()
|
void |
saveChanges()
Persist unsaved changes. |
void |
setExpunged(boolean flag)
|
void |
setFlags(javax.mail.Flags flags)
|
void |
setForwarded(java.util.Date date)
|
void |
setHeaders(java.util.Enumeration<javax.mail.Header> headers)
|
void |
setReceived(java.util.Date date)
|
void |
setReplied(java.util.Date date)
|
void |
setUid(long uid)
Sets the UID associated with the message. |
| Methods inherited from class net.fortuna.mstor.connector.AbstractMessageDelegate |
|---|
setHeaders |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final java.lang.String ELEMENT_MESSAGE
protected static final java.lang.String ATTRIBUTE_MESSAGE_NUMBER
protected static final java.lang.String ATTRIBUTE_UID
| Constructor Detail |
|---|
public MetaMessage(int messageNumber,
MetaFolder folder,
org.jdom.Namespace namespace)
messageId - the message id of the new meta message
public MetaMessage(org.jdom.Element element,
MetaFolder folder,
org.jdom.Namespace namespace)
element - a JDOM element for the meta message| Method Detail |
|---|
protected final org.jdom.Element getElement()
public final int getMessageNumber()
public final java.util.Date getReceived()
public final void setReceived(java.util.Date date)
date - The received to set.public final java.util.Date getForwarded()
public final void setForwarded(java.util.Date date)
date - The forwarded to set.public final java.util.Date getReplied()
public final void setReplied(java.util.Date date)
date - The replied to set.public final boolean isExpunged()
public final void setExpunged(boolean flag)
flag - The expunged to set.public final javax.mail.Flags getFlags()
public final void setFlags(javax.mail.Flags flags)
flags - The flags to set.public final javax.mail.internet.InternetHeaders getHeaders()
public final void setHeaders(java.util.Enumeration<javax.mail.Header> headers)
headers - an enumeration of headers to attach to the message
public void saveChanges()
throws DelegateException
DelegateException - where an error occurs saving changes in the messagepublic long getUid()
public void setUid(long uid)
uid - a UID value to associate with the message
public MessageDelegate getInReplyTo()
throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException - if this method is not supported by the message implementation
public java.util.List<? extends MessageDelegate> getReferences()
throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException - if this method is not supported by the message implementationpublic java.io.InputStream getInputStream()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||