org.apache.geronimo.javamail.store.pop3.connection
Class POP3Response

java.lang.Object
  extended by org.apache.geronimo.javamail.store.pop3.connection.POP3Response
All Implemented Interfaces:
POP3Constants
Direct Known Subclasses:
POP3ListResponse, POP3StatusResponse

public class POP3Response
extends Object
implements POP3Constants

This class provides the basic implementation for the POP3Response.

Version:
$Rev: 597135 $ $Date: 2007-11-21 11:26:57 -0500 (Wed, 21 Nov 2007) $
See Also:
org.apache.geronimo.javamail.store.pop3.POP3Response

Field Summary
 
Fields inherited from interface org.apache.geronimo.javamail.store.pop3.POP3Constants
CHALLENGE, CRLF, DOT, ERR, OK, SPACE
 
Method Summary
 byte[] decodeChallengeResponse()
          Decode the message portion of a continuation challenge response.
 ByteArrayInputStream getContentStream()
           
 byte[] getData()
           
 String getFirstLine()
           
 int getStatus()
           
 boolean isChallenge()
           
 boolean isError()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getStatus

public int getStatus()

getData

public byte[] getData()

getContentStream

public ByteArrayInputStream getContentStream()

getFirstLine

public String getFirstLine()

isError

public boolean isError()

isChallenge

public boolean isChallenge()

decodeChallengeResponse

public byte[] decodeChallengeResponse()
Decode the message portion of a continuation challenge response.

Returns:
The byte array containing the decoded data.


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