Name
Store
Synopsis
This is an abstract class modeling a message store service, such as an IMAP or POP3 client. Basic service related
methods are provided via the parent Service
class.
public abstract class Store extends Service { // Protected Constructors protected Store(javax.mail.Session session, URLName urlname); // Event Registration Methods (by event name) public void addFolderListener( // synchronized javax.mail.event.FolderListener l); public void removeFolderListener( // synchronized javax.mail.event.FolderListener l); public void addStoreListener( // synchronized javax.mail.event.StoreListener l); public void removeStoreListener( // synchronized javax.mail.event.StoreListener l); // Public Instance Methods public abstract Folder getDefaultFolder( ) throws MessagingException; public abstract Folder getFolder( URLName url) throws MessagingException; public abstract Folder getFolder( String name) throws MessagingException; public Folder[] getPersonalNamespaces( // 1.2 ) throws MessagingException; public Folder[] getSharedNamespaces( // 1.2 ) throws MessagingException; public Folder[] getUserNamespaces( // 1.2 String user) throws MessagingException; // Protected Instance Methods protected void notifyFolderListeners(int type, Folder folder); protected void notifyFolderRenamedListeners(Folder oldF, Folder newF); protected void notifyStoreListeners(int type, String message); } ...
Get Java Enterprise in a Nutshell, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.