Smack

org.jivesoftware.smackx
Interface NodeInformationProvider


public interface NodeInformationProvider

The NodeInformationProvider is responsible for providing supported indentities, features and hosted items (i.e. DiscoverItems.Item) about a given node. This information will be requested each time this XMPPP client receives a disco info or items requests on the given node. each time this XMPPP client receives a disco info or items requests on the given node.

Author:
Gaston Dombiak

Method Summary
 java.util.List<java.lang.String> getNodeFeatures()
          Returns a list of the features defined in the node.
 java.util.List<DiscoverInfo.Identity> getNodeIdentities()
          Returns a list of the indentites defined in the node.
 java.util.List<DiscoverItems.Item> getNodeItems()
          Returns a list of the Items DiscoverItems.Item defined in the node.
 java.util.List<PacketExtension> getNodePacketExtensions()
          Returns a list of the packet extensions defined in the node.
 

Method Detail

getNodeItems

java.util.List<DiscoverItems.Item> getNodeItems()
Returns a list of the Items DiscoverItems.Item defined in the node. For example, the MUC protocol specifies that an XMPP client should answer an Item for each joined room when asked for the rooms where the use has joined.

Returns:
a list of the Items defined in the node.

getNodeFeatures

java.util.List<java.lang.String> getNodeFeatures()
Returns a list of the features defined in the node. For example, the entity caps protocol specifies that an XMPP client should answer with each feature supported by the client version or extension.

Returns:
a list of the feature strings defined in the node.

getNodeIdentities

java.util.List<DiscoverInfo.Identity> getNodeIdentities()
Returns a list of the indentites defined in the node. For example, the x-command protocol must provide an identity of category automation and type command-node for each command.

Returns:
a list of the Identities defined in the node.

getNodePacketExtensions

java.util.List<PacketExtension> getNodePacketExtensions()
Returns a list of the packet extensions defined in the node.

Returns:
a list of the packet extensions defined in the node.

Smack

Copyright © 2003-2007 Jive Software.