Uses of Class
jakarta.mail.Folder
Package
Description
The Jakarta Mail API
provides classes that model a mail system.
Listeners and events for the Jakarta Mail API.
Classes specific to Internet mail systems.
-
Uses of Folder in jakarta.mail
Modifier and TypeFieldDescriptionprotected Folder
Message.folder
The containing folder, if this message is obtained from a folderModifier and TypeMethodDescriptionabstract Folder
Store.getDefaultFolder()
Returns a Folder object that represents the 'root' of the default namespace presented to the user by the Store.abstract Folder
Return the Folder object corresponding to the given name.FolderClosedException.getFolder()
Returns the dead Folder objectFolderNotFoundException.getFolder()
Returns the offending Folder object.Message.getFolder()
Get the folder from which this message was obtained.ReadOnlyFolderException.getFolder()
Returns the Folder object.Get a closed Folder object for the given URLName.abstract Folder
Return a closed Folder object, corresponding to the given URLName.abstract Folder
Return the Folder object corresponding to the given name.abstract Folder
Folder.getParent()
Returns the parent folder of this folder.Folder[]
Store.getPersonalNamespaces()
Return a set of folders representing the personal namespaces for the current user.Folder[]
Store.getSharedNamespaces()
Return a set of folders representing the shared namespaces.Folder[]
Store.getUserNamespaces
(String user) Return a set of folders representing the namespaces foruser
.Folder[]
Folder.list()
Convenience method that returns the list of folders under this Folder.abstract Folder[]
Returns a list of Folders belonging to this Folder's namespace that match the specified pattern.Folder[]
Folder.listSubscribed()
Convenience method that returns the list of subscribed folders under this Folder.Folder[]
Folder.listSubscribed
(String pattern) Returns a list of subscribed Folders belonging to this Folder's namespace that match the specified pattern.Modifier and TypeMethodDescriptionvoid
Folder.copyMessages
(Message[] msgs, Folder folder) Copy the specified Messages from this Folder into another Folder.protected void
Store.notifyFolderListeners
(int type, Folder folder) Notify all FolderListeners.protected void
Folder.notifyFolderRenamedListeners
(Folder folder) Notify all FolderListeners registered on this Folder and this folder's Store about the renaming of this folder.protected void
Store.notifyFolderRenamedListeners
(Folder oldF, Folder newF) Notify all FolderListeners about the renaming of a folder.abstract boolean
Rename this Folder.ModifierConstructorDescriptionFolderClosedException
(Folder folder) Constructs a FolderClosedException.FolderClosedException
(Folder folder, String message) Constructs a FolderClosedException with the specified detail message.FolderClosedException
(Folder folder, String message, Exception e) Constructs a FolderClosedException with the specified detail message and embedded exception.FolderNotFoundException
(Folder folder) Constructs a FolderNotFoundException.FolderNotFoundException
(Folder folder, String s) Constructs a FolderNotFoundException with the specified detail message.FolderNotFoundException
(Folder folder, String s, Exception e) Constructs a FolderNotFoundException with the specified detail message and embedded exception.FolderNotFoundException
(String s, Folder folder) Constructs a FolderNotFoundException with the specified detail message and the specified folder.protected
Constructor that takes a Folder and a message number.ReadOnlyFolderException
(Folder folder) Constructs a ReadOnlyFolderException with the specified folder and no detail message.ReadOnlyFolderException
(Folder folder, String message) Constructs a ReadOnlyFolderException with the specified detail message.ReadOnlyFolderException
(Folder folder, String message, Exception e) Constructs a ReadOnlyFolderException with the specified detail message and embedded exception. -
Uses of Folder in jakarta.mail.event
Modifier and TypeFieldDescriptionprotected Folder
FolderEvent.folder
The folder the event occurred on.protected Folder
FolderEvent.newFolder
The folder that represents the new name, in case of a RENAMED event.Modifier and TypeMethodDescriptionFolderEvent.getFolder()
Return the affected folder.FolderEvent.getNewFolder()
If this event indicates that a folder is renamed, (i.e, the event type is RENAMED), then this method returns the Folder object representing the new name.ModifierConstructorDescriptionFolderEvent
(Object source, Folder folder, int type) Constructor.FolderEvent
(Object source, Folder oldFolder, Folder newFolder, int type) Constructor.MessageCountEvent
(Folder folder, int type, boolean removed, Message[] msgs) Constructor. -
Uses of Folder in jakarta.mail.internet
ModifierConstructorDescriptionprotected
MimeMessage
(Folder folder, int msgnum) Constructs an empty MimeMessage object with the given Folder and message number.protected
MimeMessage
(Folder folder, InternetHeaders headers, byte[] content, int msgnum) Constructs a MimeMessage from the given InternetHeaders object and content.protected
MimeMessage
(Folder folder, InputStream is, int msgnum) Constructs a MimeMessage by reading and parsing the data from the specified MIME InputStream.