当前位置: 首页>>代码示例>>Java>>正文


Java XMPPServer.getPresenceManager方法代码示例

本文整理汇总了Java中org.jivesoftware.openfire.XMPPServer.getPresenceManager方法的典型用法代码示例。如果您正苦于以下问题:Java XMPPServer.getPresenceManager方法的具体用法?Java XMPPServer.getPresenceManager怎么用?Java XMPPServer.getPresenceManager使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.jivesoftware.openfire.XMPPServer的用法示例。


在下文中一共展示了XMPPServer.getPresenceManager方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: initialize

import org.jivesoftware.openfire.XMPPServer; //导入方法依赖的package包/类
@Override
public void initialize(XMPPServer server) {
    super.initialize(server);
    localServer = server;
    rosterManager = server.getRosterManager();
    presenceManager = server.getPresenceManager();
    deliverer = server.getPacketDeliverer();
    messageStore = server.getOfflineMessageStore();
    sessionManager = server.getSessionManager();
    userManager = server.getUserManager();
    routingTable = server.getRoutingTable();
    directedPresencesCache = CacheFactory.createCache(PRESENCE_CACHE_NAME);
    // TODO Add as route listener (to remove direct presences info for removed routes). Mainly for c2s sessions which is uncommon.
    // Listen to cluster events
    ClusterManager.addListener(this);
}
 
开发者ID:igniterealtime,项目名称:Openfire,代码行数:17,代码来源:PresenceUpdateHandler.java

示例2: initializePlugin

import org.jivesoftware.openfire.XMPPServer; //导入方法依赖的package包/类
public void initializePlugin(PluginManager manager, File pluginDirectory) {
    pluginManager = manager;
    XMPPServer server = XMPPServer.getInstance();
    userManager = server.getUserManager();
    presenceManager = server.getPresenceManager();
    hostname = server.getServerInfo().getXMPPDomain();
    probedPresence = new ConcurrentHashMap<String, Presence>();
    componentJID = new JID(subdomain + "." + hostname);
    // Register new component
    componentManager = ComponentManagerFactory.getComponentManager();
    try {
        componentManager.addComponent(subdomain, this);
    }
    catch (Exception e) {
        Log.error(e.getMessage(), e);
    }
}
 
开发者ID:igniterealtime,项目名称:Openfire,代码行数:18,代码来源:PresencePlugin.java

示例3: initialize

import org.jivesoftware.openfire.XMPPServer; //导入方法依赖的package包/类
@Override
public void initialize(XMPPServer server) {
       super.initialize(server);
       localServer = server;
       rosterManager = server.getRosterManager();
       presenceManager = server.getPresenceManager();
       deliverer = server.getPacketDeliverer();
       messageStore = server.getOfflineMessageStore();
       sessionManager = server.getSessionManager();
       userManager = server.getUserManager();
       routingTable = server.getRoutingTable();
       directedPresencesCache = CacheFactory.createCache(PRESENCE_CACHE_NAME);
       // TODO Add as route listener (to remove direct presences info for removed routes). Mainly for c2s sessions which is uncommon.
       // Listen to cluster events
       ClusterManager.addListener(this);
   }
 
开发者ID:coodeer,项目名称:g3server,代码行数:17,代码来源:PresenceUpdateHandler.java

示例4: initialize

import org.jivesoftware.openfire.XMPPServer; //导入方法依赖的package包/类
@Override
public void initialize(XMPPServer server) {
    super.initialize(server);
    localServer = server;
    serverName = server.getServerInfo().getXMPPDomain();
    routingTable = server.getRoutingTable();
    deliverer = server.getPacketDeliverer();
    presenceManager = server.getPresenceManager();
    rosterManager = server.getRosterManager();
    userManager = server.getUserManager();
}
 
开发者ID:igniterealtime,项目名称:Openfire,代码行数:12,代码来源:PresenceSubscribeHandler.java

示例5: initialize

import org.jivesoftware.openfire.XMPPServer; //导入方法依赖的package包/类
@Override
public void initialize(XMPPServer server) {
       super.initialize(server);
       localServer = server;
       serverName = server.getServerInfo().getXMPPDomain();
       routingTable = server.getRoutingTable();
       deliverer = server.getPacketDeliverer();
       presenceManager = server.getPresenceManager();
       rosterManager = server.getRosterManager();
       userManager = server.getUserManager();
   }
 
开发者ID:coodeer,项目名称:g3server,代码行数:12,代码来源:PresenceSubscribeHandler.java

示例6: initialize

import org.jivesoftware.openfire.XMPPServer; //导入方法依赖的package包/类
@Override
public void initialize(XMPPServer server) {
    super.initialize(server);
    presenceManager = server.getPresenceManager();
}
 
开发者ID:igniterealtime,项目名称:Openfire,代码行数:6,代码来源:IQLastActivityHandler.java

示例7: initialize

import org.jivesoftware.openfire.XMPPServer; //导入方法依赖的package包/类
@Override
public void initialize(XMPPServer server) {
       super.initialize(server);
       presenceManager = server.getPresenceManager();
       rosterManager = server.getRosterManager();
   }
 
开发者ID:coodeer,项目名称:g3server,代码行数:7,代码来源:IQLastActivityHandler.java


注:本文中的org.jivesoftware.openfire.XMPPServer.getPresenceManager方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。