public class DefaultFolder extends IMAPFolder
IMAPFolder.FetchProfileItem, IMAPFolder.ProtocolCommandattributes, availableFlags, debug, exists, fullName, isNamespace, messageCache, messageCacheLock, name, out, permanentFlags, protocol, separator, type, uidTable, UNKNOWN_SEPARATORHOLDS_FOLDERS, HOLDS_MESSAGES, mode, READ_ONLY, READ_WRITE, store| Modifier | Constructor and Description |
|---|---|
protected |
DefaultFolder(IMAPStore store) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
addACL, addMessageCountListener, addMessages, addRights, appendUIDMessages, checkClosed, checkExists, checkOpened, checkRange, close, copyMessages, create, doCommand, doCommandIgnoreFailure, doOptionalCommand, doProtocolCommand, exists, expunge, fetch, forceClose, getACL, getAttributes, getDeletedMessageCount, getFullName, getMessage, getMessageBySeqNumber, getMessageByUID, getMessageCount, getMessagesByUID, getMessagesByUID, getNewMessageCount, getPermanentFlags, getProtocol, getQuota, getSeparator, getSortedMessages, getSortedMessages, getStoreProtocol, getType, getUID, getUIDNext, getUIDValidity, getUnreadMessageCount, handleResponse, idle, idle, isOpen, isSubscribed, keepConnectionAlive, listRights, myRights, open, releaseProtocol, releaseStoreProtocol, removeACL, removeRights, search, search, setFlags, setQuota, setSubscribed, throwClosedExceptionaddConnectionListener, addFolderListener, addMessageChangedListener, finalize, getMessages, getMessages, getMessages, getMode, getStore, getURLName, list, listSubscribed, notifyConnectionListeners, notifyFolderListeners, notifyFolderRenamedListeners, notifyMessageAddedListeners, notifyMessageChangedListeners, notifyMessageRemovedListeners, removeConnectionListener, removeFolderListener, removeMessageChangedListener, removeMessageCountListener, setFlags, setFlags, toStringprotected DefaultFolder(IMAPStore store)
public String getName()
IMAPFoldergetName in class IMAPFolderpublic Folder getParent()
IMAPFoldergetParent in class IMAPFolderpublic Folder[] list(String pattern) throws MessagingException
IMAPFolderlist in class IMAPFolderpattern - the match patternFolderNotFoundException - if this folder does
not exist.MessagingExceptionFolder.listSubscribed(java.lang.String)public Folder[] listSubscribed(String pattern) throws MessagingException
IMAPFolderlistSubscribed in class IMAPFolderpattern - the match patternFolderNotFoundException - if this folder does
not exist.MessagingExceptionFolder.list(java.lang.String)public boolean hasNewMessages()
throws MessagingException
IMAPFolderhasNewMessages in class IMAPFolderFolderNotFoundException - if this folder does
not exist.MessagingExceptionpublic Folder getFolder(String name) throws MessagingException
IMAPFoldergetFolder in class IMAPFoldername - name of the FolderMessagingExceptionpublic boolean delete(boolean recurse)
throws MessagingException
IMAPFolderdelete in class IMAPFolderFolderNotFoundException - if this folder does
not existMessagingExceptionFolderEventpublic boolean renameTo(Folder f) throws MessagingException
IMAPFolderrenameTo in class IMAPFolderf - a folder representing the new name for this FolderFolderNotFoundException - if this folder does
not existMessagingExceptionFolderEventpublic void appendMessages(Message[] msgs) throws MessagingException
IMAPFolderappendMessages in class IMAPFoldermsgs - array of Messages to be appendedFolderNotFoundException - if this folder does
not exist.MessagingException - if the append failed.public Message[] expunge() throws MessagingException
IMAPFolderexpunge in class IMAPFolderFolderNotFoundException - if this folder does not
existMessagingExceptionMessage.isExpunged(),
MessageCountEventCopyright © 2012 JBoss by Red Hat. All Rights Reserved.