public class GmailProtocol extends IMAPProtocol
Modifier and Type | Field and Description |
---|---|
static FetchItem |
LABELS_ITEM |
static FetchItem |
MSGID_ITEM |
static FetchItem |
THRID_ITEM |
searchCharsets, searchSequence
Constructor and Description |
---|
GmailProtocol(String name,
String host,
int port,
Properties props,
boolean isSSL,
MailLogger logger)
Connect to Gmail.
|
Modifier and Type | Method and Description |
---|---|
FetchItem[] |
getFetchItems()
Return the additional fetch items supported by the Gmail protocol.
|
protected SearchSequence |
getSearchSequence()
Return a GmailSearchSequence.
|
append, appenduid, appenduid, authlogin, authntlm, authplain, capability, check, close, copy, copy, create, delete, deleteACL, disconnect, doList, examine, expunge, fetch, fetch, fetch, fetchBody, fetchBody, fetchBody, fetchBody, fetchBody, fetchBodyStructure, fetchFlags, fetchRFC822, fetchSequenceNumber, fetchSequenceNumbers, fetchSequenceNumbers, fetchUID, getACL, getCapabilities, getQuota, getQuotaRoot, getResponseBuffer, hasCapability, id, idleAbort, idleStart, isAuthenticated, isREV1, list, listRights, login, logout, lsub, myRights, namespace, noop, parseCapabilities, peekBody, peekBody, peekBody, processGreeting, processIdleResponse, proxyauth, readIdleResponse, readResponse, rename, sasllogin, search, search, select, setACL, setCapabilities, setQuota, sort, startTLS, status, storeFlags, storeFlags, storeFlags, subscribe, supportsNonSyncLiterals, uidexpunge, unselect, unsubscribe
addResponseHandler, command, finalize, getInputStream, getLocalHost, getOutputStream, getTimestamp, handleResult, isSSL, isTracing, notifyResponseHandlers, removeResponseHandler, resumeTracing, simpleCommand, startTLS, suspendTracing, writeCommand
public static final FetchItem MSGID_ITEM
public static final FetchItem THRID_ITEM
public static final FetchItem LABELS_ITEM
public GmailProtocol(String name, String host, int port, Properties props, boolean isSSL, MailLogger logger) throws IOException, ProtocolException
host
- host to connect toport
- portnumber to connect toprops
- Properties object used by this protocolisSSL
- use SSL?logger
- for log messagesIOException
ProtocolException
public FetchItem[] getFetchItems()
getFetchItems
in class IMAPProtocol
protected SearchSequence getSearchSequence()
getSearchSequence
in class IMAPProtocol
Copyright © 2015 Oracle. All Rights Reserved.