Uses of Class
com.sun.mail.iap.ProtocolException
Packages that use ProtocolException
Package
Description
An EXPERIMENTAL IMAP protocol provider that supports the
Gmail-specific IMAP protocol extensions
.
This package includes internal IMAP support classes and
SHOULD NOT BE USED DIRECTLY BY APPLICATIONS.
An IMAP protocol provider for the Jakarta Mail API
that provides access to an IMAP message store.
This package includes internal IMAP support classes and
SHOULD NOT BE USED DIRECTLY BY APPLICATIONS.
-
Uses of ProtocolException in com.sun.mail.gimap
Methods in com.sun.mail.gimap that throw ProtocolExceptionModifier and TypeMethodDescriptionprotected IMAPProtocol
GmailStore.newIMAPProtocol
(String host, int port) -
Uses of ProtocolException in com.sun.mail.gimap.protocol
Methods in com.sun.mail.gimap.protocol that throw ProtocolExceptionModifier and TypeMethodDescriptionvoid
GmailProtocol.storeLabels
(int start, int end, String[] labels, boolean set) Set the specified labels on this message.void
GmailProtocol.storeLabels
(int msg, String[] labels, boolean set) Set the specified labels on this message.void
GmailProtocol.storeLabels
(MessageSet[] msgsets, String[] labels, boolean set) Set the specified labels on this message.Constructors in com.sun.mail.gimap.protocol that throw ProtocolExceptionModifierConstructorDescriptionGmailProtocol
(String name, String host, int port, Properties props, boolean isSSL, MailLogger logger) Connect to Gmail. -
Uses of ProtocolException in com.sun.mail.iap
Subclasses of ProtocolException in com.sun.mail.iapModifier and TypeClassDescriptionclass
class
class
class
class
Methods in com.sun.mail.iap that throw ProtocolExceptionModifier and TypeMethodDescriptionvoid
Protocol.handleResult
(Response response) Convenience routine to handle OK, NO, BAD and BYE responses.protected void
Protocol.processGreeting
(Response r) Protocol.readResponse()
void
Protocol.simpleCommand
(String cmd, Argument args) Convenience routine to handle simple IAP commands that do not have responses specific to that command.void
Protocol.startCompression
(String cmd) Start compression on the current connection.void
Start TLS on the current connection.void
Protocol.writeCommand
(String command, Argument args) Constructors in com.sun.mail.iap that throw ProtocolExceptionModifierConstructorDescriptionProtocol
(String host, int port, Properties props, String prefix, boolean isSSL, MailLogger logger) Constructor.Read a new Response from the given Protocol -
Uses of ProtocolException in com.sun.mail.imap
Methods in com.sun.mail.imap that throw ProtocolExceptionModifier and TypeMethodDescriptionIMAPFolder.ProtocolCommand.doCommand
(IMAPProtocol protocol) Execute the user-defined command using the supplied IMAPProtocol object.protected Object
IMAPFolder.doProtocolCommand
(IMAPFolder.ProtocolCommand cmd) protected IMAPProtocol
IMAPFolder.getProtocol()
Return the IMAPProtocol object for this folder.protected IMAPProtocol
IMAPMessage.getProtocol()
Get this message's folder's protocol connection.protected IMAPProtocol
IMAPNestedMessage.getProtocol()
protected IMAPProtocol
IMAPFolder.getStoreProtocol()
Get this folder's Store's protocol connection.protected void
IMAPFolder.keepConnectionAlive
(boolean keepStoreAlive) Issue a noop command for the connection if the connection has not been used in more than a second.protected IMAPProtocol
IMAPStore.newIMAPProtocol
(String host, int port) Create an IMAPProtocol object connected to the host and port.protected void
IMAPStore.preLogin
(IMAPProtocol p) This method is called after the connection is made and TLS is started (if needed), but before any authentication is attempted. -
Uses of ProtocolException in com.sun.mail.imap.protocol
Subclasses of ProtocolException in com.sun.mail.imap.protocolModifier and TypeClassDescriptionclass
A ProtocolException that includes IMAP login referral information.Methods in com.sun.mail.imap.protocol that throw ProtocolExceptionModifier and TypeMethodDescriptionvoid
APPEND Command.APPEND Command, return uid from APPENDUID response code.boolean
IMAPSaslAuthenticator.authenticate
(String[] mechs, String realm, String authzid, String u, String p) boolean
void
The AUTHENTICATE command with AUTH=LOGIN authenticate schemevoid
The AUTHENTICATE command with AUTH=NTLM authentication scheme.void
IMAPProtocol.authoauth2
(String u, String p) The AUTHENTICATE command with AUTH=XOAUTH2 authentication scheme.void
The AUTHENTICATE command with AUTH=PLAIN authentication scheme.void
IMAPProtocol.capability()
CAPABILITY command.void
IMAPProtocol.check()
CHECK Command.void
IMAPProtocol.close()
CLOSE Command.void
IMAPProtocol.compress()
COMPRESS Command.void
COPY command.void
IMAPProtocol.copy
(MessageSet[] msgsets, String mbox) COPY command.COPY command, return uid from COPYUID response code.IMAPProtocol.copyuid
(MessageSet[] msgsets, String mbox) COPY command, return uid from COPYUID response code.void
CREATE Command.void
DELETE Command.void
DELETEACL Command.protected ListInfo[]
Execute the specified LIST-like command (e.g., "LIST" or "LSUB"), using the reference and pattern.void
ENABLE Command.EXAMINE Command.IMAPProtocol.examine
(String mbox, ResyncData rd) EXAMINE Command with QRESYNC data.void
IMAPProtocol.expunge()
EXPUNGE Command.Response[]
Response[]
Response[]
IMAPProtocol.fetch
(MessageSet[] msgsets, String what) Fetch given BODY section.protected BODY
Partial FETCH of given BODY section.protected BODY
Partial FETCH of given BODY section.IMAPProtocol.fetchBodyStructure
(int msgno) Fetch the BODYSTRUCTURE of the specified message.IMAPProtocol.fetchFlags
(int msgno) Fetch the FLAGS for the given message.IMAPProtocol.fetchMODSEQ
(int msgno) Fetch the IMAP MODSEQ for the given message.IMAPProtocol.fetchRFC822
(int msgno, String what) Fetch the specified RFC822 Data item.protected BODY
IMAPProtocol.fetchSectionBody
(int msgno, String section, String body) Fetch the given body section of the given message, using the body string "body".void
IMAPProtocol.fetchSequenceNumber
(long uid) Get the sequence number for the given UID.void
IMAPProtocol.fetchSequenceNumbers
(long[] uids) Get the sequence numbers for UIDs specified in the array.long[]
IMAPProtocol.fetchSequenceNumbers
(long start, long end) Get the sequence numbers for UIDs ranging from start till end.IMAPProtocol.fetchUID
(int msgno) Fetch the IMAP UID for the given message.ACL[]
GETACL Command.Quota[]
GETQUOTA Command.Quota[]
IMAPProtocol.getQuotaRoot
(String mbox) GETQUOTAROOT Command.protected void
IMAPProtocol.handleLoginResult
(Response r) Handle the result response for a LOGIN or AUTHENTICATE command.void
Deprecated.ID Command.void
IMAPProtocol.idleStart()
IDLE Command.ListInfo[]
LIST Command.Rights[]
IMAPProtocol.listRights
(String mbox, String user) LISTRIGHTS Command.void
LOGIN Command.void
IMAPProtocol.logout()
LOGOUT Command.ListInfo[]
LSUB Command.void
MOVE command.void
IMAPProtocol.move
(MessageSet[] msgsets, String mbox) MOVE command.MOVE Command, return uid from COPYUID response code.IMAPProtocol.moveuid
(MessageSet[] msgsets, String mbox) MOVE Command, return uid from COPYUID response code.MYRIGHTS Command.IMAPProtocol.namespace()
NAMESPACE Command.void
IMAPProtocol.noop()
The NOOP command.Fetch given BODY section, without marking the message as SEEN.Partial FETCH of given BODY section, without setting SEEN flag.Partial FETCH of given BODY section, without setting SEEN flag.protected void
IMAPProtocol.processGreeting
(Response r) Check the greeting when first connecting; look for PREAUTH response.boolean
IMAPProtocol.processIdleResponse
(Response r) Process a response returned by readIdleResponse().void
PROXYAUTH Command.IMAPProtocol.readResponse()
Read a response from the server.void
RENAME Command.void
SASL-based login.int[]
IMAPProtocol.search
(MessageSet[] msgsets, SearchTerm term) Issue the given search criterion on the specified message sets.int[]
IMAPProtocol.search
(SearchTerm term) Issue the given search criterion on all messages in this folder.SELECT Command.IMAPProtocol.select
(String mbox, ResyncData rd) SELECT Command with QRESYNC data.void
SETACL Command.void
SETQUOTA Command.int[]
IMAPProtocol.sort
(SortTerm[] term, SearchTerm sterm) Sort messages in the folder according to the specified sort criteria.void
IMAPProtocol.startTLS()
STARTTLS Command.STATUS Command.void
IMAPProtocol.storeFlags
(int start, int end, Flags flags, boolean set) void
IMAPProtocol.storeFlags
(int msg, Flags flags, boolean set) Set the specified flags on this message.void
IMAPProtocol.storeFlags
(MessageSet[] msgsets, Flags flags, boolean set) void
SUBSCRIBE Command.void
IMAPProtocol.uidexpunge
(UIDSet[] set) UID EXPUNGE Command.int[]
IMAPProtocol.uidfetchChangedSince
(long start, long end, long modseq) Get the sequence numbers for messages changed since the given modseq and with UIDs ranging from start till end.void
IMAPProtocol.unauthenticate()
UNAUTHENTICATE Command.void
IMAPProtocol.unselect()
UNSELECT Command.void
IMAPProtocol.unsubscribe
(String mbox) UNSUBSCRIBE Command.Constructors in com.sun.mail.imap.protocol that throw ProtocolExceptionModifierConstructorDescriptionFetchResponse
(IMAPResponse r, FetchItem[] fitems) Construct a FetchResponse that handles the additional FetchItems.Parse the server parameter list out of the response.IMAPProtocol
(String name, String host, int port, Properties props, boolean isSSL, MailLogger logger) Constructor.For testing.IMAPResponse
(String r, boolean utf8) For testing.Parse a namespace element out of the response.Parse out all the namespaces.
id(Map<String,String>)