- java.lang.Object
-
- jakarta.mail.Folder
-
- org.eclipse.angus.mail.imap.IMAPFolder
-
- org.eclipse.angus.mail.imap.DefaultFolder
-
- All Implemented Interfaces:
jakarta.mail.UIDFolder,java.lang.AutoCloseable,ResponseHandler
public class DefaultFolder extends IMAPFolder
The default IMAP folder (root of the naming hierarchy).
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.angus.mail.imap.IMAPFolder
IMAPFolder.FetchProfileItem, IMAPFolder.ProtocolCommand
-
-
Field Summary
-
Fields inherited from class org.eclipse.angus.mail.imap.IMAPFolder
attributes, availableFlags, exists, fullName, isNamespace, logger, messageCache, messageCacheLock, name, permanentFlags, protocol, separator, type, uidTable, UNKNOWN_SEPARATOR
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDefaultFolder(IMAPStore store)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappendMessages(jakarta.mail.Message[] msgs)Append the given messages into this folder.booleandelete(boolean recurse)Delete this folder.jakarta.mail.Message[]expunge()Expunge all messages marked as DELETED.jakarta.mail.FoldergetFolder(java.lang.String name)Get the named subfolder.java.lang.StringgetName()Get the name of this folder.jakarta.mail.FoldergetParent()Get this folder's parent.booleanhasNewMessages()Check whether this folder has new messages.jakarta.mail.Folder[]list(java.lang.String pattern)List all subfolders matching the specified pattern.jakarta.mail.Folder[]listSubscribed(java.lang.String pattern)List all subscribed subfolders matching the specified pattern.booleanrenameTo(jakarta.mail.Folder f)Rename this folder.-
Methods inherited from class org.eclipse.angus.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, throwClosedException
-
Methods 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 Detail
-
DefaultFolder
protected DefaultFolder(IMAPStore store)
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from class:IMAPFolderGet the name of this folder.- Overrides:
getNamein classIMAPFolder
-
getParent
public jakarta.mail.Folder getParent()
Description copied from class:IMAPFolderGet this folder's parent.- Overrides:
getParentin classIMAPFolder
-
list
public jakarta.mail.Folder[] list(java.lang.String pattern) throws jakarta.mail.MessagingExceptionDescription copied from class:IMAPFolderList all subfolders matching the specified pattern.- Overrides:
listin classIMAPFolder- Throws:
jakarta.mail.MessagingException
-
listSubscribed
public jakarta.mail.Folder[] listSubscribed(java.lang.String pattern) throws jakarta.mail.MessagingExceptionDescription copied from class:IMAPFolderList all subscribed subfolders matching the specified pattern.- Overrides:
listSubscribedin classIMAPFolder- Throws:
jakarta.mail.MessagingException
-
hasNewMessages
public boolean hasNewMessages() throws jakarta.mail.MessagingExceptionDescription copied from class:IMAPFolderCheck whether this folder has new messages.- Overrides:
hasNewMessagesin classIMAPFolder- Throws:
jakarta.mail.MessagingException
-
getFolder
public jakarta.mail.Folder getFolder(java.lang.String name) throws jakarta.mail.MessagingExceptionDescription copied from class:IMAPFolderGet the named subfolder.- Overrides:
getFolderin classIMAPFolder- Throws:
jakarta.mail.MessagingException
-
delete
public boolean delete(boolean recurse) throws jakarta.mail.MessagingExceptionDescription copied from class:IMAPFolderDelete this folder.- Overrides:
deletein classIMAPFolder- Throws:
jakarta.mail.MessagingException
-
renameTo
public boolean renameTo(jakarta.mail.Folder f) throws jakarta.mail.MessagingExceptionDescription copied from class:IMAPFolderRename this folder.- Overrides:
renameToin classIMAPFolder- Throws:
jakarta.mail.MessagingException
-
appendMessages
public void appendMessages(jakarta.mail.Message[] msgs) throws jakarta.mail.MessagingExceptionDescription copied from class:IMAPFolderAppend the given messages into this folder.- Overrides:
appendMessagesin classIMAPFolder- Throws:
jakarta.mail.MessagingException
-
expunge
public jakarta.mail.Message[] expunge() throws jakarta.mail.MessagingExceptionDescription copied from class:IMAPFolderExpunge all messages marked as DELETED.- Overrides:
expungein classIMAPFolder- Throws:
jakarta.mail.MessagingException
-
-