|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.mail.Folder
com.sun.mail.imap.IMAPFolder
com.sun.mail.imap.DefaultFolder
public class DefaultFolder
The default IMAP folder (root of the naming hierarchy).
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.sun.mail.imap.IMAPFolder |
|---|
IMAPFolder.FetchProfileItem, IMAPFolder.ProtocolCommand |
| Field Summary |
|---|
| Fields inherited from class com.sun.mail.imap.IMAPFolder |
|---|
attributes, availableFlags, debug, exists, fullName, isNamespace, messageCache, messageCacheLock, name, out, permanentFlags, protocol, separator, type, uidTable, UNKNOWN_SEPARATOR |
| Fields inherited from class javax.mail.Folder |
|---|
HOLDS_FOLDERS, HOLDS_MESSAGES, mode, READ_ONLY, READ_WRITE, store |
| Fields inherited from interface javax.mail.UIDFolder |
|---|
LASTUID |
| Constructor Summary | |
|---|---|
protected |
DefaultFolder(IMAPStore store)
|
| Method Summary | |
|---|---|
void |
appendMessages(javax.mail.Message[] msgs)
Append the given messages into this folder. |
boolean |
delete(boolean recurse)
Delete this folder. |
javax.mail.Message[] |
expunge()
Expunge all messages marked as DELETED. |
javax.mail.Folder |
getFolder(java.lang.String name)
Get the named subfolder. |
java.lang.String |
getName()
Get the name of this folder. |
javax.mail.Folder |
getParent()
Get this folder's parent. |
boolean |
hasNewMessages()
Check whether this folder has new messages. |
javax.mail.Folder[] |
list(java.lang.String pattern)
List all subfolders matching the specified pattern. |
javax.mail.Folder[] |
listSubscribed(java.lang.String pattern)
List all subscribed subfolders matching the specified pattern. |
boolean |
renameTo(javax.mail.Folder f)
Rename this folder. |
| Methods inherited from class javax.mail.Folder |
|---|
addConnectionListener, addFolderListener, addMessageChangedListener, finalize, getMessages, getMessages, getMessages, getMode, getStore, getURLName, list, listSubscribed, notifyConnectionListeners, notifyFolderListeners, notifyFolderRenamedListeners, notifyMessageAddedListeners, notifyMessageChangedListeners, notifyMessageRemovedListeners, removeConnectionListener, removeFolderListener, removeMessageChangedListener, removeMessageCountListener, setFlags, setFlags, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected DefaultFolder(IMAPStore store)
| Method Detail |
|---|
public java.lang.String getName()
IMAPFolder
getName in class IMAPFolderpublic javax.mail.Folder getParent()
IMAPFolder
getParent in class IMAPFolder
public javax.mail.Folder[] list(java.lang.String pattern)
throws javax.mail.MessagingException
IMAPFolder
list in class IMAPFolderpattern - the match pattern
javax.mail.MessagingExceptionFolder.listSubscribed(java.lang.String)
public javax.mail.Folder[] listSubscribed(java.lang.String pattern)
throws javax.mail.MessagingException
IMAPFolder
listSubscribed in class IMAPFolderpattern - the match pattern
javax.mail.MessagingExceptionFolder.list(java.lang.String)
public boolean hasNewMessages()
throws javax.mail.MessagingException
IMAPFolder
hasNewMessages in class IMAPFolderjavax.mail.MessagingException
public javax.mail.Folder getFolder(java.lang.String name)
throws javax.mail.MessagingException
IMAPFolder
getFolder in class IMAPFoldername - name of the Folder
javax.mail.MessagingException
public boolean delete(boolean recurse)
throws javax.mail.MessagingException
IMAPFolder
delete in class IMAPFolderjavax.mail.MessagingExceptionFolderEvent
public boolean renameTo(javax.mail.Folder f)
throws javax.mail.MessagingException
IMAPFolder
renameTo in class IMAPFolderf - a folder representing the new name for this Folder
javax.mail.MessagingExceptionFolderEvent
public void appendMessages(javax.mail.Message[] msgs)
throws javax.mail.MessagingException
IMAPFolder
appendMessages in class IMAPFoldermsgs - array of Messages to be appended
javax.mail.MessagingException - if the append failed.
public javax.mail.Message[] expunge()
throws javax.mail.MessagingException
IMAPFolder
expunge in class IMAPFolderjavax.mail.MessagingExceptionMessage.isExpunged(),
MessageCountEvent
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||