public class DiscoServerItem extends DiscoItem
When the server starts up, IQDiscoItemsHandler will request to all the services that implement the ServerItemsProvider interface for their DiscoServerItems. Each DiscoServerItem will provide its DiscoInfoProvider which will automatically be included in IQDiscoInfoHandler as the provider for this item's JID. Moreover, each DiscoServerItem will also provide its DiscoItemsProvider which will automatically be included in IQDiscoItemsHandler. Special attention must be paid to the JID since all the items with the same host will share the same DiscoInfoProvider or DiscoItemsProvider.
Constructor and Description |
---|
DiscoServerItem(org.xmpp.packet.JID jid,
String name,
String node,
String action,
DiscoInfoProvider infoProvider,
DiscoItemsProvider itemsProvider) |
Modifier and Type | Method and Description |
---|---|
DiscoInfoProvider |
getDiscoInfoProvider()
Returns the DiscoInfoProvider responsible for providing the information related to this item.
|
DiscoItemsProvider |
getDiscoItemsProvider()
Returns the DiscoItemsProvider responsible for providing the items related to this item.
|
public DiscoServerItem(org.xmpp.packet.JID jid, String name, String node, String action, DiscoInfoProvider infoProvider, DiscoItemsProvider itemsProvider)
public DiscoInfoProvider getDiscoInfoProvider()
public DiscoItemsProvider getDiscoItemsProvider()
Copyright © 2003-2008 Jive Software.