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

- Packages that use Response
  Package | Description
  --- | ---
  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 Response in com.sun.mail.iap

    Fields in com.sun.mail.iap declared as Response
    Modifier and Type | Field and Description
    --- | ---
    `protected Response` | ProtocolException.`response`

    Methods in com.sun.mail.iap that return Response
    Modifier and Type | Method and Description
    --- | ---
    `static Response` | Response.`byeResponse(Exception ex)` Return a Response object that looks like a BYE protocol response.
    `Response[]` | Protocol.`command(String command, Argument args)` Send a command to the server.
    `Response` | ProtocolException.`getResponse()` Return the offending Response object.
    `Response` | Protocol.`readResponse()`

    Methods in com.sun.mail.iap with parameters of type Response
    Modifier and Type | Method and Description
    --- | ---
    `void` | ResponseHandler.`handleResponse(Response r)`
    `void` | Protocol.`handleResult(Response response)` Convenience routine to handle OK, NO, BAD and BYE responses.
    `void` | Protocol.`notifyResponseHandlers(Response[] responses)` Notify response handlers
    `protected void` | Protocol.`processGreeting(Response r)`

    Constructors in com.sun.mail.iap with parameters of type Response
    Constructor and Description
    `BadCommandException(Response r)` Constructs an BadCommandException with the specified Response.
    `CommandFailedException(Response r)` Constructs an CommandFailedException with the specified Response.
    `ConnectionException(Protocol p, Response r)` Constructs an ConnectionException with the specified Response.
    `LiteralException(Response r)` Constructs a LiteralException with the specified Response object.
    `ParsingException(Response r)` Constructs an ParsingException with the specified Response.
    `ProtocolException(Response r)` Constructs a ProtocolException with the specified Response object.
    `Response(Response r)` Copy constructor.

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

    Methods in com.sun.mail.imap with parameters of type Response
    Modifier and Type | Method and Description
    --- | ---
    `void` | IMAPStore.`handleResponse(Response r)` Response handler method.
    `void` | IMAPFolder.`handleResponse(Response r)` The response handler.

  - ### Uses of Response in com.sun.mail.imap.protocol

    Subclasses of Response in com.sun.mail.imap.protocol
    Modifier and Type | Class and Description
    --- | ---
    `class` | `FetchResponse` This class represents a FETCH response obtained from the input stream of an IMAP server.
    `class` | `IMAPResponse` This class represents a response obtained from the input stream of an IMAP server.

    Methods in com.sun.mail.imap.protocol that return Response
    Modifier and Type | Method and Description
    --- | ---
    `Response[]` | IMAPProtocol.`fetch(int start, int end, String what)`
    `Response[]` | IMAPProtocol.`fetch(int msg, String what)`
    `Response[]` | IMAPProtocol.`fetch(MessageSet[] msgsets, String what)`
    `Response` | IMAPProtocol.`readIdleResponse()` While an IDLE command is in progress, read a response sent from the server.
    `Response` | IMAPProtocol.`readResponse()` Read a response from the server.

    Methods in com.sun.mail.imap.protocol with parameters of type Response
    Modifier and Type | Method and Description
    --- | ---
    `protected CopyUID` | IMAPProtocol.`getCopyUID(Response[] rr)` If the response contains a COPYUID response code, extract it and return a CopyUID object with the information.
    `static <T extends Item> T` | FetchResponse.`getItem(Response[] r, int msgno, Class<T> c)` Return the first fetch response item of the given class for the given message number.
    `static <T extends Item> List<T>` | FetchResponse.`getItems(Response[] r, int msgno, Class<T> c)` Return all fetch response items of the given class for the given message number.
    `protected void` | IMAPProtocol.`parseCapabilities(Response r)` Parse the capabilities from a CAPABILITY response or from a CAPABILITY response code attached to (e.g.) an OK response.
    `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().
    `protected void` | IMAPProtocol.`setCapabilities(Response r)` If the response contains a CAPABILITY response code, extract it and save the capabilities.

    Constructors in com.sun.mail.imap.protocol with parameters of type Response
    Constructor and Description
    `ID(Response r)` Parse the server parameter list out of the response.
    `MailboxInfo(Response[] r)` Collect the information about this mailbox from the responses to a SELECT or EXAMINE.
    `Namespaces.Namespace(Response r)` Parse a namespace element out of the response.
    `Namespaces(Response r)` Parse out all the namespaces.
    `Status(Response r)`

Copyright © 2016 Oracle. All rights reserved.