-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description Quota[]
getQuota(String folder)
Get the quotas for the named folder.void
setQuota(Quota quota)
Set the quotas for the quota root specified in the quota argument.
-
-
-
Method Detail
-
getQuota
Quota[] getQuota(String folder) throws MessagingException
Get the quotas for the named folder. 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:
folder
- the name of the folder- Returns:
- array of Quota objects
- Throws:
MessagingException
- if the server doesn't support the QUOTA extension
-
setQuota
void setQuota(Quota quota) throws MessagingException
Set the quotas for the quota root specified in the quota argument. Typically this will be one of the quota roots obtained from thegetQuota
method, but it need not be.- Parameters:
quota
- the quota to set- Throws:
MessagingException
- if the server doesn't support the QUOTA extension
-
-
Document created the 11/06/2005, last modified the 18/08/2025
Source of the printed document:https://www.gaudry.be/en/java-api-javaee-rf-javax/mail/QuotaAwareStore.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author of this site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.