Package org.jivesoftware.smackx.disco
Class AbstractNodeInformationProvider
- java.lang.Object
-
- org.jivesoftware.smackx.disco.AbstractNodeInformationProvider
-
- All Implemented Interfaces:
NodeInformationProvider
public abstract class AbstractNodeInformationProvider extends java.lang.Object implements NodeInformationProvider
-
-
Constructor Summary
Constructors Constructor Description AbstractNodeInformationProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 identities defined in the node.java.util.List<DiscoverItems.Item>
getNodeItems()
Returns a list of the ItemsDiscoverItems.Item
defined in the node.java.util.List<? extends ExtensionElement>
getNodePacketExtensions()
Returns a list of the stanza extensions defined in the node.
-
-
-
Constructor Detail
-
AbstractNodeInformationProvider
public AbstractNodeInformationProvider()
-
-
Method Detail
-
getNodeItems
public java.util.List<DiscoverItems.Item> getNodeItems()
Description copied from interface:NodeInformationProvider
Returns a list of the ItemsDiscoverItems.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.- Specified by:
getNodeItems
in interfaceNodeInformationProvider
- Returns:
- a list of the Items defined in the node.
-
getNodeFeatures
public java.util.List<java.lang.String> getNodeFeatures()
Description copied from interface:NodeInformationProvider
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.- Specified by:
getNodeFeatures
in interfaceNodeInformationProvider
- Returns:
- a list of the feature strings defined in the node.
-
getNodeIdentities
public java.util.List<DiscoverInfo.Identity> getNodeIdentities()
Description copied from interface:NodeInformationProvider
Returns a list of the identities defined in the node. For example, the x-command protocol must provide an identity of category automation and type command-node for each command.- Specified by:
getNodeIdentities
in interfaceNodeInformationProvider
- Returns:
- a list of the Identities defined in the node.
-
getNodePacketExtensions
public java.util.List<? extends ExtensionElement> getNodePacketExtensions()
Description copied from interface:NodeInformationProvider
Returns a list of the stanza extensions defined in the node.- Specified by:
getNodePacketExtensions
in interfaceNodeInformationProvider
- Returns:
- a list of the stanza extensions defined in the node.
-
-