|
Smack | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jivesoftware.smackx.ServiceDiscoveryManager
Manages discovery of services in XMPP entities. This class provides:
Constructor Summary | |
ServiceDiscoveryManager(XMPPConnection connection)
Creates a new ServiceDiscoveryManager for a given XMPPConnection. |
Method Summary | |
void |
addFeature(String feature)
Registers that a new feature is supported by this XMPP entity. |
DiscoverInfo |
discoverInfo(String entityID)
Returns the discovered information of a given XMPP entity addressed by its JID. |
DiscoverInfo |
discoverInfo(String entityID,
String node)
Returns the discovered information of a given XMPP entity addressed by its JID and note attribute. |
DiscoverItems |
discoverItems(String entityID)
Returns the discovered items of a given XMPP entity addressed by its JID. |
DiscoverItems |
discoverItems(String entityID,
String node)
Returns the discovered items of a given XMPP entity addressed by its JID and note attribute. |
Iterator |
getFeatures()
Returns the supported features by this XMPP entity. |
static ServiceDiscoveryManager |
getInstanceFor(XMPPConnection connection)
Returns the ServiceDiscoveryManager instance associated with a given XMPPConnection. |
boolean |
includesFeature(String feature)
Returns true if the specified feature is registered in the ServiceDiscoveryManager. |
void |
publishItems(String entityID,
DiscoverItems discoverItems)
Publishes new items to a parent entity. |
void |
removeFeature(String feature)
Removes the specified feature from the supported features by this XMPP entity. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ServiceDiscoveryManager(XMPPConnection connection)
connection
- the connection to which a ServiceDiscoveryManager is going to be createdMethod Detail |
public static ServiceDiscoveryManager getInstanceFor(XMPPConnection connection)
connection
- the connection used to look for the proper ServiceDiscoveryManager
public Iterator getFeatures()
public void addFeature(String feature)
feature
- the feature to register as supportedpublic void removeFeature(String feature)
feature
- the feature to remove from the supported featurespublic boolean includesFeature(String feature)
feature
- the feature to look for
public DiscoverInfo discoverInfo(String entityID) throws XMPPException
entityID
- the address of the XMPP entity
XMPPException
- if the operation failed for some reasonpublic DiscoverInfo discoverInfo(String entityID, String node) throws XMPPException
entityID
- the address of the XMPP entitynode
- the attribute that supplements the 'jid' attribute
XMPPException
- if the operation failed for some reasonpublic DiscoverItems discoverItems(String entityID) throws XMPPException
entityID
- the address of the XMPP entity
XMPPException
- if the operation failed for some reasonpublic DiscoverItems discoverItems(String entityID, String node) throws XMPPException
entityID
- the address of the XMPP entitynode
- the attribute that supplements the 'jid' attribute
XMPPException
- if the operation failed for some reasonpublic void publishItems(String entityID, DiscoverItems discoverItems) throws XMPPException
entityID
- the address of the XMPP entitydiscoverItems
- the DiscoveryItems to publish
XMPPException
- if the operation failed for some reason
|
Smack | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |