| javax.mail.QuotaAwareStore
All known Subclasses: com.sun.mail.imap.IMAPStore,
QuotaAwareStore | public interface QuotaAwareStore (Code) | | An interface implemented by Stores that support quotas.
The
QuotaAwareStore.getQuota getQuota and
QuotaAwareStore.setQuota setQuota methods
support the quota model defined by the IMAP QUOTA extension.
Refer to RFC 2087
for more information.
since: JavaMail 1.4 |
Method Summary | |
Quota[] | getQuota(String root) Get the quotas for the named quota root.
Quotas are controlled on the basis of a quota root, not
(necessarily) a folder. | void | setQuota(Quota quota) Set the quotas for the quota root specified in the quota argument. |
getQuota | Quota[] getQuota(String root) throws MessagingException(Code) | | Get the quotas for the named quota root.
Quotas are controlled on the basis of a quota root, not
(necessarily) a folder. The relationship between folders
and quota roots depends on the server. Some servers
might implement a single quota root for all folders owned by
a user. Other servers might implement a separate quota root
for each folder. A single folder can even have multiple
quota roots, perhaps controlling quotas for different
resources.
Parameters: root - the name of the quota root array of Quota objects exception: MessagingException - if the server doesn't support theQUOTA extension |
setQuota | void setQuota(Quota quota) throws MessagingException(Code) | | Set the quotas for the quota root specified in the quota argument.
Typically this will be one of the quota roots obtained from the
getQuota method, but it need not be.
Parameters: quota - the quota to set exception: MessagingException - if the server doesn't support theQUOTA extension |
|
|