org.apache.geronimo.javamail.store.imap.connection
Class IMAPUntaggedResponse
java.lang.Object
org.apache.geronimo.javamail.store.imap.connection.IMAPResponse
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) $
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. |
keyword
protected String keyword
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.
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.