Package net.fortuna.mstor.model
Class MStorStore
- java.lang.Object
-
- javax.mail.Service
-
- javax.mail.Store
-
- net.fortuna.mstor.model.MStorStore
-
- All Implemented Interfaces:
AutoCloseable
public final class MStorStore extends javax.mail.StoreImplementation of a javamail store for the mstor provider.
-
-
Constructor Summary
Constructors Constructor Description MStorStore(javax.mail.Session session, javax.mail.URLName url)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()javax.mail.FoldergetDefaultFolder()javax.mail.FoldergetFolder(String name)javax.mail.FoldergetFolder(javax.mail.URLName url)protected booleanprotocolConnect(String host, int port, String user, String password)-
Methods inherited from class javax.mail.Store
addFolderListener, addStoreListener, getPersonalNamespaces, getSharedNamespaces, getUserNamespaces, notifyFolderListeners, notifyFolderRenamedListeners, notifyStoreListeners, removeFolderListener, removeStoreListener
-
-
-
-
Field Detail
-
INBOX
public static final String INBOX
The default inbox folder name.- See Also:
- Constant Field Values
-
-
Method Detail
-
getDefaultFolder
public javax.mail.Folder getDefaultFolder() throws javax.mail.MessagingException- Specified by:
getDefaultFolderin classjavax.mail.Store- Throws:
javax.mail.MessagingException
-
getFolder
public javax.mail.Folder getFolder(String name) throws javax.mail.MessagingException
- Specified by:
getFolderin classjavax.mail.Store- Throws:
javax.mail.MessagingException
-
getFolder
public javax.mail.Folder getFolder(javax.mail.URLName url) throws javax.mail.MessagingException- Specified by:
getFolderin classjavax.mail.Store- Throws:
javax.mail.MessagingException
-
protocolConnect
protected boolean protocolConnect(String host, int port, String user, String password) throws javax.mail.MessagingException
- Overrides:
protocolConnectin classjavax.mail.Service- Throws:
javax.mail.MessagingException
-
close
public void close() throws javax.mail.MessagingException- Specified by:
closein interfaceAutoCloseable- Overrides:
closein classjavax.mail.Service- Throws:
javax.mail.MessagingException
-
-