gnu.mail.providers.imap
Class IMAPStore
The storage class implementing the IMAP4rev1 mail protocol.
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.
|
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, Quota.Resource[] resources) - Sets the quota resource set for the specified quota root.
|
protected void | setSelected(IMAPFolder folder) - Sets the selected folder.
|
addFolderListener , addStoreListener , getDefaultFolder , getFolder , getFolder , getPersonalNamespaces , getSharedNamespaces , getUserNamespaces , notifyFolderListeners , notifyFolderRenamedListeners , notifyStoreListeners , removeFolderListener , removeStoreListener |
addConnectionListener , close , connect , connect , connect , getURLName , isConnected , notifyConnectionListeners , protocolConnect , queueEvent , removeConnectionListener , setConnected , setURLName , toString |
connection
protected IMAPConnection connection
The connection to the IMAP server.
root
protected IMAPFolder root
Folder representing the root namespace of the IMAP connection.
selected
protected IMAPFolder selected
The currently selected folder.
getConnection
protected IMAPConnection getConnection()
throws StoreClosedException
Returns the IMAP connection used by this store.
getQuota
public Quota getQuota(String root)
throws MessagingException
Returns the quota for the specified quota root.
getTrustManager
protected TrustManager getTrustManager()
throws MessagingException
Returns a trust manager used for TLS negotiation.
getUserNamespaces
public Folder[] getUserNamespaces()
throws MessagingException
Returns a list of folders representing other users' namespaces.
See RFC 2342 for details.
isSelected
protected boolean isSelected(IMAPFolder folder)
Indicates whether the specified folder is selected.
processAlerts
protected void processAlerts()
Process any alerts supplied by the server.
protocolConnect
protected boolean protocolConnect(String host,
int port,
String username,
String password)
throws MessagingException
Connects to the IMAP server and authenticates with the specified
parameters.
- protocolConnect in interface Service
setQuota
public void setQuota(String root,
Quota.Resource[] resources)
throws MessagingException
Sets the quota resource set for the specified quota root.
root
- the quota rootresources
- the quota resources to set
setSelected
protected void setSelected(IMAPFolder folder)
Sets the selected folder.
© Copyright 2003, 2004
The Free Software Foundation, All rights reserved