org.apache.geronimo.javamail.store.imap.connection
Class IMAPResponse

java.lang.Object
  extended by org.apache.geronimo.javamail.store.imap.connection.IMAPResponse
Direct Known Subclasses:
IMAPTaggedResponse, IMAPUntaggedResponse

public class IMAPResponse
extends Object

Base class for all response messages.

Version:
$Rev: 594520 $ $Date: 2007-11-13 07:57:39 -0500 (Tue, 13 Nov 2007) $

Field Summary
protected  byte[] response
           
 
Constructor Summary
protected IMAPResponse(byte[] response)
          Create a response object from a server response line (normally, untagged).
 
Method Summary
 byte[] getResponseData()
          Retrieve the raw response line data for this response message.
 String toString()
          Return the response message as a string value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

response

protected byte[] response
Constructor Detail

IMAPResponse

protected IMAPResponse(byte[] response)
Create a response object from a server response line (normally, untagged). This includes doing the parsing of the response line.

Parameters:
response - The response line used to create the reply object.
Method Detail

getResponseData

public byte[] getResponseData()
Retrieve the raw response line data for this response message. Normally, this will be a complete single line response, unless there are quoted literals in the response data containing octet data.

Returns:
The byte array containing the response information.

toString

public String toString()
Return the response message as a string value. This is intended for debugging purposes only. The response data might contain octet data that might not convert to character data appropriately.

Overrides:
toString in class Object
Returns:
The string version of the response.


Copyright © 2003-2009 The Apache Software Foundation. All Rights Reserved.