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

java.lang.Object
  extended by org.apache.geronimo.javamail.store.imap.connection.IMAPResponse
      extended by org.apache.geronimo.javamail.store.imap.connection.IMAPUntaggedResponse
Direct Known Subclasses:
IMAPACLResponse, IMAPCapabilityResponse, IMAPFetchResponse, IMAPFlagsResponse, IMAPListResponse, IMAPListRightsResponse, IMAPMyRightsResponse, IMAPNamespaceResponse, IMAPOkResponse, IMAPPermanentFlagsResponse, IMAPQuotaResponse, IMAPQuotaRootResponse, IMAPSearchResponse, IMAPServerStatusResponse, IMAPSizeResponse, IMAPStatusResponse

public class IMAPUntaggedResponse
extends IMAPResponse

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 keyword
           
 
Fields inherited from class org.apache.geronimo.javamail.store.imap.connection.IMAPResponse
response
 
Constructor Summary
IMAPUntaggedResponse(String keyword, byte[] response)
          Create a reply object from a server response line (normally, untagged).
 
Method Summary
 String getKeyword()
          Return the KEYWORD that identifies the type of this untagged response.
 boolean isKeyword(String keyword)
          Test if an untagged response is of a given keyword type.
 
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

keyword

protected String keyword
Constructor Detail

IMAPUntaggedResponse

public IMAPUntaggedResponse(String keyword,
                            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

getKeyword

public String getKeyword()
Return the KEYWORD that identifies the type of this untagged response.

Returns:
The identifying keyword.

isKeyword

public boolean isKeyword(String keyword)
Test if an untagged response is of a given keyword type.

Parameters:
keyword - The test keyword.
Returns:
True if this is a type match, false for mismatches.


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