|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.mail.Message
javax.mail.internet.MimeMessage
com.sun.mail.imap.IMAPMessage
com.sun.mail.imap.IMAPNestedMessage
public class IMAPNestedMessage
This class implements a nested IMAP message
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.mail.internet.MimeMessage |
---|
MimeMessage.RecipientType |
Field Summary |
---|
Fields inherited from class com.sun.mail.imap.IMAPMessage |
---|
bs, envelope, sectionId |
Fields inherited from class javax.mail.internet.MimeMessage |
---|
content, contentStream, dh, flags, headers, modified, saved |
Fields inherited from class javax.mail.Message |
---|
expunged, folder, msgnum, session |
Fields inherited from interface javax.mail.Part |
---|
ATTACHMENT, INLINE |
Method Summary | |
---|---|
protected void |
checkExpunged()
|
protected int |
getFetchBlockSize()
|
protected java.lang.Object |
getMessageCacheLock()
Get the messageCacheLock, associated with this Message's Folder. |
protected IMAPProtocol |
getProtocol()
Get this message's folder's protocol connection. |
protected int |
getSequenceNumber()
Get this message's IMAP sequence number. |
int |
getSize()
Get the message size. |
boolean |
isExpunged()
Checks whether this message is expunged. |
protected boolean |
isREV1()
|
void |
setFlags(Flags flag,
boolean set)
Set/Unset the given flags in this message. |
Methods inherited from class javax.mail.internet.MimeMessage |
---|
addRecipients, createInternetHeaders, createMimeMessage, getAllRecipients, getContent, getInputStream, getRawInputStream, isMimeType, parse, reply, saveChanges, setContent, setContent, setDescription, setFrom, setRecipients, setSubject, setText, setText, setText, updateHeaders, updateMessageID, writeTo |
Methods inherited from class javax.mail.Message |
---|
addRecipient, getFolder, getMessageNumber, match, setFlag, setRecipient |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
protected IMAPProtocol getProtocol() throws ProtocolException, FolderClosedException
IMAPMessage
getProtocol
in class IMAPMessage
ProtocolException
FolderClosedException
protected boolean isREV1() throws FolderClosedException
isREV1
in class IMAPMessage
FolderClosedException
protected java.lang.Object getMessageCacheLock()
IMAPMessage
getMessageCacheLock
in class IMAPMessage
protected int getSequenceNumber()
IMAPMessage
getSequenceNumber
in class IMAPMessage
protected void checkExpunged() throws MessageRemovedException
checkExpunged
in class IMAPMessage
MessageRemovedException
public boolean isExpunged()
Message
getMessageNumber()
are invalid on an expunged
Message object.
Messages that are expunged due to an explict expunge()
request on the containing Folder are removed from the Folder
immediately. Messages that are externally expunged by another source
are marked "expunged" and return true for the isExpunged() method,
but they are not removed from the Folder until an explicit
expunge()
is done on the Folder.
See the description of expunge()
for more details on
expunge handling.
isExpunged
in class Message
Folder.expunge()
protected int getFetchBlockSize()
getFetchBlockSize
in class IMAPMessage
public int getSize() throws MessagingException
IMAPMessage
Note that this returns RFC822.SIZE. That is, it's the size of the whole message, header and body included.
getSize
in interface Part
getSize
in class IMAPMessage
MessagingException
public void setFlags(Flags flag, boolean set) throws MessagingException
IMAPMessage
setFlags
in class IMAPMessage
flag
- Flags object containing the flags to be setset
- the value to be set
MessagingException
IllegalWriteException
- if the underlying
implementation does not support modification
of existing values.MessageChangedEvent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |