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

java.lang.Object
  extended by org.apache.geronimo.javamail.store.imap.connection.IMAPResponse
      extended by org.apache.geronimo.javamail.store.imap.connection.IMAPUntaggedResponse
          extended by org.apache.geronimo.javamail.store.imap.connection.IMAPOkResponse

public class IMAPOkResponse
extends IMAPUntaggedResponse

Util class to represent an untagged response from a IMAP server

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

Field Summary
protected  String message
           
protected  List status
           
 
Fields inherited from class org.apache.geronimo.javamail.store.imap.connection.IMAPUntaggedResponse
keyword
 
Fields inherited from class org.apache.geronimo.javamail.store.imap.connection.IMAPResponse
response
 
Constructor Summary
IMAPOkResponse(String keyword, List status, String message, byte[] response)
          Create a reply object from a server response line (normally, untagged).
 
Method Summary
 String getMessage()
          Get any trailing message associated with this status response.
 String getResponseCode()
          Get the response code included with the OK response.
 List getStatus()
          Return the status argument values associated with this status response.
 
Methods inherited from class org.apache.geronimo.javamail.store.imap.connection.IMAPUntaggedResponse
getKeyword, isKeyword
 
Methods inherited from class org.apache.geronimo.javamail.store.imap.connection.IMAPResponse
getResponseData, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

status

protected List status

message

protected String message
Constructor Detail

IMAPOkResponse

public IMAPOkResponse(String keyword,
                      List status,
                      String message,
                      byte[] response)
Create a reply 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

getResponseCode

public String getResponseCode()
Get the response code included with the OK response.

Returns:
The string name of the response code.

getStatus

public List getStatus()
Return the status argument values associated with this status response.

Returns:
The status value information, as a list of tokens.

getMessage

public String getMessage()
Get any trailing message associated with this status response.

Returns:


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