javax.mail

Interface QuotaAwareStore

public interface QuotaAwareStore

Interface implemented by mail stores that support quotas.

Since: JavaMail 1.4

Version: 1.4

Author: Chris Burdess

See Also: RFC 2087

Method Summary
Quota[]getQuota(String root)
Returns the quotas for the given quota root.
voidsetQuota(Quota quota)
Sets the quotas for the quota root specified in the quota argument.

Method Detail

getQuota

public Quota[] getQuota(String root)
Returns the quotas for the given quota root.

Parameters: root the quota root

Throws: MessagingException if the QUOTA extension is not supported

setQuota

public void setQuota(Quota quota)
Sets the quotas for the quota root specified in the quota argument.

Parameters: quota the quota

Throws: MessagingException if the QUOTA extension is not supported

© Copyright 2003, 2004 The Free Software Foundation, All rights reserved