本文整理了Java中javax.mail.Store.getPersonalNamespaces()
方法的一些代码示例,展示了Store.getPersonalNamespaces()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Store.getPersonalNamespaces()
方法的具体详情如下:
包路径:javax.mail.Store
类名称:Store
方法名:getPersonalNamespaces
[英]Return a set of folders representing the personal namespaces for the current user. A personal namespace is a set of names that is considered within the personal scope of the authenticated user. Typically, only the authenticated user has access to mail folders in their personal namespace. If an INBOX exists for a user, it must appear within the user's personal namespace. In the typical case, there should be only one personal namespace for each user in each Store.
This implementation returns an array with a single entry containing the return value of the getDefaultFolder
method. Subclasses should override this method to return appropriate information.
[中]返回一组代表当前用户的个人名称空间的文件夹。个人名称空间是在经过身份验证的用户的个人范围内考虑的一组名称。通常,只有经过身份验证的用户才能访问其个人命名空间中的邮件文件夹。如果存在用户的收件箱,它必须出现在用户的个人命名空间中。在典型情况下,每个商店中的每个用户都应该只有一个个人名称空间。
这个实现返回一个数组,其中有一个条目包含getDefaultFolder
方法的返回值。子类应该重写此方法以返回适当的信息。
代码示例来源:origin: camunda/camunda-bpm-platform
/**
* Using the IMAP NAMESPACE command (RFC 2342), return a set
* of folders representing the Personal namespaces.
*/
public Folder[] getPersonalNamespaces() throws MessagingException {
Namespaces ns = getNamespaces();
if (ns == null || ns.personal == null)
return super.getPersonalNamespaces();
return namespaceToFolders(ns.personal, null);
}
代码示例来源:origin: com.sun.mail/javax.mail
/**
* Using the IMAP NAMESPACE command (RFC 2342), return a set
* of folders representing the Personal namespaces.
*/
@Override
public Folder[] getPersonalNamespaces() throws MessagingException {
Namespaces ns = getNamespaces();
if (ns == null || ns.personal == null)
return super.getPersonalNamespaces();
return namespaceToFolders(ns.personal, null);
}
代码示例来源:origin: ujmp/universal-java-matrix-package
public ListMatrix<Folder> getPersonalFolders() throws Exception {
Folder[] folders = getStore().getPersonalNamespaces();
ListMatrix<Folder> folderMatrix = new DefaultListMatrix<Folder>(Arrays.asList(folders));
return folderMatrix;
}
代码示例来源:origin: org.glassfish.metro/webservices-extra
/**
* Using the IMAP NAMESPACE command (RFC 2342), return a set
* of folders representing the Personal namespaces.
*/
@Override
public Folder[] getPersonalNamespaces() throws MessagingException {
Namespaces ns = getNamespaces();
if (ns == null || ns.personal == null)
return super.getPersonalNamespaces();
return namespaceToFolders(ns.personal, null);
}
代码示例来源:origin: com.sun.mail/jakarta.mail
/**
* Using the IMAP NAMESPACE command (RFC 2342), return a set
* of folders representing the Personal namespaces.
*/
@Override
public Folder[] getPersonalNamespaces() throws MessagingException {
Namespaces ns = getNamespaces();
if (ns == null || ns.personal == null)
return super.getPersonalNamespaces();
return namespaceToFolders(ns.personal, null);
}
代码示例来源:origin: org.apache.geronimo.javamail/geronimo-javamail_1.4_provider
/**
* Return the root folders of the personal namespace belonging to the current user.
*
* The default implementation simply returns an array containing the folder returned by {@link #getDefaultFolder()}.
* @return the root folders of the user's peronal namespaces
* @throws MessagingException if there was a problem accessing the store
*/
public Folder[] getPersonalNamespaces() throws MessagingException {
IMAPNamespaceResponse namespaces = getNamespaces();
// if nothing is returned, then use the API-defined default for this
if (namespaces.personalNamespaces.size() == 0) {
return super.getPersonalNamespaces();
}
// convert the list into an array of Folders.
return getNamespaceFolders(namespaces.personalNamespaces);
}
代码示例来源:origin: javax.mail/com.springsource.javax.mail
/**
* Using the IMAP NAMESPACE command (RFC 2342), return a set
* of folders representing the Personal namespaces.
*/
public Folder[] getPersonalNamespaces() throws MessagingException {
Namespaces ns = getNamespaces();
if (ns == null || ns.personal == null)
return super.getPersonalNamespaces();
return namespaceToFolders(ns.personal, null);
}
代码示例来源:origin: com.sun.mail/android-mail
/**
* Using the IMAP NAMESPACE command (RFC 2342), return a set
* of folders representing the Personal namespaces.
*/
@Override
public Folder[] getPersonalNamespaces() throws MessagingException {
Namespaces ns = getNamespaces();
if (ns == null || ns.personal == null)
return super.getPersonalNamespaces();
return namespaceToFolders(ns.personal, null);
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.javax.mail
/**
* Using the IMAP NAMESPACE command (RFC 2342), return a set
* of folders representing the Personal namespaces.
*/
public Folder[] getPersonalNamespaces() throws MessagingException {
Namespaces ns = getNamespaces();
if (ns == null || ns.personal == null)
return super.getPersonalNamespaces();
return namespaceToFolders(ns.personal, null);
}
代码示例来源:origin: jboss/jboss-javaee-specs
/**
* Using the IMAP NAMESPACE command (RFC 2342), return a set
* of folders representing the Personal namespaces.
*/
@Override
public Folder[] getPersonalNamespaces() throws MessagingException {
Namespaces ns = getNamespaces();
if (ns == null || ns.personal == null)
return super.getPersonalNamespaces();
return namespaceToFolders(ns.personal, null);
}
代码示例来源:origin: nbenm/ImapNote2
Folder[] folders = store.getPersonalNamespaces();
Folder folder = folders[0];
代码示例来源:origin: nbenm/ImapNote2
Folder[] folders = store.getPersonalNamespaces();
Folder folder = folders[0];
内容来源于网络,如有侵权,请联系作者删除!