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.Store
Implementation 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 void
close()
javax.mail.Folder
getDefaultFolder()
javax.mail.Folder
getFolder(String name)
javax.mail.Folder
getFolder(javax.mail.URLName url)
protected boolean
protocolConnect(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:
getDefaultFolder
in classjavax.mail.Store
- Throws:
javax.mail.MessagingException
-
getFolder
public javax.mail.Folder getFolder(String name) throws javax.mail.MessagingException
- Specified by:
getFolder
in classjavax.mail.Store
- Throws:
javax.mail.MessagingException
-
getFolder
public javax.mail.Folder getFolder(javax.mail.URLName url) throws javax.mail.MessagingException
- Specified by:
getFolder
in classjavax.mail.Store
- Throws:
javax.mail.MessagingException
-
protocolConnect
protected boolean protocolConnect(String host, int port, String user, String password) throws javax.mail.MessagingException
- Overrides:
protocolConnect
in classjavax.mail.Service
- Throws:
javax.mail.MessagingException
-
close
public void close() throws javax.mail.MessagingException
- Specified by:
close
in interfaceAutoCloseable
- Overrides:
close
in classjavax.mail.Service
- Throws:
javax.mail.MessagingException
-
-