Applications that need to make use of IMAP-specific features may cast
a Store object to an IMAPStore object and
use the methods on this class. The getQuota and
setQuota methods support the IMAP QUOTA extension.
Refer to RFC 2087
for more information.
The id method supports the IMAP ID extension;
see RFC 2971.
The fields ID_NAME, ID_VERSION, etc. represent the suggested field names
in RFC 2971 section 3.3 and may be used as keys in the Map containing
client values or server values.
See the com.sun.mail.imap package documentation for further information on the IMAP protocol provider.
Warning
The APIs unique to this class should be considered EXPERIMENTAL. They may be changed in the future in ways that are incompatible with applications using the current APIs.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| protected String | |
| private final int | |
| private boolean | |
| private volatile boolean | |
| private final Object | |
| private boolean | |
| private boolean | |
| protected final int | |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| private volatile Constructor | |
| private volatile Constructor | |
| private volatile boolean | |
| private boolean | |
| private String | |
| protected String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| private boolean | |
| protected final boolean | |
| protected MailLogger | |
| private boolean | |
| private final int | |
| protected final String | |
| private Namespaces | |
| private ResponseHandler | nonStoreResponseHandler
A special response handler for connections that are being used to perform operations on behalf of an object other than the Store. |
| protected String | |
| private boolean | |
| private final IMAPStore. | |
| private volatile int | |
| protected String | |
| private boolean | |
| public static final int | RESPONSE
A special event type for a StoreEvent to indicate an IMAP response, if the mail.imap.enableimapevents property is set. |
| private String[] | |
| protected String | |
| private final int | |
| private boolean | |
| protected String | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv boolean | allowReadOnlySelect()
If a SELECT succeeds, but indicates that the folder is READ-ONLY, and the user asked to open the folder READ_WRITE, do we allow the open to succeed? |
| private void | authenticate(IMAPProtocol
the IMAPProtocol object p, String the authorization ID authzid, String the user name user, String the password password)Authenticate using one of the non-SASL mechanisms. |
| private void | |
| private synchronized void | |
| public synchronized void | close()
Overrides javax. Implements java. |
| private void | |
| private void | |
| protected void | finalize()
Overrides javax. |
| pack-priv int | |
| pack-priv MailLogger | |
| public synchronized Folder | getDefaultFolder()
Implements abstract javax. |
| pack-priv int | |
| public synchronized Folder | getFolder(String
The name of the Folder. In some Stores, name can
be an absolute path if it starts with the
hierarchy delimiter. Else it is interpreted
relative to the 'root' of this namespace. name)Implements abstract javax. |
| public synchronized Folder | getFolder(URLName
URLName that denotes a folder url)Implements abstract javax. |
| pack-priv IMAPProtocol | |
| pack-priv boolean | |
| pack-priv int | |
| private synchronized Namespaces | |
| pack-priv boolean | |
| public Folder[] | getPersonalNamespaces()
Overrides javax. |
| pack-priv IMAPProtocol | |
| public String | |
| public synchronized Quota[] | Returns: array of Quota objectsthe name of the quota root root)Implements javax. |
| pack-priv Session | |
| public Folder[] | getSharedNamespaces()
Overrides javax. |
| pack-priv int | |
| private IMAPProtocol | |
| public Folder[] | getUserNamespaces(String
the user name user)Overrides javax. |
| public void | handleResponse(Response r)
Implements com. |
| pack-priv void | |
| public synchronized boolean | Returns: true if the server supports this capabilitythe capability string capability)Return true if the specified capability string is in the list of capabilities the server announced. |
| pack-priv boolean | |
| public synchronized Map | |
| public void | |
| pack-priv boolean | |
| public synchronized boolean | |
| pack-priv boolean | |
| public synchronized boolean | |
| private void | |
| private Folder[] | |
| protected IMAPFolder | Returns: the new IMAPFolder objectthe full name of the folder fullName, char the separator character for the folder hierarchy separator, Boolean does this name represent a namespace? isNamespace)Create an IMAPFolder object. |
| protected IMAPFolder | Returns: the new IMAPFolder objectthe full name of the folder fullName, char the separator character for the folder hierarchy separator)Create an IMAPFolder object. |
| protected IMAPFolder | Returns: the new IMAPFolder objectthe ListInfo for the folder li)Create an IMAPFolder object. |
| protected IMAPProtocol | Returns: the new IMAPProtocol objectthe host name host, int the port number port)Create an IMAPProtocol object connected to the host and port. |
| protected void | preLogin(IMAPProtocol
the IMAPProtocol connection p)This method is called after the connection is made and TLS is started (if needed), but before any authentication is attempted. |
| protected synchronized boolean | protocolConnect(String
the name of the host to connect to host, int the port to use (-1 means use default port) pport, String the name of the user to login as user, String the user's password password)Overrides javax. |
| private void | |
| pack-priv void | releaseFolderStoreProtocol(IMAPProtocol protocol)
Release a store protocol object that was being used by a folder. |
| pack-priv void | releaseProtocol(IMAPFolder folder, IMAPProtocol protocol)
Release the protocol object back to the connection pool. |
| private void | |
| public synchronized void | setPassword(String
the password for the store password)Set the password that will be used for subsequent connections after this Store is first connected (for example, when creating a connection to open a Folder). |
| public void | setProxyAuthUser(String
the user name to set user)Set the user name to be used with the PROXYAUTH command. |
| public synchronized void | setQuota(Quota
the quota to set quota)Implements javax. |
| public synchronized void | setUsername(String
the user name for the store user)Set the user name that will be used for subsequent connections after this Store is first connected (for example, when creating a connection to open a Folder). |
| pack-priv boolean | |
| private void | |
| private String | |
| private String | |
| private void |