public class PubSubModule extends AbstractStanzaExtendableModule<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 Criteria |
CRIT |
context, log
Constructor and Description |
---|
PubSubModule() |
Modifier and Type | Method and Description |
---|---|
void |
addNotificationReceivedHandler(PubSubModule.NotificationReceivedHandler handler) |
void |
configureNode(BareJID pubSubJID,
String nodeName,
JabberDataElement configuration,
AsyncCallback callback)
Submit configuration of node.
|
void |
configureNode(BareJID pubSubJID,
String nodeName,
JabberDataElement configuration,
PubSubAsyncCallback callback)
Submit configuration of node.
|
void |
configureSubscription(BareJID pubSubJID,
String nodeName,
JID subscriberJID,
JabberDataElement form,
AsyncCallback callback)
Submit configuration of subscription.
|
void |
configureSubscription(BareJID pubSubJID,
String nodeName,
JID subscriberJID,
JabberDataElement form,
PubSubAsyncCallback callback)
Submit configuration of subscription.
|
void |
createNode(BareJID pubSubJID,
String nodeName,
AsyncCallback callback)
Create node on PubSub Service.
|
void |
createNode(BareJID pubSubJID,
String nodeName,
JabberDataElement nodeConfiguration,
AsyncCallback callback)
Create node on PubSub Service.
|
void |
createNode(BareJID pubSubJID,
String nodeName,
JabberDataElement nodeConfiguration,
PubSubAsyncCallback callback)
Create node on PubSub Service.
|
void |
createNode(BareJID pubSubJID,
String nodeName,
PubSubAsyncCallback callback)
Create node on PubSub Service.
|
static JabberDataElement |
createNodeConfiguration()
Create empty
jabber:x:data element prepared to submit. |
void |
deleteAffiliation(BareJID pubSubJID,
String nodeName,
JID subscriberJID,
PubSubAsyncCallback callback)
Delete an entity from the affiliations list.
|
void |
deleteItem(BareJID pubSubJID,
String nodeName,
String itemId,
AsyncCallback callback)
Delete published item.
|
void |
deleteItem(BareJID pubSubJID,
String nodeName,
String itemId,
PubSubAsyncCallback callback)
Delete published item.
|
void |
deleteNode(BareJID pubSubJID,
String nodeName,
AsyncCallback callback)
Delete node from PubSub service.
|
void |
deleteNode(BareJID pubSubJID,
String nodeName,
PubSubAsyncCallback callback)
Delete node from PubSub service.
|
void |
deleteSubscription(BareJID pubSubJID,
String nodeName,
JID subscriberJID,
PubSubAsyncCallback callback)
Delete subscriber.
|
protected void |
fireNotificationReceived(Message message,
String nodeName,
String itemType,
String itemId,
Element payload,
Date delayTime) |
Criteria |
getCriteria()
Criteria
|
void |
getDefaultSubscriptionConfiguration(BareJID pubSubJID,
String nodeName,
AsyncCallback callback)
Gets default subscription configuration.
|
void |
getDefaultSubscriptionConfiguration(BareJID pubSubJID,
String nodeName,
PubSubModule.SubscriptionOptionsAsyncCallback callback)
Gets default subscription configuration.
|
String[] |
getFeatures()
Returns features what are implemented by Module.
|
void |
getNodeConfiguration(BareJID pubSubJID,
String nodeName,
AsyncCallback callback)
Get node configuration.
|
void |
getNodeConfiguration(BareJID pubSubJID,
String nodeName,
PubSubModule.NodeConfigurationAsyncCallback callback)
Get node configuration.
|
void |
getNodeConfigurationDefault(BareJID pubSubJID,
AsyncCallback callback)
Get default node configuration.
|
void |
getNodeConfigurationDefault(BareJID pubSubJID,
PubSubModule.NodeConfigurationAsyncCallback callback)
Get default node configuration.
|
void |
getSubscriptionConfiguration(BareJID pubSubJID,
String nodeName,
JID subscriberJID,
AsyncCallback callback)
Get subscription options.
|
void |
getSubscriptionConfiguration(BareJID pubSubJID,
String nodeName,
JID subscriberJID,
PubSubModule.SubscriptionOptionsAsyncCallback callback)
Get subscriptions options.
|
void |
process(Message message)
Method for processing incoming stanza.
|
void |
publishItem(BareJID pubSubJID,
String nodeName,
String itemId,
Element payload,
AsyncCallback callback)
Publish item in PubSub service.
|
void |
publishItem(BareJID pubSubJID,
String nodeName,
String itemId,
Element payload,
JabberDataElement publishOptions,
AsyncCallback callback)
Publish item in PubSub service.
|
void |
publishItem(BareJID pubSubJID,
String nodeName,
String itemId,
Element payload,
PubSubModule.PublishAsyncCallback callback)
Publish item in PubSub service.
|
void |
purge(BareJID pubSubJID,
String nodeName,
AsyncCallback callback)
Purge the node of all published items.
|
void |
purge(BareJID pubSubJID,
String nodeName,
PubSubAsyncCallback callback)
Purge the node of all published items.
|
void |
removeNotificationReceivedHandler(PubSubModule.NotificationReceivedHandler handler) |
void |
retrieveAffiliations(BareJID pubSubJID,
String nodeName,
AsyncCallback callback)
Retrieve affiliations.
|
void |
retrieveAffiliations(BareJID pubSubJID,
String nodeName,
PubSubModule.AffiliationsRetrieveAsyncCallback callback)
Retrieve affiliations.
|
protected void |
retrieveAffiliations(BareJID pubSubJID,
String nodeName,
String xmlns,
AsyncCallback callback) |
void |
retrieveItem(BareJID pubSubJID,
String nodeName,
AsyncCallback callback)
Gets ALL published items from node.
|
void |
retrieveItem(BareJID pubSubJID,
String nodeName,
PubSubModule.RetrieveItemsAsyncCallback callback)
Gets ALL published items from node.
|
void |
retrieveItem(BareJID pubSubJID,
String nodeName,
String itemId,
AsyncCallback callback)
Gets published item from node.
|
void |
retrieveItem(BareJID pubSubJID,
String nodeName,
String itemId,
Integer maxItems,
AsyncCallback callback)
Gets published item(s) from node.
|
void |
retrieveItem(BareJID pubSubJID,
String nodeName,
String itemId,
PubSubModule.RetrieveItemsAsyncCallback callback)
Gets published item from node.
|
void |
retrieveItems(BareJID pubSubJID,
String nodeName,
Integer max,
Integer index,
AsyncCallback callback)
Gets published item(s) from node.
|
void |
retrieveOwnAffiliations(BareJID pubSubJID,
String nodeName,
AsyncCallback callback)
Retrieve own affiliations.
|
void |
retrieveOwnAffiliations(BareJID pubSubJID,
String nodeName,
PubSubModule.AffiliationsRetrieveAsyncCallback callback)
Retrieve own affiliations.
|
void |
retrieveOwnSubscription(BareJID pubSubJID,
String nodeName,
AsyncCallback callback)
Retrieve own subscriptions.
|
void |
retrieveOwnSubscription(BareJID pubSubJID,
String nodeName,
PubSubModule.SubscriptionsRetrieveAsyncCallback callback)
Retrieve own subscriptions.
|
void |
retrieveSubscription(BareJID pubSubJID,
String nodeName,
AsyncCallback callback)
Retrieve all subscriptions of given node.
|
void |
retrieveSubscription(BareJID pubSubJID,
String nodeName,
PubSubModule.SubscriptionFilterExtension filterExt,
AsyncCallback callback)
Retrieve all subscriptions of given node.
|
void |
retrieveSubscription(BareJID pubSubJID,
String nodeName,
PubSubModule.SubscriptionsRetrieveAsyncCallback callback)
Retrieve all subscriptions of given node.
|
protected void |
retrieveSubscription(BareJID pubSubJID,
String nodeName,
String xmlns,
PubSubModule.SubscriptionFilterExtension filterExt,
AsyncCallback callback) |
void |
setAffiliation(BareJID pubSubJID,
String nodeName,
JID subscriberJID,
Affiliation affiliation,
PubSubAsyncCallback callback)
Modify or set affiliation.
|
void |
setAffiliation(BareJID pubSubJID,
String nodeName,
PubSubModule.AffiliationElement[] affiliationElements,
PubSubAsyncCallback callback)
Modify or set multiple affiliations.
|
void |
setSubscription(BareJID pubSubJID,
String nodeName,
JID subscriberJID,
Subscription subscription,
PubSubAsyncCallback callback)
Modify or set subscription.
|
void |
setSubscription(BareJID pubSubJID,
String nodeName,
PubSubModule.SubscriptionElement[] subscriptionElements,
PubSubAsyncCallback callback)
Modify or set multiple subscriptions.
|
void |
subscribe(BareJID pubSubJID,
String nodeName,
JID subscriberJID,
JabberDataElement options,
AsyncCallback callback)
Subscribe to a Node.
|
void |
subscribe(BareJID pubSubJID,
String nodeName,
JID subscriberJID,
JabberDataElement options,
PubSubModule.SubscriptionAsyncCallback callback)
Subscribe to a Node.
|
void |
subscribe(BareJID pubSubJID,
String nodeName,
JID subscriberJID,
PubSubModule.SubscriptionAsyncCallback callback)
Subscribe to a Node.
|
void |
unlockItem(BareJID pubSubJID,
String nodeName,
String itemId,
AsyncCallback callback)
Unlock assigned item.
|
void |
unlockItem(BareJID pubSubJID,
String nodeName,
String itemId,
PubSubAsyncCallback callback)
Unlock assigned item.
|
void |
unsubscribe(BareJID pubSubJID,
String nodeName,
JID subscriberJID,
AsyncCallback callback)
Unsubscribe from a Node.
|
void |
unsubscribe(BareJID pubSubJID,
String nodeName,
JID subscriberJID,
PubSubAsyncCallback callback)
Unsubscribe from a Node.
|
addExtension, getExtensionChain, getFeaturesWithExtensions, removeExtension, write, write, write
afterRegister, beforeRegister, beforeUnregister, fireEvent, getFirstChild, process, setContext
public static final Criteria CRIT
public static JabberDataElement createNodeConfiguration() throws JaxmppException
jabber:x:data
element prepared to submit.JaxmppException
public void addNotificationReceivedHandler(PubSubModule.NotificationReceivedHandler handler)
public void configureNode(BareJID pubSubJID, String nodeName, JabberDataElement configuration, AsyncCallback callback) throws JaxmppException
pubSubJID
- PubSub service address.nodeName
- name of nodeconfiguration
- data element with configurationcallback
- request callbackJaxmppException
public void configureNode(BareJID pubSubJID, String nodeName, JabberDataElement configuration, PubSubAsyncCallback callback) throws JaxmppException
pubSubJID
- PubSub service address.nodeName
- name of nodeconfiguration
- data element with configurationcallback
- request callbackJaxmppException
public void configureSubscription(BareJID pubSubJID, String nodeName, JID subscriberJID, JabberDataElement form, AsyncCallback callback) throws JaxmppException
pubSubJID
- PubSub service address.nodeName
- name of nodesubscriberJID
- subscriber JIDform
- data element with configurationcallback
- request callbackJaxmppException
public void configureSubscription(BareJID pubSubJID, String nodeName, JID subscriberJID, JabberDataElement form, PubSubAsyncCallback callback) throws JaxmppException
pubSubJID
- PubSub service address.nodeName
- name of nodesubscriberJID
- subscriber JIDform
- data element with configurationcallback
- request callbackJaxmppException
public void createNode(BareJID pubSubJID, String nodeName, AsyncCallback callback) throws JaxmppException
pubSubJID
- PubSub service addressnodeName
- name of node to be createdcallback
- callbackJaxmppException
public void createNode(BareJID pubSubJID, String nodeName, JabberDataElement nodeConfiguration, AsyncCallback callback) throws JaxmppException
pubSubJID
- PubSub service addressnodeName
- name of node to be creatednodeConfiguration
- node configurationcallback
- callbackJaxmppException
public void createNode(BareJID pubSubJID, String nodeName, JabberDataElement nodeConfiguration, PubSubAsyncCallback callback) throws JaxmppException
pubSubJID
- PubSub service addressnodeName
- name of node to be creatednodeConfiguration
- node configurationcallback
- callbackJaxmppException
public void createNode(BareJID pubSubJID, String nodeName, PubSubAsyncCallback callback) throws JaxmppException
pubSubJID
- PubSub service addressnodeName
- name of node to be createdconfig
- node configurationcallback
- callbackJaxmppException
public void deleteAffiliation(BareJID pubSubJID, String nodeName, JID subscriberJID, PubSubAsyncCallback callback) throws JaxmppException
none
.pubSubJID
- nodeName
- subscriberJID
- callback
- JaxmppException
public void deleteItem(BareJID pubSubJID, String nodeName, String itemId, AsyncCallback callback) throws JaxmppException
pubSubJID
- PubSub service addressnodeName
- name of nodeitemId
- ID of itemcallback
- request callbackJaxmppException
public void deleteItem(BareJID pubSubJID, String nodeName, String itemId, PubSubAsyncCallback callback) throws JaxmppException
pubSubJID
- PubSub service addressnodeName
- name of nodeitemId
- ID of itemcallback
- request callbackJaxmppException
public void deleteNode(BareJID pubSubJID, String nodeName, AsyncCallback callback) throws JaxmppException
pubSubJID
- address of PubSub servicenodeName
- na of node to deletecallback
- callbackJaxmppException
public void deleteNode(BareJID pubSubJID, String nodeName, PubSubAsyncCallback callback) throws JaxmppException
pubSubJID
- address of PubSub servicenodeName
- na of node to deletecallback
- callbackJaxmppException
public void deleteSubscription(BareJID pubSubJID, String nodeName, JID subscriberJID, PubSubAsyncCallback callback) throws JaxmppException
none
.pubSubJID
- PubSub service addressnodeName
- name of nodesubscriberJID
- subscriber JIDcallback
- request callbackJaxmppException
public Criteria getCriteria()
XmppModule
public void getDefaultSubscriptionConfiguration(BareJID pubSubJID, String nodeName, AsyncCallback callback) throws JaxmppException
pubSubJID
- PubSub service address.nodeName
- name of node.callback
- request callback.JaxmppException
public void getDefaultSubscriptionConfiguration(BareJID pubSubJID, String nodeName, PubSubModule.SubscriptionOptionsAsyncCallback callback) throws JaxmppException
pubSubJID
- PubSub service address.nodeName
- name of node.callback
- request callback.JaxmppException
public String[] getFeatures()
XmppModule
Returns features what are implemented by Module.
public void getNodeConfiguration(BareJID pubSubJID, String nodeName, AsyncCallback callback) throws JaxmppException
pubSubJID
- PubSub service address.nodeName
- node name. If null
then default node configuration will be requested.callback
- request callback.JaxmppException
public void getNodeConfiguration(BareJID pubSubJID, String nodeName, PubSubModule.NodeConfigurationAsyncCallback callback) throws JaxmppException
pubSubJID
- PubSub service address.nodeName
- node name. If null
then default node configuration will be requested.callback
- request callback.JaxmppException
public void getNodeConfigurationDefault(BareJID pubSubJID, AsyncCallback callback) throws JaxmppException
pubSubJID
- PubSub service address.callback
- request callbackJaxmppException
public void getNodeConfigurationDefault(BareJID pubSubJID, PubSubModule.NodeConfigurationAsyncCallback callback) throws JaxmppException
pubSubJID
- PubSub service address.callback
- request callbackJaxmppException
public void getSubscriptionConfiguration(BareJID pubSubJID, String nodeName, JID subscriberJID, AsyncCallback callback) throws JaxmppException
pubSubJID
- JID of PubSub ServicenodeName
- node namesubscriberJID
- subcriber JIDcallback
- request callbackJaxmppException
public void getSubscriptionConfiguration(BareJID pubSubJID, String nodeName, JID subscriberJID, PubSubModule.SubscriptionOptionsAsyncCallback callback) throws JaxmppException
pubSubJID
- JID of PubSub ServicenodeName
- node namesubscriberJID
- subcriber JIDcallback
- request callbackJaxmppException
public void process(Message message) throws JaxmppException
process
in class AbstractStanzaModule<Message>
message
- incoming stanzaJaxmppException
public void publishItem(BareJID pubSubJID, String nodeName, String itemId, Element payload, AsyncCallback callback) throws 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.JaxmppException
public void publishItem(BareJID pubSubJID, String nodeName, String itemId, Element payload, JabberDataElement publishOptions, AsyncCallback callback) throws 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.publishOptions
- node configuration required for publicationcallback
- request callback.JaxmppException
public void publishItem(BareJID pubSubJID, String nodeName, String itemId, Element payload, PubSubModule.PublishAsyncCallback callback) throws 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.JaxmppException
public void purge(BareJID pubSubJID, String nodeName, AsyncCallback callback) throws JaxmppException
pubSubJID
- PubSub service address.nodeName
- name of node.callback
- request callbackJaxmppException
public void purge(BareJID pubSubJID, String nodeName, PubSubAsyncCallback callback) throws JaxmppException
pubSubJID
- PubSub service address.nodeName
- name of node.callback
- request callbackJaxmppException
public void removeNotificationReceivedHandler(PubSubModule.NotificationReceivedHandler handler)
public void retrieveAffiliations(BareJID pubSubJID, String nodeName, PubSubModule.AffiliationsRetrieveAsyncCallback callback) throws JaxmppException
pubSubJID
- PubSub service address.nodeName
- name of node. If null
then affiliations from all nodes will be requested.callback
- request callback.JaxmppException
public void retrieveAffiliations(BareJID pubSubJID, String nodeName, AsyncCallback callback) throws JaxmppException
pubSubJID
- PubSub service address.nodeName
- name of node. If null
then affiliations from all nodes will be requested.callback
- request callback.JaxmppException
public void retrieveItem(BareJID pubSubJID, String nodeName, AsyncCallback callback) throws JaxmppException
pubSubJID
- PubSub service address.nodeName
- name of nodecallback
- request callbackJaxmppException
public void retrieveItem(BareJID pubSubJID, String nodeName, PubSubModule.RetrieveItemsAsyncCallback callback) throws JaxmppException
pubSubJID
- PubSub service address.nodeName
- name of nodecallback
- request callbackJaxmppException
public void retrieveItem(BareJID pubSubJID, String nodeName, String itemId, AsyncCallback callback) throws JaxmppException
pubSubJID
- PubSub service address.nodeName
- name of nodeitemId
- ID of item to pe retrieve.callback
- request callbackJaxmppException
public void retrieveItem(BareJID pubSubJID, String nodeName, String itemId, Integer maxItems, AsyncCallback callback) throws 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 callbackJaxmppException
public void retrieveItem(BareJID pubSubJID, String nodeName, String itemId, PubSubModule.RetrieveItemsAsyncCallback callback) throws JaxmppException
pubSubJID
- PubSub service address.nodeName
- name of nodeitemId
- ID of item to pe retrieve.callback
- request callbackJaxmppException
public void retrieveItems(BareJID pubSubJID, String nodeName, Integer max, Integer index, AsyncCallback callback) throws JaxmppException
pubSubJID
- PubSub service address.nodeName
- name of nodemax
- maximum amount of items to be retrieve.index
- offset from which to start retrievalcallback
- request callbackJaxmppException
public void retrieveOwnAffiliations(BareJID pubSubJID, String nodeName, PubSubModule.AffiliationsRetrieveAsyncCallback callback) throws JaxmppException
pubSubJID
- PubSub service address.nodeName
- name of node. If null
then affiliations from all nodes will be requested.callback
- request callback.JaxmppException
public void retrieveOwnAffiliations(BareJID pubSubJID, String nodeName, AsyncCallback callback) throws JaxmppException
pubSubJID
- PubSub service address.nodeName
- name of node. If null
then affiliations from all nodes will be requested.callback
- request callback.JaxmppException
public void retrieveOwnSubscription(BareJID pubSubJID, String nodeName, AsyncCallback callback) throws JaxmppException
pubSubJID
- PubSub service address.nodeName
- name of node. If null
then subscriptions from all nodes will be requested.callback
- request callbackJaxmppException
public void retrieveOwnSubscription(BareJID pubSubJID, String nodeName, PubSubModule.SubscriptionsRetrieveAsyncCallback callback) throws JaxmppException
pubSubJID
- PubSub service address.nodeName
- name of node. If null
then subscriptions from all nodes will be requested.callback
- request callbackJaxmppException
public void retrieveSubscription(BareJID pubSubJID, String nodeName, AsyncCallback callback) throws JaxmppException
pubSubJID
- PubSub service address.nodeName
- name of node.callback
- request callbackJaxmppException
public void retrieveSubscription(BareJID pubSubJID, String nodeName, PubSubModule.SubscriptionFilterExtension filterExt, AsyncCallback callback) throws JaxmppException
pubSubJID
- PubSub service address.nodeName
- name of node.filterExt
- subscription filter.callback
- request callbackJaxmppException
public void retrieveSubscription(BareJID pubSubJID, String nodeName, PubSubModule.SubscriptionsRetrieveAsyncCallback callback) throws JaxmppException
pubSubJID
- PubSub service address.nodeName
- name of node.callback
- request callbackJaxmppException
public void setAffiliation(BareJID pubSubJID, String nodeName, PubSubModule.AffiliationElement[] affiliationElements, PubSubAsyncCallback callback) throws JaxmppException
pubSubJID
- PubSub service address.nodeName
- name of node.affiliationElements
- array of affiliations elements.callback
- request callbackJaxmppException
public void setAffiliation(BareJID pubSubJID, String nodeName, JID subscriberJID, Affiliation affiliation, PubSubAsyncCallback callback) throws JaxmppException
pubSubJID
- PubSub service addressnodeName
- name of nodesubscriberJID
- subscriber JIDaffiliation
- new affiliation.callback
- request callbackJaxmppException
public void setSubscription(BareJID pubSubJID, String nodeName, JID subscriberJID, Subscription subscription, PubSubAsyncCallback callback) throws JaxmppException
pubSubJID
- PubSub service addressnodeName
- name of nodesubscriberJID
- subscriber JIDsubscription
- new subscriptioncallback
- request callbackJaxmppException
public void setSubscription(BareJID pubSubJID, String nodeName, PubSubModule.SubscriptionElement[] subscriptionElements, PubSubAsyncCallback callback) throws JaxmppException
pubSubJID
- PubSub service address.nodeName
- name of node.subscriptionElements
- array of subscription elements.callback
- request callbackJaxmppException
public void subscribe(BareJID pubSubJID, String nodeName, JID subscriberJID, JabberDataElement options, AsyncCallback callback) throws JaxmppException
pubSubJID
- PubSub service address.nodeName
- name of node to be subscribesubscriberJID
- subscriber JID.options
- subscription options. null
is allowed.callback
- request callback.JaxmppException
public void subscribe(BareJID pubSubJID, String nodeName, JID subscriberJID, JabberDataElement options, PubSubModule.SubscriptionAsyncCallback callback) throws JaxmppException
pubSubJID
- PubSub service address.nodeName
- name of node to be subscribesubscriberJID
- subscriber JID.options
- subscription options. null
is allowed.callback
- request callback.JaxmppException
public void subscribe(BareJID pubSubJID, String nodeName, JID subscriberJID, PubSubModule.SubscriptionAsyncCallback callback) throws JaxmppException
pubSubJID
- PubSub service address.nodeName
- name of node to be subscribesubscriberJID
- subscriber JID.callback
- request callback.JaxmppException
public void unlockItem(BareJID pubSubJID, String nodeName, String itemId, AsyncCallback callback) throws JaxmppException
pubSubJID
- PubSub service address.nodeName
- name of node.itemId
- ID of item to be unlock.callback
- request callback.JaxmppException
public void unlockItem(BareJID pubSubJID, String nodeName, String itemId, PubSubAsyncCallback callback) throws JaxmppException
pubSubJID
- PubSub service address.nodeName
- name of node.itemId
- ID of item to be unlock.callback
- request callback.JaxmppException
public void unsubscribe(BareJID pubSubJID, String nodeName, JID subscriberJID, AsyncCallback callback) throws JaxmppException
pubSubJID
- PubSub service address.nodeName
- name of node to be unsubscribe.subscriberJID
- JID of subscribercallback
- request callbackJaxmppException
public void unsubscribe(BareJID pubSubJID, String nodeName, JID subscriberJID, PubSubAsyncCallback callback) throws JaxmppException
pubSubJID
- PubSub service address.nodeName
- name of node to be unsubscribe.subscriberJID
- JID of subscribercallback
- request callbackJaxmppException
protected void fireNotificationReceived(Message message, String nodeName, String itemType, String itemId, Element payload, Date delayTime) throws JaxmppException
JaxmppException
protected void retrieveAffiliations(BareJID pubSubJID, String nodeName, String xmlns, AsyncCallback callback) throws JaxmppException
JaxmppException
protected void retrieveSubscription(BareJID pubSubJID, String nodeName, String xmlns, PubSubModule.SubscriptionFilterExtension filterExt, AsyncCallback callback) throws JaxmppException
JaxmppException
Copyright © 2006–2023 Tigase. All rights reserved.