public class GmailStore extends IMAPStore
authorizationID, defaultPort, host, isSSL, logger, name, password, proxyAuthUser, RESPONSE, saslRealm, user
Modifier | Constructor and 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,
String name,
boolean isSSL)
Constructor used by GmailSSLStore subclass.
|
Modifier and Type | Method and Description |
---|---|
protected IMAPFolder |
newIMAPFolder(ListInfo li)
Create an IMAPFolder object.
|
protected IMAPFolder |
newIMAPFolder(String fullName,
char separator,
Boolean isNamespace)
Create an IMAPFolder object.
|
protected IMAPProtocol |
newIMAPProtocol(String host,
int port)
Create an IMAPProtocol object connected to the host and port.
|
protected boolean |
protocolConnect(String host,
int pport,
String user,
String password)
Implementation of protocolConnect().
|
close, finalize, getDefaultFolder, getFolder, getFolder, getPersonalNamespaces, getQuota, getSharedNamespaces, getUserNamespaces, handleResponse, hasCapability, idle, isConnected, isSSL, newIMAPFolder, preLogin, setPassword, setQuota, setUsername
addFolderListener, addStoreListener, notifyFolderListeners, notifyFolderRenamedListeners, notifyStoreListeners, removeFolderListener, removeStoreListener
addConnectionListener, connect, connect, connect, connect, getURLName, notifyConnectionListeners, queueEvent, removeConnectionListener, setConnected, setURLName, toString
public GmailStore(Session session, URLName url)
protected boolean protocolConnect(String host, int pport, String user, 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(String host, int port) throws IOException, ProtocolException
IMAPStore
newIMAPProtocol
in class IMAPStore
IOException
ProtocolException
protected IMAPFolder newIMAPFolder(String fullName, char separator, Boolean isNamespace)
newIMAPFolder
in class IMAPStore
protected IMAPFolder newIMAPFolder(ListInfo li)
newIMAPFolder
in class IMAPStore
Copyright © 2015 Oracle. All Rights Reserved.