gnu.inet.imap
Class IMAPResponse

java.lang.Object
  extended by gnu.inet.imap.IMAPResponse

public class IMAPResponse
extends java.lang.Object

An IMAP4rev1 server response.

Author:
Chris Burdess

Field Summary
protected  java.util.List code
          The response code.
static java.lang.String CONTINUATION
          The continuation response tag.
protected  int count
          The message count (for responses returning counts).
protected  java.lang.String id
          The response ID.
protected  java.lang.String mailbox
          The mailbox (for STATUS responses).
protected  java.lang.String tag
          The tag for this response.
protected  java.lang.String text
          The human-readable text.
static java.lang.String UNTAGGED
          The untagged response tag.
 
Constructor Summary
IMAPResponse()
           
 
Method Summary
 int getCount()
           
 java.lang.String getID()
           
 java.util.List getResponseCode()
           
 java.lang.String getTag()
           
 java.lang.String getText()
           
 boolean isContinuation()
           
 boolean isTagged()
           
 boolean isUntagged()
           
 java.lang.String toANSIString()
          ANSI-coloured toString for debugging.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UNTAGGED

public static final java.lang.String UNTAGGED
The untagged response tag.

See Also:
Constant Field Values

CONTINUATION

public static final java.lang.String CONTINUATION
The continuation response tag.

See Also:
Constant Field Values

tag

protected java.lang.String tag
The tag for this response.


id

protected java.lang.String id
The response ID.


count

protected int count
The message count (for responses returning counts).


mailbox

protected java.lang.String mailbox
The mailbox (for STATUS responses).


code

protected java.util.List code
The response code.


text

protected java.lang.String text
The human-readable text.

Constructor Detail

IMAPResponse

public IMAPResponse()
Method Detail

getTag

public java.lang.String getTag()

isTagged

public boolean isTagged()

isUntagged

public boolean isUntagged()

isContinuation

public boolean isContinuation()

getID

public java.lang.String getID()

getCount

public int getCount()

getResponseCode

public java.util.List getResponseCode()

getText

public java.lang.String getText()

toANSIString

public java.lang.String toANSIString()
ANSI-coloured toString for debugging.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


© Copyright 2003 The Free Software Foundation, all rights reserved