- java.lang.Object
-
- jakarta.mail.Service
-
- jakarta.mail.Store
-
- com.sun.mail.imap.IMAPStore
-
- com.sun.mail.gimap.GmailStore
-
- All Implemented Interfaces:
ResponseHandler,QuotaAwareStore,java.lang.AutoCloseable
- Direct Known Subclasses:
GmailSSLStore
public class GmailStore extends IMAPStore
A Gmail Store. Defaults to imap.gmail.com with SSL. Uses a GmailProtocol and Gmail Folder to support Gmail extensions.- Since:
- JavaMail 1.4.6
- Author:
- Bill Shannon
-
-
Field Summary
-
Fields inherited from class com.sun.mail.imap.IMAPStore
authorizationID, defaultPort, host, ID_ADDRESS, ID_ARGUMENTS, ID_COMMAND, ID_DATE, ID_ENVIRONMENT, ID_NAME, ID_OS, ID_OS_VERSION, ID_SUPPORT_URL, ID_VENDOR, ID_VERSION, isSSL, logger, name, password, proxyAuthUser, RESPONSE, saslRealm, user
-
-
Constructor Summary
Constructors Modifier Constructor Description GmailStore(Session session, URLName url)Constructor that takes a Session object and a URLName that represents a specific IMAP server.protectedGmailStore(Session session, URLName url, java.lang.String name, boolean isSSL)Constructor used by GmailSSLStore subclass.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected IMAPFoldernewIMAPFolder(ListInfo li)Create an IMAPFolder object.protected IMAPFoldernewIMAPFolder(java.lang.String fullName, char separator, java.lang.Boolean isNamespace)Create an IMAPFolder object.protected IMAPProtocolnewIMAPProtocol(java.lang.String host, int port)protected booleanprotocolConnect(java.lang.String host, int pport, java.lang.String user, java.lang.String password)-
Methods inherited from class com.sun.mail.imap.IMAPStore
close, finalize, getDefaultFolder, getFolder, getFolder, getPersonalNamespaces, getProxyAuthUser, getQuota, getSharedNamespaces, getUserNamespaces, handleResponse, hasCapability, id, idle, isConnected, isSSL, newIMAPFolder, preLogin, setPassword, setProxyAuthUser, setQuota, setUsername
-
Methods inherited from class jakarta.mail.Store
addFolderListener, addStoreListener, notifyFolderListeners, notifyFolderRenamedListeners, notifyStoreListeners, removeFolderListener, removeStoreListener
-
Methods inherited from class jakarta.mail.Service
addConnectionListener, connect, connect, connect, connect, getURLName, notifyConnectionListeners, queueEvent, removeConnectionListener, setConnected, setURLName, toString
-
-
-
-
Method Detail
-
protocolConnect
protected boolean protocolConnect(java.lang.String host, int pport, java.lang.String user, java.lang.String password) throws MessagingException- Overrides:
protocolConnectin classIMAPStore- Throws:
MessagingException
-
newIMAPProtocol
protected IMAPProtocol newIMAPProtocol(java.lang.String host, int port) throws java.io.IOException, ProtocolException
- Overrides:
newIMAPProtocolin classIMAPStore- Throws:
java.io.IOExceptionProtocolException
-
newIMAPFolder
protected IMAPFolder newIMAPFolder(java.lang.String fullName, char separator, java.lang.Boolean isNamespace)
Create an IMAPFolder object.- Overrides:
newIMAPFolderin classIMAPStore
-
newIMAPFolder
protected IMAPFolder newIMAPFolder(ListInfo li)
Create an IMAPFolder object.- Overrides:
newIMAPFolderin classIMAPStore
-
-