|
||||||||||
| 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(Message[] msgs)
Append the given messages into this folder. |
boolean |
delete(boolean recurse)
Delete this folder. |
Message[] |
expunge()
Expunge all messages marked as DELETED. |
Folder |
getFolder(String name)
Get the named subfolder. |
String |
getName()
Get the name of this folder. |
Folder |
getParent()
Get this folder's parent. |
boolean |
hasNewMessages()
Check whether this folder has new messages. |
Folder[] |
list(String pattern)
List all subfolders matching the specified pattern. |
Folder[] |
listSubscribed(String pattern)
List all subscribed subfolders matching the specified pattern. |
boolean |
renameTo(Folder f)
Rename this folder. |
| 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 String getName()
IMAPFolder
getName in class IMAPFolderpublic Folder getParent()
IMAPFolder
getParent in class IMAPFolder
public Folder[] list(String pattern)
throws MessagingException
IMAPFolder
list in class IMAPFolderpattern - the match pattern
FolderNotFoundException - if this folder does
not exist.
MessagingExceptionFolder.listSubscribed(java.lang.String)
public Folder[] listSubscribed(String pattern)
throws MessagingException
IMAPFolder
listSubscribed in class IMAPFolderpattern - the match pattern
FolderNotFoundException - if this folder does
not exist.
MessagingExceptionFolder.list(java.lang.String)
public boolean hasNewMessages()
throws MessagingException
IMAPFolder
hasNewMessages in class IMAPFolderFolderNotFoundException - if this folder does
not exist.
MessagingException
public Folder getFolder(String name)
throws MessagingException
IMAPFolder
getFolder in class IMAPFoldername - name of the Folder
MessagingException
public boolean delete(boolean recurse)
throws MessagingException
IMAPFolder
delete in class IMAPFolderFolderNotFoundException - if this folder does
not exist
MessagingExceptionFolderEvent
public boolean renameTo(Folder f)
throws MessagingException
IMAPFolder
renameTo in class IMAPFolderf - a folder representing the new name for this Folder
FolderNotFoundException - if this folder does
not exist
MessagingExceptionFolderEvent
public void appendMessages(Message[] msgs)
throws MessagingException
IMAPFolder
appendMessages in class IMAPFoldermsgs - array of Messages to be appended
FolderNotFoundException - if this folder does
not exist.
MessagingException - if the append failed.
public Message[] expunge()
throws MessagingException
IMAPFolder
expunge in class IMAPFolderFolderNotFoundException - if this folder does not
exist
MessagingExceptionMessage.isExpunged(),
MessageCountEvent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||