java.lang.Object | +--javax.mail.Service | +--javax.mail.Store | +--gnu.mail.providers.imap.IMAPStore
IMAPConnection | The connection to the IMAP server. |
Folder representing the root namespace of the IMAP connection. | |
The currently selected folder. |
IMAPStore(Session session, URLName url) Constructor. |
synchronized void | close() Closes the connection. |
IMAPConnection | Returns the IMAP connection used by this store. |
Returns the root folder. | |
getFolder(String name) Returns the folder with the specified name. | |
Returns the folder whose name is the file part of the specified URLName. | |
boolean | isSelected(IMAPFolder folder) Indicates whether the specified folder is selected. |
void | Process any alerts supplied by the server. |
boolean | protocolConnect(String host, int port, String username, String password) Connects to the IMAP server and authenticates with the specified parameters. |
void | setSelected(IMAPFolder folder) Sets the selected folder. |
protected IMAPConnection connection
protected IMAPFolder root
protected IMAPFolder selected
public IMAPStore(Session session, URLName url)
public synchronized void close()
protected IMAPConnection getConnection()
StoreClosedException
- if the store is not currently connectedpublic Folder getDefaultFolder()
public Folder getFolder(String name)
public Folder getFolder(URLName urlname)
protected boolean isSelected(IMAPFolder folder)
protected void processAlerts()
protected boolean protocolConnect(String host, int port, String username, String password)
protected void setSelected(IMAPFolder folder)