|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jivesoftware.smackx.pubsub.PubSubManager
public final class PubSubManager
This is the starting point for access to the pubsub service. It
will provide access to general information about the service, as
well as create or retrieve pubsub Node
instances. These
instances provide the bulk of the functionality as defined in the
pubsub specification XEP-0060.
Constructor Summary | |
---|---|
PubSubManager(org.jivesoftware.smack.XMPPConnection connection)
Create a pubsub manager associated to the specified connection. |
|
PubSubManager(org.jivesoftware.smack.XMPPConnection connection,
java.lang.String toAddress)
Create a pubsub manager associated to the specified connection where the pubsub requests require a specific to address for packets. |
Method Summary | |
---|---|
Node |
createNode()
Creates an instant node, if supported. |
Node |
createNode(java.lang.String id)
Creates a node with default configuration. |
Node |
createNode(java.lang.String name,
org.jivesoftware.smackx.Form config)
Creates a node with specified configuration. |
void |
deleteNode(java.lang.String nodeId)
Delete the specified node |
DiscoverItems |
discoverNodes()
Get all the nodes that currently exist as standard DiscoverItems . |
java.util.List<Affiliation> |
getAffiliations()
Gets the affiliations on the root node. |
ConfigureForm |
getDefaultConfiguration()
Returns the default settings for Node configuration. |
Node |
getNode(java.lang.String id)
Retrieves the requested node, if it exists. |
java.util.List<Node> |
getNodes()
Get all the nodes that currently exist. |
java.util.List<Subscription> |
getSubscriptions()
Gets the subscriptions on the root node. |
DiscoverInfo |
getSupportedFeatures()
Gets the supported features of the servers pubsub implementation as a standard DiscoverInfo instance. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PubSubManager(org.jivesoftware.smack.XMPPConnection connection)
connection
- The XMPP connectionpublic PubSubManager(org.jivesoftware.smack.XMPPConnection connection, java.lang.String toAddress)
connection
- The XMPP connectiontoAddress
- The pubsub specific to address (required for some servers)Method Detail |
---|
public Node createNode() throws org.jivesoftware.smack.XMPPException
org.jivesoftware.smack.XMPPException
public Node createNode(java.lang.String id) throws org.jivesoftware.smack.XMPPException
id
- The id of the node, which must be unique within the
pubsub service
org.jivesoftware.smack.XMPPException
public Node createNode(java.lang.String name, org.jivesoftware.smackx.Form config) throws org.jivesoftware.smack.XMPPException
name
- The name of the node, which must be unique within the
pubsub serviceconfig
- The configuration for the node
org.jivesoftware.smack.XMPPException
public Node getNode(java.lang.String id) throws org.jivesoftware.smack.XMPPException
id
- - The unique id of the node
org.jivesoftware.smack.XMPPException
- The node does not existpublic java.util.List<Node> getNodes() throws org.jivesoftware.smack.XMPPException
org.jivesoftware.smack.XMPPException
public DiscoverItems discoverNodes() throws org.jivesoftware.smack.XMPPException
DiscoverItems
.
DiscoverItems
representing the existing nodes
org.jivesoftware.smack.XMPPException
public java.util.List<Subscription> getSubscriptions() throws org.jivesoftware.smack.XMPPException
org.jivesoftware.smack.XMPPException
public java.util.List<Affiliation> getAffiliations() throws org.jivesoftware.smack.XMPPException
org.jivesoftware.smack.XMPPException
public void deleteNode(java.lang.String nodeId) throws org.jivesoftware.smack.XMPPException
nodeId
-
org.jivesoftware.smack.XMPPException
public ConfigureForm getDefaultConfiguration() throws org.jivesoftware.smack.XMPPException
org.jivesoftware.smack.XMPPException
public DiscoverInfo getSupportedFeatures() throws org.jivesoftware.smack.XMPPException
DiscoverInfo
instance.
org.jivesoftware.smack.XMPPException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |