Java Code Examples for org.jivesoftware.openfire.XMPPServer#getIQDiscoInfoHandler()

The following examples show how to use org.jivesoftware.openfire.XMPPServer#getIQDiscoInfoHandler() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AdHocCommandHandler.java    From Openfire with Apache License 2.0 5 votes vote down vote up
@Override
public void initialize(XMPPServer server) {
    super.initialize(server);
    serverName = server.getServerInfo().getXMPPDomain();
    infoHandler = server.getIQDiscoInfoHandler();
    itemsHandler = server.getIQDiscoItemsHandler();
}
 
Example 2
Source File: IQOfflineMessagesHandler.java    From Openfire with Apache License 2.0 5 votes vote down vote up
@Override
public void initialize(XMPPServer server) {
    super.initialize(server);
    infoHandler = server.getIQDiscoInfoHandler();
    itemsHandler = server.getIQDiscoItemsHandler();
    messageStore = server.getOfflineMessageStore();
    userManager = server.getUserManager();
    routingTable = server.getRoutingTable();
}
 
Example 3
Source File: IQDiscoItemsHandler.java    From Openfire with Apache License 2.0 5 votes vote down vote up
@Override
public void initialize(XMPPServer server) {
    super.initialize(server);
    serverItems = CacheFactory.createCache("Disco Server Items");
    // Track the implementors of ServerItemsProvider so that we can collect the items
    // provided by the server
    infoHandler = server.getIQDiscoInfoHandler();
    setProvider(server.getServerInfo().getXMPPDomain(), getServerItemsProvider());
    // Listen to cluster events
    ClusterManager.addListener(this);
}