| Prev Class | Next Class | Frames | No Frames | 
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr | 
java.lang.Objectjavax.mail.Servicejavax.mail.Storegnu.mail.providers.imap.IMAPStorepublic class IMAPStoreextends Store| Field Summary | |
| protected  IMAPConnection | 
 | 
| protected  IMAPFolder | 
 | 
| protected  IMAPFolder | 
 | 
| Method Summary | |
|  void | 
 | 
| protected  IMAPConnection | 
 | 
|  Folder | 
 | 
|  Folder | 
 | 
|  Folder | |
|  Folder[] | 
 | 
|  Quota | 
 | 
|  Folder[] | 
 | 
| protected  TrustManager | 
 | 
|  Folder[] | 
 | 
| protected  boolean | 
 | 
| protected  void | 
 | 
| protected  boolean | 
 | 
|  void | 
 | 
| protected  void | 
 | 
| Methods inherited from class javax.mail.Store | |
| addFolderListener,addStoreListener,getDefaultFolder,getFolder,getFolder,getPersonalNamespaces,getSharedNamespaces,getUserNamespaces,notifyFolderListeners,notifyFolderRenamedListeners,notifyStoreListeners,removeFolderListener,removeStoreListener | |
| Methods inherited from class javax.mail.Service | |
| addConnectionListener,close,connect,connect,connect,getURLName,isConnected,notifyConnectionListeners,protocolConnect,removeConnectionListener,setConnected,setURLName,toString | |
public void close()
            throws MessagingExceptionCloses the connection.
- Overrides:
- close in interface Service
protected IMAPConnection getConnection()
            throws StoreClosedExceptionReturns the IMAP connection used by this store.
- Throws:
StoreClosedException- if the store is not currently connected
public Folder getDefaultFolder() throws MessagingException
Returns the root folder.
- Overrides:
- getDefaultFolder in interface Store
public Folder getFolder(String name) throws MessagingException
Returns the folder with the specified name.
- Overrides:
- getFolder in interface Store
public Folder getFolder(URLName urlname) throws MessagingException
Returns the folder whose name is the file part of the specified URLName.
- Overrides:
- getFolder in interface Store
public Folder[] getPersonalNamespaces() throws MessagingException
Returns a list of folders representing personal namespaces. See RFC 2342 for details.
- Overrides:
- getPersonalNamespaces in interface Store
public Quota getQuota(String root)
            throws MessagingExceptionReturns the quota for the specified quota root.
- Parameters:
root- the quota root
public Folder[] getSharedNamespaces() throws MessagingException
Returns a list of folders representing shared namespaces. See RFC 2342 for details.
- Overrides:
- getSharedNamespaces in interface Store
protected TrustManager getTrustManager()
            throws MessagingExceptionReturns a trust manager used for TLS negotiation.
public Folder[] getUserNamespaces() throws MessagingException
Returns a list of folders representing other users' namespaces. See RFC 2342 for details.
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)
            throws MessagingExceptionConnects to the IMAP server and authenticates with the specified parameters.
- Overrides:
- protocolConnect in interface Service
public void setQuota(String root,
                     Quota.Resource[] resources)
            throws MessagingExceptionSets the quota resource set for the specified quota root.
- Parameters:
root- the quota root
resources- the quota resources to set