javax.mail
Interface QuotaAwareStore


public interface QuotaAwareStore

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

Version:
$Rev: 581202 $ $Date: 2007-10-02 08:05:22 -0400 (Tue, 02 Oct 2007) $

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

Method Detail

getQuota

Quota[] getQuota(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 identifies the quota target.

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


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