gnu.mail.providers.imap
public class IMAPStore extends Store
| Field Summary | |
|---|---|
| protected IMAPConnection | connection
The connection to the IMAP server. |
| protected IMAPFolder | root
Folder representing the root namespace of the IMAP connection. |
| protected IMAPFolder | selected
The currently selected folder. |
| Constructor Summary | |
|---|---|
| IMAPStore(Session session, URLName url)
Constructor. | |
| Method Summary | |
|---|---|
| void | close()
Closes the connection. |
| protected IMAPConnection | getConnection()
Returns the IMAP connection used by this store. |
| Folder | getDefaultFolder()
Returns the root folder. |
| Folder | getFolder(String name)
Returns the folder with the specified name. |
| Folder | getFolder(URLName urlname)
Returns the folder whose name is the file part of the specified URLName. |
| Folder[] | getPersonalNamespaces()
Returns a list of folders representing personal namespaces.
|
| Quota | getQuota(String root)
Returns the quota for the specified quota root. |
| Folder[] | getSharedNamespaces()
Returns a list of folders representing shared namespaces.
|
| protected TrustManager | getTrustManager()
Returns a trust manager used for TLS negotiation. |
| Folder[] | getUserNamespaces()
Returns a list of folders representing other users' namespaces.
|
| protected boolean | isSelected(IMAPFolder folder)
Indicates whether the specified folder is selected. |
| protected void | processAlerts()
Process any alerts supplied by the server. |
| protected boolean | protocolConnect(String host, int port, String username, String password)
Connects to the IMAP server and authenticates with the specified
parameters. |
| void | setQuota(String root, Resource[] resources)
Sets the quota resource set for the specified quota root. |
| protected void | setSelected(IMAPFolder folder)
Sets the selected folder. |
Throws: StoreClosedException if the store is not currently connected
Parameters: root the quota root
Parameters: root the quota root resources the quota resources to set