public class

IMAPResponse

extends Response
java.lang.Object
   ↳ com.google.code.com.sun.mail.iap.Response
     ↳ com.google.code.com.sun.mail.imap.protocol.IMAPResponse
Known Direct Subclasses

Class Overview

This class represents a response obtained from the input stream of an IMAP server.

Summary

[Expand]
Inherited Constants
From class com.google.code.com.sun.mail.iap.Response
Fields
private String key
private int number
[Expand]
Inherited Fields
From class com.google.code.com.sun.mail.iap.Response
Public Constructors
IMAPResponse(Protocol c)
IMAPResponse(IMAPResponse r)
Copy constructor.
Public Methods
String getKey()
int getNumber()
boolean keyEquals(String k)
String[] readAtomStringList()
static IMAPResponse readResponse(Protocol p)
String[] readSimpleList()
Read a list of space-separated "flag_extension" sequences and return the list as a array of Strings.
[Expand]
Inherited Methods
From class com.google.code.com.sun.mail.iap.Response
From class java.lang.Object

Fields

private String key

private int number

Public Constructors

public IMAPResponse (Protocol c)

Parameters
c
Throws
IOException
ProtocolException

public IMAPResponse (IMAPResponse r)

Copy constructor.

Parameters
r

Public Methods

public String getKey ()

public int getNumber ()

public boolean keyEquals (String k)

Parameters
k

public String[] readAtomStringList ()

public static IMAPResponse readResponse (Protocol p)

Parameters
p
Throws
IOException
ProtocolException

public String[] readSimpleList ()

Read a list of space-separated "flag_extension" sequences and return the list as a array of Strings. An empty list is returned as null. This is an IMAP-ism, and perhaps this method should moved into the IMAP layer.