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

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.IMAPCapabilityResponse

public class IMAPCapabilityResponse
extends IMAPUntaggedResponse

Util class to represent a CAPABILITY response from a IMAP server

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

Field Summary
protected  List authentications
           
protected  Map capabilities
           
 
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
IMAPCapabilityResponse(IMAPResponseTokenizer source, byte[] response)
          Create a reply object from a server response line (normally, untagged).
 
Method Summary
 List getAuthentications()
          Retrieve the map of the server-supported authentication mechanisms.
 Map getCapabilities()
          Return the capability map for the server.
 
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

capabilities

protected Map capabilities

authentications

protected List authentications
Constructor Detail

IMAPCapabilityResponse

public IMAPCapabilityResponse(IMAPResponseTokenizer source,
                              byte[] response)
                       throws MessagingException
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.
Throws:
MessagingException
Method Detail

getCapabilities

public Map getCapabilities()
Return the capability map for the server.

Returns:
A map of the capability items.

getAuthentications

public List getAuthentications()
Retrieve the map of the server-supported authentication mechanisms.

Returns:


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