Package com.sun.mail.imap
Class DefaultFolder
java.lang.Object
jakarta.mail.Folder
com.sun.mail.imap.IMAPFolder
com.sun.mail.imap.DefaultFolder
- All Implemented Interfaces:
ResponseHandler,UIDFolder,AutoCloseable
The default IMAP folder (root of the naming hierarchy).
- Author:
- John Mani
-
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, exists, fullName, isNamespace, logger, messageCache, messageCacheLock, name, permanentFlags, protocol, separator, type, uidTable, UNKNOWN_SEPARATORFields inherited from class jakarta.mail.Folder
HOLDS_FOLDERS, HOLDS_MESSAGES, mode, READ_ONLY, READ_WRITE, store -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendMessages(Message[] msgs) Append the given messages into this folder.booleandelete(boolean recurse) Delete this folder.Message[]expunge()Expunge all messages marked as DELETED.Get the named subfolder.getName()Get the name of this folder.Get this folder's parent.booleanCheck whether this folder has new messages.Folder[]List all subfolders matching the specified pattern.Folder[]listSubscribed(String pattern) List all subscribed subfolders matching the specified pattern.booleanRename this folder.Methods inherited from class com.sun.mail.imap.IMAPFolder
addACL, addMessageCountListener, addMessages, addRights, appendUIDMessages, checkClosed, checkExists, checkOpened, checkRange, close, copyMessages, copyUIDMessages, create, doCommand, doCommandIgnoreFailure, doOptionalCommand, doProtocolCommand, exists, expunge, fetch, forceClose, getACL, getAttributes, getDeletedMessageCount, getEnvelopeCommand, getFullName, getHighestModSeq, getMessage, getMessageBySeqNumber, getMessageByUID, getMessageCount, getMessages, getMessagesBySeqNumbers, getMessagesByUID, getMessagesByUID, getMessagesByUIDChangedSince, getNewMessageCount, getPermanentFlags, getProtocol, getQuota, getSeparator, getSortedMessages, getSortedMessages, getStatusItem, getStoreProtocol, getType, getUID, getUIDNext, getUIDNotSticky, getUIDValidity, getUnreadMessageCount, handleResponse, id, idle, idle, isOpen, isSubscribed, keepConnectionAlive, listRights, moveMessages, moveUIDMessages, myRights, newIMAPMessage, open, open, releaseProtocol, releaseStoreProtocol, removeACL, removeRights, search, search, setFlags, setFlags, setFlags, setQuota, setSubscribed, throwClosedExceptionMethods inherited from class jakarta.mail.Folder
addConnectionListener, addFolderListener, addMessageChangedListener, close, finalize, getMessages, getMessages, getMode, getStore, getURLName, list, listSubscribed, notifyConnectionListeners, notifyFolderListeners, notifyFolderRenamedListeners, notifyMessageAddedListeners, notifyMessageChangedListeners, notifyMessageRemovedListeners, removeConnectionListener, removeFolderListener, removeMessageChangedListener, removeMessageCountListener, toString
-
Constructor Details
-
DefaultFolder
-
-
Method Details
-
getName
Description copied from class:IMAPFolderGet the name of this folder.- Overrides:
getNamein classIMAPFolder
-
getParent
Description copied from class:IMAPFolderGet this folder's parent.- Overrides:
getParentin classIMAPFolder
-
list
Description copied from class:IMAPFolderList all subfolders matching the specified pattern.- Overrides:
listin classIMAPFolder- Throws:
MessagingException
-
listSubscribed
Description copied from class:IMAPFolderList all subscribed subfolders matching the specified pattern.- Overrides:
listSubscribedin classIMAPFolder- Throws:
MessagingException
-
hasNewMessages
Description copied from class:IMAPFolderCheck whether this folder has new messages.- Overrides:
hasNewMessagesin classIMAPFolder- Throws:
MessagingException
-
getFolder
Description copied from class:IMAPFolderGet the named subfolder.- Overrides:
getFolderin classIMAPFolder- Throws:
MessagingException
-
delete
Description copied from class:IMAPFolderDelete this folder.- Overrides:
deletein classIMAPFolder- Throws:
MessagingException
-
renameTo
Description copied from class:IMAPFolderRename this folder.- Overrides:
renameToin classIMAPFolder- Throws:
MessagingException
-
appendMessages
Description copied from class:IMAPFolderAppend the given messages into this folder.- Overrides:
appendMessagesin classIMAPFolder- Throws:
MessagingException
-
expunge
Description copied from class:IMAPFolderExpunge all messages marked as DELETED.- Overrides:
expungein classIMAPFolder- Throws:
MessagingException
-