• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java DiscoItem类的典型用法和代码示例

java 2次浏览

本文整理汇总了Java中org.jivesoftware.openfire.disco.DiscoItem的典型用法代码示例。如果您正苦于以下问题:Java DiscoItem类的具体用法?Java DiscoItem怎么用?Java DiscoItem使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

DiscoItem类属于org.jivesoftware.openfire.disco包,在下文中一共展示了DiscoItem类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: getItems

点赞 2

import org.jivesoftware.openfire.disco.DiscoItem; //导入依赖的package包/类
@Override
public Iterator<DiscoItem> getItems(String name, String node, JID senderJID) {
    // Mark that offline messages shouldn't be sent when the user becomes available
    stopOfflineFlooding(senderJID);
    List<DiscoItem> answer = new ArrayList<>();
    for (OfflineMessage offlineMessage : messageStore.getMessages(senderJID.getNode(), false)) {
        answer.add(new DiscoItem(senderJID.asBareJID(), offlineMessage.getFrom().toString(),
                XMPPDateTimeFormat.format(offlineMessage.getCreationDate()), null));
    }

    return answer.iterator();
}
 

开发者ID:igniterealtime,
项目名称:Openfire,
代码行数:13,
代码来源:IQOfflineMessagesHandler.java

示例2: getItems

点赞 2

import org.jivesoftware.openfire.disco.DiscoItem; //导入依赖的package包/类
public Iterator<DiscoItem> getItems(String name, String node, JID senderJID) {
    // Mark that offline messages shouldn't be sent when the user becomes available
    stopOfflineFlooding(senderJID);
    List<DiscoItem> answer = new ArrayList<DiscoItem>();
    for (OfflineMessage offlineMessage : messageStore.getMessages(senderJID.getNode(), false)) {
        synchronized (dateFormat) {
            answer.add(new DiscoItem(new JID(senderJID.toBareJID()), offlineMessage.getFrom().toString(), dateFormat.format(offlineMessage.getCreationDate()), null));
        }
    }

    return answer.iterator();
}
 

开发者ID:coodeer,
项目名称:g3server,
代码行数:13,
代码来源:IQOfflineMessagesHandler.java

示例3: getItems

点赞 2

import org.jivesoftware.openfire.disco.DiscoItem; //导入依赖的package包/类
public Iterator<DiscoItem> getItems(String name, String node, JID senderJID) {
    // Mark that offline messages shouldn't be sent when the user becomes available
    stopOfflineFlooding(senderJID);
    List<DiscoItem> answer = new ArrayList<DiscoItem>();
    for (OfflineMessage offlineMessage : messageStore.getMessages(senderJID.getNode(), false)) {
        answer.add(new DiscoItem(senderJID.asBareJID(), offlineMessage.getFrom().toString(),
                XMPPDateTimeFormat.format(offlineMessage.getCreationDate()), null));
    }

    return answer.iterator();
}
 

开发者ID:idwanglu2010,
项目名称:openfire,
代码行数:12,
代码来源:IQOfflineMessagesHandler.java

示例4: getItems

点赞 2

import org.jivesoftware.openfire.disco.DiscoItem; //导入依赖的package包/类
public Iterator<DiscoItem> getItems(String name, String node, JID senderJID) {
    // Mark that offline messages shouldn't be sent when the user becomes available
    stopOfflineFlooding(senderJID);
    List<DiscoItem> answer = new ArrayList<DiscoItem>();
    for (OfflineMessage offlineMessage : messageStore.getMessages(senderJID.getNode(), false)) {
        answer.add(new DiscoItem(new JID(senderJID.toBareJID()), offlineMessage.getFrom().toString(),
                XMPPDateTimeFormat.format(offlineMessage.getCreationDate()), null));
    }

    return answer.iterator();
}
 

开发者ID:surevine,
项目名称:openfire-bespoke,
代码行数:12,
代码来源:IQOfflineMessagesHandler.java

示例5: getItems

点赞 2

import org.jivesoftware.openfire.disco.DiscoItem; //导入依赖的package包/类
@Override
public Iterator<DiscoItem> getItems(String name, String node, JID senderJID) {
    // A proxy server has no items
    return new ArrayList<DiscoItem>().iterator();
}
 

开发者ID:igniterealtime,
项目名称:Openfire,
代码行数:6,
代码来源:FileTransferProxy.java

示例6: getItems

点赞 2

import org.jivesoftware.openfire.disco.DiscoItem; //导入依赖的package包/类
public Iterator<DiscoItem> getItems(String name, String node, JID senderJID) {
    // A proxy server has no items
    return new ArrayList<DiscoItem>().iterator();
}
 

开发者ID:coodeer,
项目名称:g3server,
代码行数:5,
代码来源:FileTransferProxy.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)