## Uses of Class
com.sun.mail.iap.ProtocolException

- Packages that use ProtocolException
  Package | Description
  --- | ---
  com.sun.mail.gimap | An EXPERIMENTAL IMAP protocol provider that supports the Gmail-specific IMAP protocol extensions .
  com.sun.mail.gimap.protocol |
  com.sun.mail.iap |
  com.sun.mail.imap | An IMAP protocol provider for the JavaMail API that provides access to an IMAP message store.
  com.sun.mail.imap.protocol |

- - ### Uses of ProtocolException in com.sun.mail.gimap

    Methods in com.sun.mail.gimap that throw ProtocolException
    Modifier and Type | Method and Description
    --- | ---
    `protected 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 ProtocolException
    Modifier and Type | Method and Description
    --- | ---
    `void` | 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 ProtocolException
    Constructor and Description
    `GmailProtocol(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.iap
    Modifier and Type | Class and Description
    --- | ---
    `class` | `BadCommandException`
    `class` | `CommandFailedException`
    `class` | `ConnectionException`
    `class` | `LiteralException`
    `class` | `ParsingException`

    Methods in com.sun.mail.iap that throw ProtocolException
    Modifier and Type | Method and Description
    --- | ---
    `void` | Protocol.`handleResult(Response response)` Convenience routine to handle OK, NO, BAD and BYE responses.
    `protected void` | Protocol.`processGreeting(Response r)`
    `Response` | 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` | Protocol.`startTLS(String cmd)` Start TLS on the current connection.
    `void` | Argument.`write(Protocol protocol)`
    `String` | Protocol.`writeCommand(String command, Argument args)`

    Constructors in com.sun.mail.iap that throw ProtocolException
    Constructor and Description
    `Protocol(String host, int port, Properties props, String prefix, boolean isSSL, MailLogger logger)` Constructor.
    `Response(Protocol p)` Read a new Response from the given Protocol

  - ### Uses of ProtocolException in com.sun.mail.imap

    Methods in com.sun.mail.imap that throw ProtocolException
    Modifier and Type | Method and Description
    --- | ---
    `Object` | IMAPFolder.ProtocolCommand.`doCommand(IMAPProtocol protocol)` Execute the user-defined command using the supplied IMAPProtocol object.
    `protected Object` | IMAPFolder.`doProtocolCommand(IMAPFolder.ProtocolCommand cmd)`
    `protected IMAPProtocol` | IMAPMessage.`getProtocol()` Get this message's folder's protocol connection.
    `protected IMAPProtocol` | IMAPFolder.`getProtocol()` Return the IMAPProtocol object for this folder.
    `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.protocol
    Modifier and Type | Class and Description
    --- | ---
    `class` | `IMAPReferralException` A ProtocolException that includes IMAP login referral information.

    Methods in com.sun.mail.imap.protocol that throw ProtocolException
    Modifier and Type | Method and Description
    --- | ---
    `void` | IMAPProtocol.`append(String mbox, Flags f, Date d, Literal data)` APPEND Command.
    `AppendUID` | IMAPProtocol.`appenduid(String mbox, Flags f, Date d, Literal data)` APPEND Command, return uid from APPENDUID response code.
    `AppendUID` | IMAPProtocol.`appenduid(String mbox, Flags f, Date d, Literal data, boolean uid)`
    `boolean` | SaslAuthenticator.`authenticate(String[] mechs, String realm, String authzid, String u, String p)`
    `boolean` | IMAPSaslAuthenticator.`authenticate(String[] mechs, String realm, String authzid, String u, String p)`
    `void` | IMAPProtocol.`authlogin(String u, String p)` The AUTHENTICATE command with AUTH=LOGIN authenticate scheme
    `void` | IMAPProtocol.`authntlm(String authzid, String u, String p)` The AUTHENTICATE command with AUTH=NTLM authentication scheme.
    `void` | IMAPProtocol.`authoauth2(String u, String p)` The AUTHENTICATE command with AUTH=XOAUTH2 authentication scheme.
    `void` | IMAPProtocol.`authplain(String authzid, String u, String p)` 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` | IMAPProtocol.`copy(int start, int end, String mbox)` COPY command.
    `void` | IMAPProtocol.`copy(MessageSet[] msgsets, String mbox)` COPY command.
    `CopyUID` | IMAPProtocol.`copyuid(int start, int end, String mbox)` COPY command, return uid from COPYUID response code.
    `CopyUID` | IMAPProtocol.`copyuid(MessageSet[] msgsets, String mbox)` COPY command, return uid from COPYUID response code.
    `void` | IMAPProtocol.`create(String mbox)` CREATE Command.
    `void` | IMAPProtocol.`delete(String mbox)` DELETE Command.
    `void` | IMAPProtocol.`deleteACL(String mbox, String user)` DELETEACL Command.
    `protected ListInfo[]` | IMAPProtocol.`doList(String cmd, String ref, String pat)` Execute the specified LIST-like command (e.g., "LIST" or "LSUB"), using the reference and pattern.
    `void` | IMAPProtocol.`enable(String cap)` ENABLE Command.
    `MailboxInfo` | IMAPProtocol.`examine(String mbox)` EXAMINE Command.
    `MailboxInfo` | IMAPProtocol.`examine(String mbox, ResyncData rd)` EXAMINE Command with QRESYNC data.
    `void` | IMAPProtocol.`expunge()` EXPUNGE Command.
    `Response[]` | IMAPProtocol.`fetch(int start, int end, String what)`
    `Response[]` | IMAPProtocol.`fetch(int msg, String what)`
    `Response[]` | IMAPProtocol.`fetch(MessageSet[] msgsets, String what)`
    `BODY` | IMAPProtocol.`fetchBody(int msgno, String section)` Fetch given BODY section.
    `protected BODY` | IMAPProtocol.`fetchBody(int msgno, String section, boolean peek)`
    `BODY` | IMAPProtocol.`fetchBody(int msgno, String section, int start, int size)` Partial FETCH of given BODY section.
    `protected BODY` | IMAPProtocol.`fetchBody(int msgno, String section, int start, int size, boolean peek, ByteArray ba)`
    `BODY` | IMAPProtocol.`fetchBody(int msgno, String section, int start, int size, ByteArray ba)` Partial FETCH of given BODY section.
    `BODYSTRUCTURE` | IMAPProtocol.`fetchBodyStructure(int msgno)` Fetch the BODYSTRUCTURE of the specified message.
    `Flags` | IMAPProtocol.`fetchFlags(int msgno)` Fetch the FLAGS for the given message.
    `MODSEQ` | IMAPProtocol.`fetchMODSEQ(int msgno)` Fetch the IMAP MODSEQ for the given message.
    `RFC822DATA` | 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.
    `UID` | IMAPProtocol.`fetchUID(int msgno)` Fetch the IMAP UID for the given message.
    `ACL[]` | IMAPProtocol.`getACL(String mbox)` GETACL Command.
    `Quota[]` | IMAPProtocol.`getQuota(String root)` GETQUOTA Command.
    `Quota[]` | IMAPProtocol.`getQuotaRoot(String mbox)` GETQUOTAROOT Command.
    `Map<String,String>` | IMAPProtocol.`id(Map<String,String> clientParams)` ID Command.
    `void` | IMAPProtocol.`id(String guid)` Deprecated. As of JavaMail 1.5.1, replaced by `id(Map<String,String>)`
    `void` | IMAPProtocol.`idleStart()` IDLE Command.
    `ListInfo[]` | IMAPProtocol.`list(String ref, String pattern)` LIST Command.
    `Rights[]` | IMAPProtocol.`listRights(String mbox, String user)` LISTRIGHTS Command.
    `void` | IMAPProtocol.`login(String u, String p)` LOGIN Command.
    `void` | IMAPProtocol.`logout()` LOGOUT Command.
    `ListInfo[]` | IMAPProtocol.`lsub(String ref, String pattern)` LSUB Command.
    `void` | IMAPProtocol.`move(int start, int end, String mbox)` MOVE command.
    `void` | IMAPProtocol.`move(MessageSet[] msgsets, String mbox)` MOVE command.
    `CopyUID` | IMAPProtocol.`moveuid(int start, int end, String mbox)` MOVE Command, return uid from COPYUID response code.
    `CopyUID` | IMAPProtocol.`moveuid(MessageSet[] msgsets, String mbox)` MOVE Command, return uid from COPYUID response code.
    `Rights` | IMAPProtocol.`myRights(String mbox)` MYRIGHTS Command.
    `Namespaces` | IMAPProtocol.`namespace()` NAMESPACE Command.
    `void` | IMAPProtocol.`noop()` The NOOP command.
    `BODY` | IMAPProtocol.`peekBody(int msgno, String section)` Fetch given BODY section, without marking the message as SEEN.
    `BODY` | IMAPProtocol.`peekBody(int msgno, String section, int start, int size)` Partial FETCH of given BODY section, without setting SEEN flag.
    `BODY` | IMAPProtocol.`peekBody(int msgno, String section, int start, int size, ByteArray ba)` 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` | IMAPProtocol.`proxyauth(String u)` PROXYAUTH Command.
    `Response` | IMAPProtocol.`readResponse()` Read a response from the server.
    `void` | IMAPProtocol.`rename(String o, String n)` RENAME Command.
    `void` | IMAPProtocol.`sasllogin(String[] allowed, String realm, String authzid, String u, String p)` 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.
    `MailboxInfo` | IMAPProtocol.`select(String mbox)` SELECT Command.
    `MailboxInfo` | IMAPProtocol.`select(String mbox, ResyncData rd)` SELECT Command with QRESYNC data.
    `void` | IMAPProtocol.`setACL(String mbox, char modifier, ACL acl)` SETACL Command.
    `void` | IMAPProtocol.`setQuota(Quota quota)` 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` | IMAPProtocol.`status(String mbox, String[] items)` STATUS Command.
    `void` | IMAPProtocol.`storeFlags(int msg, Flags flags, boolean set)` Set the specified flags on this message.
    `void` | IMAPProtocol.`storeFlags(int start, int end, Flags flags, boolean set)`
    `void` | IMAPProtocol.`storeFlags(MessageSet[] msgsets, Flags flags, boolean set)`
    `void` | IMAPProtocol.`subscribe(String mbox)` 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 ProtocolException
    Constructor and Description
    `FetchResponse(IMAPResponse r)`
    `FetchResponse(IMAPResponse r, FetchItem[] fitems)` Construct a FetchResponse that handles the additional FetchItems.
    `FetchResponse(Protocol p)`
    `ID(Response r)` Parse the server parameter list out of the response.
    `IMAPProtocol(String name, String host, int port, Properties props, boolean isSSL, MailLogger logger)` Constructor.
    `IMAPResponse(Protocol c)`
    `IMAPResponse(String r)` For testing.
    `Namespaces.Namespace(Response r)` Parse a namespace element out of the response.
    `Namespaces(Response r)` Parse out all the namespaces.

Copyright © 2016 Oracle. All rights reserved.