|
Java EE 5 SDK 深圳电信培训中心.徐海蛟老师. |
||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 |
javax.mail Interface QuotaAwareStore
public interface QuotaAwareStore
An interface implemented by Stores that support quotas.
The getQuota
and setQuota
methods
support the quota model defined by the IMAP QUOTA extension.
Refer to RFC 2087
for more information.
- 从以下版本开始:
- JavaMail 1.4
方法摘要 | |
---|---|
Quota[] |
getQuota(String root)
Get the quotas for the named quota root. |
void |
setQuota(Quota quota)
Set the quotas for the quota root specified in the quota argument. |
方法详细信息 |
---|
getQuota
Quota[] getQuota(String root) throws MessagingException
- 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.
- 参数:
root
- the name of the quota root- 返回:
- array of Quota objects
- 抛出异常:
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 the
getQuota
method, but it need not be. - 参数:
quota
- the quota to set- 抛出异常:
MessagingException
- if the server doesn't support the QUOTA extension
|
Java EE 5 SDK 深圳电信培训中心.徐海蛟老师. |
||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 |
提交错误或意见
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.