public class PubSubModule
extends tigase.jaxmpp.core.client.xmpp.modules.AbstractStanzaExtendableModule<tigase.jaxmpp.core.client.xmpp.stanzas.Message>
This module implementation of XEP-0060: Publish-Subscribe.
| Modifier and Type | Class and Description |
|---|---|
static class |
PubSubModule.AffiliationElement |
static class |
PubSubModule.AffiliationsRetrieveAsyncCallback |
static class |
PubSubModule.NodeConfigurationAsyncCallback |
static interface |
PubSubModule.NodeConfigurationChangeNotificationReceivedHandler |
static interface |
PubSubModule.NotificationCollectionChildrenChangedHandler |
static interface |
PubSubModule.NotificationNodeDeletedHander |
static interface |
PubSubModule.NotificationReceivedHandler |
static class |
PubSubModule.PublishAsyncCallback |
static class |
PubSubModule.RetrieveItemsAsyncCallback |
static class |
PubSubModule.SubscriptionAsyncCallback |
static class |
PubSubModule.SubscriptionElement |
static class |
PubSubModule.SubscriptionFilterExtension
Class with definitions of filters for retrieving subscriptions.
|
static class |
PubSubModule.SubscriptionOptionsAsyncCallback |
static class |
PubSubModule.SubscriptionsRetrieveAsyncCallback |
| Modifier and Type | Field and Description |
|---|---|
static tigase.jaxmpp.core.client.criteria.Criteria |
CRIT |
| Constructor and Description |
|---|
PubSubModule() |
| Modifier and Type | Method and Description |
|---|---|
void |
addNotificationReceivedHandler(PubSubModule.NotificationReceivedHandler handler) |
void |
configureNode(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
tigase.jaxmpp.core.client.xmpp.forms.JabberDataElement configuration,
tigase.jaxmpp.core.client.AsyncCallback callback)
Submit configuration of node.
|
void |
configureNode(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
tigase.jaxmpp.core.client.xmpp.forms.JabberDataElement configuration,
PubSubAsyncCallback callback)
Submit configuration of node.
|
void |
configureSubscription(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
tigase.jaxmpp.core.client.JID subscriberJID,
tigase.jaxmpp.core.client.xmpp.forms.JabberDataElement form,
tigase.jaxmpp.core.client.AsyncCallback callback)
Submit configuration of subscription.
|
void |
configureSubscription(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
tigase.jaxmpp.core.client.JID subscriberJID,
tigase.jaxmpp.core.client.xmpp.forms.JabberDataElement form,
PubSubAsyncCallback callback)
Submit configuration of subscription.
|
void |
createNode(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
tigase.jaxmpp.core.client.AsyncCallback callback)
Create node on PubSub Service.
|
void |
createNode(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
tigase.jaxmpp.core.client.xmpp.forms.JabberDataElement nodeConfiguration,
tigase.jaxmpp.core.client.AsyncCallback callback)
Create node on PubSub Service.
|
void |
createNode(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
tigase.jaxmpp.core.client.xmpp.forms.JabberDataElement nodeConfiguration,
PubSubAsyncCallback callback)
Create node on PubSub Service.
|
void |
createNode(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
PubSubAsyncCallback callback)
Create node on PubSub Service.
|
static tigase.jaxmpp.core.client.xmpp.forms.JabberDataElement |
createNodeConfiguration()
Create empty
jabber:x:data element prepared to submit. |
void |
deleteAffiliation(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
tigase.jaxmpp.core.client.JID subscriberJID,
PubSubAsyncCallback callback)
Delete an entity from the affiliations list.
|
void |
deleteItem(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
String itemId,
tigase.jaxmpp.core.client.AsyncCallback callback)
Delete published item.
|
void |
deleteItem(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
String itemId,
PubSubAsyncCallback callback)
Delete published item.
|
void |
deleteNode(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
tigase.jaxmpp.core.client.AsyncCallback callback)
Delete node from PubSub service.
|
void |
deleteNode(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
PubSubAsyncCallback callback)
Delete node from PubSub service.
|
void |
deleteSubscription(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
tigase.jaxmpp.core.client.JID subscriberJID,
PubSubAsyncCallback callback)
Delete subscriber.
|
protected void |
fireNotificationReceived(tigase.jaxmpp.core.client.xmpp.stanzas.Message message,
String nodeName,
String itemType,
String itemId,
tigase.jaxmpp.core.client.xml.Element payload,
Date delayTime) |
tigase.jaxmpp.core.client.criteria.Criteria |
getCriteria() |
void |
getDefaultSubscriptionConfiguration(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
tigase.jaxmpp.core.client.AsyncCallback callback)
Gets default subscription configuration.
|
void |
getDefaultSubscriptionConfiguration(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
PubSubModule.SubscriptionOptionsAsyncCallback callback)
Gets default subscription configuration.
|
String[] |
getFeatures() |
void |
getNodeConfiguration(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
tigase.jaxmpp.core.client.AsyncCallback callback)
Get node configuration.
|
void |
getNodeConfiguration(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
PubSubModule.NodeConfigurationAsyncCallback callback)
Get node configuration.
|
void |
getNodeConfigurationDefault(tigase.jaxmpp.core.client.BareJID pubSubJID,
tigase.jaxmpp.core.client.AsyncCallback callback)
Get default node configuration.
|
void |
getNodeConfigurationDefault(tigase.jaxmpp.core.client.BareJID pubSubJID,
PubSubModule.NodeConfigurationAsyncCallback callback)
Get default node configuration.
|
void |
getSubscriptionConfiguration(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
tigase.jaxmpp.core.client.JID subscriberJID,
tigase.jaxmpp.core.client.AsyncCallback callback)
Get subscription options.
|
void |
getSubscriptionConfiguration(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
tigase.jaxmpp.core.client.JID subscriberJID,
PubSubModule.SubscriptionOptionsAsyncCallback callback)
Get subscriptions options.
|
void |
process(tigase.jaxmpp.core.client.xmpp.stanzas.Message message) |
void |
publishItem(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
String itemId,
tigase.jaxmpp.core.client.xml.Element payload,
tigase.jaxmpp.core.client.AsyncCallback callback)
Publish item in PubSub service.
|
void |
publishItem(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
String itemId,
tigase.jaxmpp.core.client.xml.Element payload,
PubSubModule.PublishAsyncCallback callback)
Publish item in PubSub service.
|
void |
purge(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
tigase.jaxmpp.core.client.AsyncCallback callback)
Purge the node of all published items.
|
void |
purge(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
PubSubAsyncCallback callback)
Purge the node of all published items.
|
void |
removeNotificationReceivedHandler(PubSubModule.NotificationReceivedHandler handler) |
void |
retrieveAffiliations(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
tigase.jaxmpp.core.client.AsyncCallback callback)
Retrieve affiliations.
|
void |
retrieveAffiliations(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
PubSubModule.AffiliationsRetrieveAsyncCallback callback)
Retrieve affiliations.
|
protected void |
retrieveAffiliations(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
String xmlns,
tigase.jaxmpp.core.client.AsyncCallback callback) |
void |
retrieveItem(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
tigase.jaxmpp.core.client.AsyncCallback callback)
Gets ALL published items from node.
|
void |
retrieveItem(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
PubSubModule.RetrieveItemsAsyncCallback callback)
Gets ALL published items from node.
|
void |
retrieveItem(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
String itemId,
tigase.jaxmpp.core.client.AsyncCallback callback)
Gets published item from node.
|
void |
retrieveItem(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
String itemId,
Integer maxItems,
tigase.jaxmpp.core.client.AsyncCallback callback)
Gets published item(s) from node.
|
void |
retrieveItem(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
String itemId,
PubSubModule.RetrieveItemsAsyncCallback callback)
Gets published item from node.
|
void |
retrieveItems(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
Integer max,
Integer index,
tigase.jaxmpp.core.client.AsyncCallback callback)
Gets published item(s) from node.
|
void |
retrieveOwnAffiliations(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
tigase.jaxmpp.core.client.AsyncCallback callback)
Retrieve own affiliations.
|
void |
retrieveOwnAffiliations(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
PubSubModule.AffiliationsRetrieveAsyncCallback callback)
Retrieve own affiliations.
|
void |
retrieveOwnSubscription(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
tigase.jaxmpp.core.client.AsyncCallback callback)
Retrieve own subscriptions.
|
void |
retrieveOwnSubscription(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
PubSubModule.SubscriptionsRetrieveAsyncCallback callback)
Retrieve own subscriptions.
|
void |
retrieveSubscription(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
tigase.jaxmpp.core.client.AsyncCallback callback)
Retrieve all subscriptions of given node.
|
void |
retrieveSubscription(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
PubSubModule.SubscriptionFilterExtension filterExt,
tigase.jaxmpp.core.client.AsyncCallback callback)
Retrieve all subscriptions of given node.
|
void |
retrieveSubscription(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
PubSubModule.SubscriptionsRetrieveAsyncCallback callback)
Retrieve all subscriptions of given node.
|
protected void |
retrieveSubscription(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
String xmlns,
PubSubModule.SubscriptionFilterExtension filterExt,
tigase.jaxmpp.core.client.AsyncCallback callback) |
void |
setAffiliation(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
tigase.jaxmpp.core.client.JID subscriberJID,
Affiliation affiliation,
PubSubAsyncCallback callback)
Modify or set affiliation.
|
void |
setAffiliation(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
PubSubModule.AffiliationElement[] affiliationElements,
PubSubAsyncCallback callback)
Modify or set multiple affiliations.
|
void |
setSubscription(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
tigase.jaxmpp.core.client.JID subscriberJID,
Subscription subscription,
PubSubAsyncCallback callback)
Modify or set subscription.
|
void |
setSubscription(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
PubSubModule.SubscriptionElement[] subscriptionElements,
PubSubAsyncCallback callback)
Modify or set multiple subscriptions.
|
void |
subscribe(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
tigase.jaxmpp.core.client.JID subscriberJID,
tigase.jaxmpp.core.client.xmpp.forms.JabberDataElement options,
tigase.jaxmpp.core.client.AsyncCallback callback)
Subscribe to a Node.
|
void |
subscribe(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
tigase.jaxmpp.core.client.JID subscriberJID,
tigase.jaxmpp.core.client.xmpp.forms.JabberDataElement options,
PubSubModule.SubscriptionAsyncCallback callback)
Subscribe to a Node.
|
void |
subscribe(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
tigase.jaxmpp.core.client.JID subscriberJID,
PubSubModule.SubscriptionAsyncCallback callback)
Subscribe to a Node.
|
void |
unlockItem(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
String itemId,
tigase.jaxmpp.core.client.AsyncCallback callback)
Unlock assigned item.
|
void |
unlockItem(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
String itemId,
PubSubAsyncCallback callback)
Unlock assigned item.
|
void |
unsubscribe(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
tigase.jaxmpp.core.client.JID subscriberJID,
tigase.jaxmpp.core.client.AsyncCallback callback)
Unsubscribe from a Node.
|
void |
unsubscribe(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
tigase.jaxmpp.core.client.JID subscriberJID,
PubSubAsyncCallback callback)
Unsubscribe from a Node.
|
addExtension, getExtensionChain, getFeaturesWithExtensions, removeExtension, write, write, writepublic static tigase.jaxmpp.core.client.xmpp.forms.JabberDataElement createNodeConfiguration()
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
jabber:x:data element prepared to submit.tigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void addNotificationReceivedHandler(PubSubModule.NotificationReceivedHandler handler)
public void configureNode(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
tigase.jaxmpp.core.client.xmpp.forms.JabberDataElement configuration,
tigase.jaxmpp.core.client.AsyncCallback callback)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
pubSubJID - PubSub service address.nodeName - name of nodeconfiguration - data element with configurationcallback - request callbacktigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void configureNode(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
tigase.jaxmpp.core.client.xmpp.forms.JabberDataElement configuration,
PubSubAsyncCallback callback)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
pubSubJID - PubSub service address.nodeName - name of nodeconfiguration - data element with configurationcallback - request callbacktigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void configureSubscription(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
tigase.jaxmpp.core.client.JID subscriberJID,
tigase.jaxmpp.core.client.xmpp.forms.JabberDataElement form,
tigase.jaxmpp.core.client.AsyncCallback callback)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
pubSubJID - PubSub service address.nodeName - name of nodesubscriberJID - subscriber JIDform - data element with configurationcallback - request callbacktigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void configureSubscription(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
tigase.jaxmpp.core.client.JID subscriberJID,
tigase.jaxmpp.core.client.xmpp.forms.JabberDataElement form,
PubSubAsyncCallback callback)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
pubSubJID - PubSub service address.nodeName - name of nodesubscriberJID - subscriber JIDform - data element with configurationcallback - request callbacktigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void createNode(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
tigase.jaxmpp.core.client.AsyncCallback callback)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
pubSubJID - PubSub service addressnodeName - name of node to be createdcallback - callbacktigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void createNode(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
tigase.jaxmpp.core.client.xmpp.forms.JabberDataElement nodeConfiguration,
tigase.jaxmpp.core.client.AsyncCallback callback)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
pubSubJID - PubSub service addressnodeName - name of node to be creatednodeConfiguration - node configurationcallback - callbacktigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void createNode(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
tigase.jaxmpp.core.client.xmpp.forms.JabberDataElement nodeConfiguration,
PubSubAsyncCallback callback)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
pubSubJID - PubSub service addressnodeName - name of node to be creatednodeConfiguration - node configurationcallback - callbacktigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void createNode(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
PubSubAsyncCallback callback)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
pubSubJID - PubSub service addressnodeName - name of node to be createdconfig - node configurationcallback - callbacktigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void deleteAffiliation(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
tigase.jaxmpp.core.client.JID subscriberJID,
PubSubAsyncCallback callback)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
none.pubSubJID - nodeName - subscriberJID - callback - tigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void deleteItem(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
String itemId,
tigase.jaxmpp.core.client.AsyncCallback callback)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
pubSubJID - PubSub service addressnodeName - name of nodeitemId - ID of itemcallback - request callbacktigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void deleteItem(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
String itemId,
PubSubAsyncCallback callback)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
pubSubJID - PubSub service addressnodeName - name of nodeitemId - ID of itemcallback - request callbacktigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void deleteNode(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
tigase.jaxmpp.core.client.AsyncCallback callback)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
pubSubJID - address of PubSub servicenodeName - na of node to deletecallback - callbacktigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void deleteNode(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
PubSubAsyncCallback callback)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
pubSubJID - address of PubSub servicenodeName - na of node to deletecallback - callbacktigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void deleteSubscription(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
tigase.jaxmpp.core.client.JID subscriberJID,
PubSubAsyncCallback callback)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
none.pubSubJID - PubSub service addressnodeName - name of nodesubscriberJID - subscriber JIDcallback - request callbacktigase.jaxmpp.core.client.exceptions.JaxmppExceptionprotected void fireNotificationReceived(tigase.jaxmpp.core.client.xmpp.stanzas.Message message,
String nodeName,
String itemType,
String itemId,
tigase.jaxmpp.core.client.xml.Element payload,
Date delayTime)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
tigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic tigase.jaxmpp.core.client.criteria.Criteria getCriteria()
public void getDefaultSubscriptionConfiguration(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
tigase.jaxmpp.core.client.AsyncCallback callback)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
pubSubJID - PubSub service address.nodeName - name of node.callback - request callback.tigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void getDefaultSubscriptionConfiguration(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
PubSubModule.SubscriptionOptionsAsyncCallback callback)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
pubSubJID - PubSub service address.nodeName - name of node.callback - request callback.tigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic String[] getFeatures()
public void getNodeConfiguration(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
tigase.jaxmpp.core.client.AsyncCallback callback)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
pubSubJID - PubSub service address.nodeName - node name. If null then default node configuration will be requested.callback - request callback.tigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void getNodeConfiguration(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
PubSubModule.NodeConfigurationAsyncCallback callback)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
pubSubJID - PubSub service address.nodeName - node name. If null then default node configuration will be requested.callback - request callback.tigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void getNodeConfigurationDefault(tigase.jaxmpp.core.client.BareJID pubSubJID,
tigase.jaxmpp.core.client.AsyncCallback callback)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
pubSubJID - PubSub service address.callback - request callbacktigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void getNodeConfigurationDefault(tigase.jaxmpp.core.client.BareJID pubSubJID,
PubSubModule.NodeConfigurationAsyncCallback callback)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
pubSubJID - PubSub service address.callback - request callbacktigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void getSubscriptionConfiguration(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
tigase.jaxmpp.core.client.JID subscriberJID,
tigase.jaxmpp.core.client.AsyncCallback callback)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
pubSubJID - JID of PubSub ServicenodeName - node namesubscriberJID - subcriber JIDcallback - request callbacktigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void getSubscriptionConfiguration(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
tigase.jaxmpp.core.client.JID subscriberJID,
PubSubModule.SubscriptionOptionsAsyncCallback callback)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
pubSubJID - JID of PubSub ServicenodeName - node namesubscriberJID - subcriber JIDcallback - request callbacktigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void process(tigase.jaxmpp.core.client.xmpp.stanzas.Message message)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
process in class tigase.jaxmpp.core.client.xmpp.modules.AbstractStanzaModule<tigase.jaxmpp.core.client.xmpp.stanzas.Message>tigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void publishItem(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
String itemId,
tigase.jaxmpp.core.client.xml.Element payload,
tigase.jaxmpp.core.client.AsyncCallback callback)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
pubSubJID - PubSub service address.nodeName - name of node.itemId - ID of item to be published. If null then Service will generate unique item ID.payload - element to be publish.callback - request callback.tigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void publishItem(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
String itemId,
tigase.jaxmpp.core.client.xml.Element payload,
PubSubModule.PublishAsyncCallback callback)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
pubSubJID - PubSub service address.nodeName - name of node.itemId - ID of item to be published. If null then Service will generate unique item ID.payload - element to be publish.callback - request callback.tigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void purge(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
tigase.jaxmpp.core.client.AsyncCallback callback)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
pubSubJID - PubSub service address.nodeName - name of node.callback - request callbacktigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void purge(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
PubSubAsyncCallback callback)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
pubSubJID - PubSub service address.nodeName - name of node.callback - request callbacktigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void removeNotificationReceivedHandler(PubSubModule.NotificationReceivedHandler handler)
public void retrieveAffiliations(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
PubSubModule.AffiliationsRetrieveAsyncCallback callback)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
pubSubJID - PubSub service address.nodeName - name of node. If null then affiliations from all nodes will be requested.callback - request callback.tigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void retrieveAffiliations(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
tigase.jaxmpp.core.client.AsyncCallback callback)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
pubSubJID - PubSub service address.nodeName - name of node. If null then affiliations from all nodes will be requested.callback - request callback.tigase.jaxmpp.core.client.exceptions.JaxmppExceptionprotected void retrieveAffiliations(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
String xmlns,
tigase.jaxmpp.core.client.AsyncCallback callback)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
tigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void retrieveItem(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
tigase.jaxmpp.core.client.AsyncCallback callback)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
pubSubJID - PubSub service address.nodeName - name of nodecallback - request callbacktigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void retrieveItem(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
PubSubModule.RetrieveItemsAsyncCallback callback)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
pubSubJID - PubSub service address.nodeName - name of nodecallback - request callbacktigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void retrieveItem(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
String itemId,
tigase.jaxmpp.core.client.AsyncCallback callback)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
pubSubJID - PubSub service address.nodeName - name of nodeitemId - ID of item to pe retrieve.callback - request callbacktigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void retrieveItem(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
String itemId,
Integer maxItems,
tigase.jaxmpp.core.client.AsyncCallback callback)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
pubSubJID - PubSub service address.nodeName - name of nodeitemId - ID of item to pe retrieve. May be null. Then all items will be requested.maxItems - maximum amount of items to be retrieve.callback - request callbacktigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void retrieveItem(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
String itemId,
PubSubModule.RetrieveItemsAsyncCallback callback)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
pubSubJID - PubSub service address.nodeName - name of nodeitemId - ID of item to pe retrieve.callback - request callbacktigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void retrieveItems(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
Integer max,
Integer index,
tigase.jaxmpp.core.client.AsyncCallback callback)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
pubSubJID - PubSub service address.nodeName - name of nodemax - maximum amount of items to be retrieve.index - offset from which to start retrievalcallback - request callbacktigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void retrieveOwnAffiliations(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
PubSubModule.AffiliationsRetrieveAsyncCallback callback)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
pubSubJID - PubSub service address.nodeName - name of node. If null then affiliations from all nodes will be requested.callback - request callback.tigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void retrieveOwnAffiliations(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
tigase.jaxmpp.core.client.AsyncCallback callback)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
pubSubJID - PubSub service address.nodeName - name of node. If null then affiliations from all nodes will be requested.callback - request callback.tigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void retrieveOwnSubscription(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
tigase.jaxmpp.core.client.AsyncCallback callback)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
pubSubJID - PubSub service address.nodeName - name of node. If null then subscriptions from all nodes will be requested.callback - request callbacktigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void retrieveOwnSubscription(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
PubSubModule.SubscriptionsRetrieveAsyncCallback callback)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
pubSubJID - PubSub service address.nodeName - name of node. If null then subscriptions from all nodes will be requested.callback - request callbacktigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void retrieveSubscription(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
tigase.jaxmpp.core.client.AsyncCallback callback)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
pubSubJID - PubSub service address.nodeName - name of node.callback - request callbacktigase.jaxmpp.core.client.exceptions.JaxmppExceptionprotected void retrieveSubscription(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
String xmlns,
PubSubModule.SubscriptionFilterExtension filterExt,
tigase.jaxmpp.core.client.AsyncCallback callback)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
tigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void retrieveSubscription(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
PubSubModule.SubscriptionFilterExtension filterExt,
tigase.jaxmpp.core.client.AsyncCallback callback)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
pubSubJID - PubSub service address.nodeName - name of node.filterExt - subscription filter.callback - request callbacktigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void retrieveSubscription(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
PubSubModule.SubscriptionsRetrieveAsyncCallback callback)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
pubSubJID - PubSub service address.nodeName - name of node.callback - request callbacktigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void setAffiliation(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
PubSubModule.AffiliationElement[] affiliationElements,
PubSubAsyncCallback callback)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
pubSubJID - PubSub service address.nodeName - name of node.affiliationElements - array of affiliations elements.callback - request callbacktigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void setAffiliation(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
tigase.jaxmpp.core.client.JID subscriberJID,
Affiliation affiliation,
PubSubAsyncCallback callback)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
pubSubJID - PubSub service addressnodeName - name of nodesubscriberJID - subscriber JIDaffiliation - new affiliation.callback - request callbacktigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void setSubscription(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
tigase.jaxmpp.core.client.JID subscriberJID,
Subscription subscription,
PubSubAsyncCallback callback)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
pubSubJID - PubSub service addressnodeName - name of nodesubscriberJID - subscriber JIDsubscription - new subscriptioncallback - request callbacktigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void setSubscription(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
PubSubModule.SubscriptionElement[] subscriptionElements,
PubSubAsyncCallback callback)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
pubSubJID - PubSub service address.nodeName - name of node.subscriptionElements - array of subscription elements.callback - request callbacktigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void subscribe(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
tigase.jaxmpp.core.client.JID subscriberJID,
tigase.jaxmpp.core.client.xmpp.forms.JabberDataElement options,
tigase.jaxmpp.core.client.AsyncCallback callback)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
pubSubJID - PubSub service address.nodeName - name of node to be subscribesubscriberJID - subscriber JID.options - subscription options. null is allowed.callback - request callback.tigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void subscribe(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
tigase.jaxmpp.core.client.JID subscriberJID,
tigase.jaxmpp.core.client.xmpp.forms.JabberDataElement options,
PubSubModule.SubscriptionAsyncCallback callback)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
pubSubJID - PubSub service address.nodeName - name of node to be subscribesubscriberJID - subscriber JID.options - subscription options. null is allowed.callback - request callback.tigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void subscribe(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
tigase.jaxmpp.core.client.JID subscriberJID,
PubSubModule.SubscriptionAsyncCallback callback)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
pubSubJID - PubSub service address.nodeName - name of node to be subscribesubscriberJID - subscriber JID.callback - request callback.tigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void unlockItem(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
String itemId,
tigase.jaxmpp.core.client.AsyncCallback callback)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
pubSubJID - PubSub service address.nodeName - name of node.itemId - ID of item to be unlock.callback - request callback.tigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void unlockItem(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
String itemId,
PubSubAsyncCallback callback)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
pubSubJID - PubSub service address.nodeName - name of node.itemId - ID of item to be unlock.callback - request callback.tigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void unsubscribe(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
tigase.jaxmpp.core.client.JID subscriberJID,
tigase.jaxmpp.core.client.AsyncCallback callback)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
pubSubJID - PubSub service address.nodeName - name of node to be unsubscribe.subscriberJID - JID of subscribercallback - request callbacktigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void unsubscribe(tigase.jaxmpp.core.client.BareJID pubSubJID,
String nodeName,
tigase.jaxmpp.core.client.JID subscriberJID,
PubSubAsyncCallback callback)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
pubSubJID - PubSub service address.nodeName - name of node to be unsubscribe.subscriberJID - JID of subscribercallback - request callbacktigase.jaxmpp.core.client.exceptions.JaxmppExceptionCopyright © 2006–2018 Tigase. All rights reserved.