ResponseHandler
, java.lang.AutoCloseable
, QuotaAwareStore
GmailSSLStore
public class GmailStore extends 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
Modifier | Constructor | Description |
---|---|---|
|
GmailStore(Session session,
URLName url) |
Constructor that takes a Session object and a URLName that
represents a specific IMAP server.
|
protected |
GmailStore(Session session,
URLName url,
java.lang.String name,
boolean isSSL) |
Constructor used by GmailSSLStore subclass.
|
Modifier and Type | Method | Description |
---|---|---|
protected IMAPFolder |
newIMAPFolder(ListInfo li) |
Create an IMAPFolder object.
|
protected IMAPFolder |
newIMAPFolder(java.lang.String fullName,
char separator,
java.lang.Boolean isNamespace) |
Create an IMAPFolder object.
|
protected IMAPProtocol |
newIMAPProtocol(java.lang.String host,
int port) |
Create an IMAPProtocol object connected to the host and port.
|
protected boolean |
protocolConnect(java.lang.String host,
int pport,
java.lang.String user,
java.lang.String password) |
Implementation of protocolConnect().
|
close, finalize, getDefaultFolder, getFolder, getFolder, getPersonalNamespaces, getProxyAuthUser, getQuota, getSharedNamespaces, getUserNamespaces, handleResponse, hasCapability, id, idle, isConnected, isSSL, newIMAPFolder, preLogin, setPassword, setProxyAuthUser, setQuota, setUsername
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
addConnectionListener, connect, connect, connect, connect, getURLName, notifyConnectionListeners, queueEvent, removeConnectionListener, setConnected, setURLName, toString
addFolderListener, addStoreListener, notifyFolderListeners, notifyFolderRenamedListeners, notifyStoreListeners, removeFolderListener, removeStoreListener
public GmailStore(Session session, URLName url)
session
- the Sessionurl
- the URLName of this storeprotected boolean protocolConnect(java.lang.String host, int pport, java.lang.String user, java.lang.String password) throws MessagingException
IMAPStore
The host
, user
, and password
parameters must all be non-null. If the authentication mechanism
being used does not require a password, an empty string or other
suitable dummy password should be used.
protocolConnect
in class IMAPStore
host
- the name of the host to connect topport
- the port to use (-1 means use default port)user
- the name of the user to login aspassword
- the user's passwordAuthenticationFailedException
- for authentication failuresMessagingException
- for non-authentication failuresprotected IMAPProtocol newIMAPProtocol(java.lang.String host, int port) throws java.io.IOException, ProtocolException
IMAPStore
newIMAPProtocol
in class IMAPStore
host
- the host nameport
- the port numberjava.io.IOException
- for I/O errorsProtocolException
- for protocol errorsprotected IMAPFolder newIMAPFolder(java.lang.String fullName, char separator, java.lang.Boolean isNamespace)
newIMAPFolder
in class IMAPStore
fullName
- the full name of the folderseparator
- the separator character for the folder hierarchyisNamespace
- does this name represent a namespace?protected IMAPFolder newIMAPFolder(ListInfo li)
newIMAPFolder
in class IMAPStore
li
- the ListInfo for the folderCopyright © 2018 Oracle. All rights reserved.