javax.mail
Interface QuotaAwareStore


public interface QuotaAwareStore

An interface for Store implementations to support the IMAP RFC 2087 Quota extension.

Version:
$Rev: 513249 $ $Date: 2007-03-01 10:55:18 +0100 (Thu, 01 Mar 2007) $

Method Summary
 Quota[] getQuota(java.lang.String root)
          Get the quotas for the specified root element.
 void setQuota(Quota quota)
          Set a quota item.
 

Method Detail

getQuota

Quota[] getQuota(java.lang.String root)
                 throws MessagingException
Get the quotas for the specified root element.

Parameters:
root - The root name for the quota information.
Returns:
An array of Quota objects defined for the root.
Throws:
MessagingException - if the quotas cannot be retrieved

setQuota

void setQuota(Quota quota)
              throws MessagingException
Set a quota item. The root contained in the Quota item identies the quota target.

Parameters:
quota - The source quota item.
Throws:
MessagingException - if the quota cannot be set


Copyright © 2008. All Rights Reserved.